İçeriğe geç
YENİAlaaddin ile tanış: sesi olan yapay zekâ cinin. trig8n 1 Ocak 2027'de yayında. Yeniliklere bak

Kütüphane / E-posta Otomasyonu

E-posta Otomasyonu

Handle restaurant reservations and orders with ElevenLabs, Sheets and Gmail

When an API call/webhook arrives, it handles email using Gmail, Google Sheets.

Ne yapar

# 🍽️ Restaurant Voice Assistant — System Overview This workflow is the backend brain for an ElevenLabs Conversational AI voice agent that answers restaurant phone calls. The agent itself lives entirely in ElevenLabs — this n8n workflow only exposes 5 webhook endpoints that the agent calls as "Tools" (Server Tools / Webhook Tools) whenever it needs to read or write real data during a live call. ## 🔗 How ElevenLabs connects Inside the ElevenLabs Agent configuration, 5 custom tools are defined (Webhook type). Each tool's Production URL points to one of the webhook nodes below. When a caller says something like "I'd like to book a table for 4 on Friday at 8pm," the LLM inside ElevenLabs decides which tool to call, extracts the required parameters from the conversation, and sends a POST request to that tool's webhook URL. n8n runs the corresponding branch, talks to Google Sheets / Gmail, and returns a JSON response — which ElevenLabs reads back to the caller in real time. ## 🧰 The 5 Tools / Sub-Workflows 1. make_reservation (/restaurant_reservation) Collects customer_name, phone_number, party_size, date, time, special_requests, conversation_id from the agent. Normalizes the data, appends a new row to the *Reservations* sheet, emails the manager a formatted confirmation, and returns a spoken confirmation message + status back to the agent. 2. check_availability (/check_availability) Called *before* a booking is confirmed. Reads all rows from *Reservations*, normalizes date/time formats, sums up party sizes already booked for that date+time slot, compares against a fixed table capacity (40), and tells the agent whether the slot is available — with a natural-language message the agent can say to the caller (offering to check another time if full). 3. place_order (/restaurant_order) For pickup/delivery orders. Captures customer_name, phone_number, items, order_type (pickup/delivery), delivery_address, appends the order to the *orders* sheet, emails the manager the order details, and confirms receipt to the caller. 4. manage_reservation (/manage_reservation) Handles both cancel and modify in one tool, based on an action field sent by the agent. It looks up the existing reservation by phone_number + date, and: • if action = cancel → deletes the row from *Reservations* and emails the manager a cancellation notice • if action = modify → merges any new_date / new_time / n

Adımlar

  1. Reservation Webhook
  2. Normalize Reservation Data
  3. Log Booking to Sheet
  4. Build Confirmation Message
  5. Respond to ElevenLabs
  6. Availability Webhook
  7. Read Reservations
  8. Check Capacity
  9. Is Available
  10. Message - Available
  11. Message - Not Available
  12. Respond Availability
  13. Order Webhook
  14. Normalize Order Data

Toplam 39 adım.

Benzer otomasyonlar