Zum Inhalt springen
NEULerne Alaaddin kennen, deinen KI-Flaschengeist mit Stimme. trig8n startet am 1. Januar 2027. Neuigkeiten ansehen

Bibliothek / KI-Agenten & Assistenten

KI-Agenten & Assistenten

Handle WhatsApp event bookings with OpenAI and Google Sheets

When an API call/webhook arrives, it runs an AI agent with OpenAI / ChatGPT using Postgres, Data Table, Google Sheets.

Was sie bewirkt

# WhatsApp booking assistant for an events venue Answers customer messages on WhatsApp, checks your event calendar in Google Sheets, and takes bookings without anyone typing a reply. It also reads the messages your team sends manually, so the conversation history stays complete and the assistant never repeats what a human just said. ### How it works 1. A webhook receives every WhatsApp message from a WAHA server and one config node holds all the connection details. 2. The system prompt is loaded from an n8n data table, so you can edit the assistant's behaviour without touching the workflow. 3. Customer messages and your team's own outgoing messages take separate paths, but both reach the agent. 4. The agent gets this week's calendar and five tools: events by date, all events, image analysis, Instagram ad lookup, and saving a booking. 5. It returns three things: whether a reply is needed at all, the reply text, and an optional image URL such as a price chart. 6. If no reply is needed nothing is sent. Otherwise the reply goes out as text, or as an image with a caption. ### Setup 1. Connect your OpenAI, Google Sheets and Postgres credentials. Postgres stores the chat memory. 2. Open Set config and fill in your WAHA server address, API key, session name and your business WhatsApp chat ID. 3. Replace YOUR_GOOGLE_SHEET_ID with your sheet, containing an Event Cal tab and a Bookings tab. 4. Create a data table holding your system prompt and select it on Load the system prompt. 5. Point the two tool workflow nodes at your own sub-workflows, or remove them. ### Customization Edit the prompt in your data table to change tone, pricing rules or booking questions.

Die Schritte

  1. Receive WhatsApp message
  2. Message to our number?
  3. Chat model - Agent
  4. Reply agent
  5. Output Parser - Reply fields
  6. Chat model - Parser auto-fix
  7. Events by date tool
  8. All events tool
  9. Should we reply?
  10. Send text reply
  11. Load the system prompt
  12. Image analysis tool
  13. Sent by us?
  14. Prepare customer message

Insgesamt 22 Schritte.

Ähnliche Automatisierungen