GenAiHub

Last checked 23 October 2026 — responded normally.

Handle WhatsApp event bookings with OpenAI and Google Sheets

Quick overview

Live
Open / InstallLast updated October 23, 2026

Description

Quick overview This workflow receives inbound WhatsApp messages via a WAHA webhook, uses OpenAI with Postgres chat memory and Google Sheets tools to answer event and booking questions, and replies back over the WAHA API with either text or an image caption. How it works Receives a POST webhook from your WAHA server for each WhatsApp message. Loads the assistant’s system prompt from an n8n data table and validates the message is addressed to your business WhatsApp chat ID. Stores either the customer’s message (excluding your own business chat) or your team’s outgoing message into a shared conversation context. Uses OpenAI with Postgres-backed conversation memory and tools that read your Google Sheets event calendar, look up Instagram post details, analyze images via a sub-workflow, and append confirmed bookings to Google Sheets. Parses the agent output into structured fields that indicate whether to reply, the reply text, and an optional image URL. If a reply is required, sends either a text message or an image with a caption back to the customer via the WAHA API. Setup Deploy and configure a WAHA server, then set the webhook URL to this workflow’s webhook endpoint. Add your OpenAI API credentials (used for the agent and structured output auto-fix). Add a Postgres credential and ensure a table named whatsapp_chat_history exists (or update the table name) for chat memory. Add Google Sheets credentials and replace YOUR_GOOGLE_SHEET_ID with a spreadsheet that includes an Event Cal sheet (A:K) and a Bookings sheet. Create an n8n data table containing a Prompt field, set its ID in the prompt loader, and fill in the WAHA API URL, API key, session name, and business WhatsApp chat ID in the config step. Set the workflow IDs for the image analysis and Instagram lookup sub-workflows (or remove those tools if you don’t use them). An n8n automation workflow template by isaWOW.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

isaWOW

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • http-request
  • ai-agent
  • openai-chat-model
  • structured-output-parser
  • call-n8n-workflow-tool
  • postgres-chat-memory

Capabilities

  • 6 nodes

Information

TypeWorkflow
Sourcen8n
AddedSeptember 5, 2026

Comments

?

Others in the same category, ranked by how often they are opened.