Automation library · Customer support

Create a WhatsApp customer support bot with OpenAI

Started by an event in a connected app, and works across Gmail, Google Calendar, Supabase vectors and Twilio. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

23 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 2Model 14Logic 1Service 6

The steps in the order they run, from what starts it.

  1. 1When Executed by Another WorkflowExecute Workflow triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Get many events in Google CalendarGoogle Calendar ToolService
  4. 4Create an event in Google CalendarGoogle Calendar ToolService
  5. 5Delete an event in Google CalendarGoogle Calendar ToolService
  6. 6Create an event in Google Calendar1Google Calendar ToolService
  7. 7Calendar ToolTool WorkflowModel
  8. 8Knowledge Base ToolTool WorkflowModel
  9. 9Email ToolTool WorkflowModel
  10. 10OpenAI Chat Model1Lm Chat Open AiModel
  11. 11Embeddings OpenAIEmbeddings Open AiModel
  12. 12OpenAI Chat Model2Lm Chat Open AiModel
  13. 13Send a message in GmailGmail ToolService
  14. 14OpenAI Chat Model3Lm Chat Open AiModel
  15. 15Conversation Memory (Postgres)Memory Postgres ChatModel
  16. 16Incoming WhatsApp MessageTwilio triggerStarts it
  17. 17Calendar AgentAgentModel
  18. 18WhatsApp AI Support AgentAgentModel
  19. 19Supabase Vector StoreVector Store SupabaseModel
  20. 20Knowledge Base AgentAgentModel
  21. 21Email AgentAgentModel
  22. 22Format Incoming MessageSetLogic
  23. 23Send WhatsApp ReplyTwilioService

How it's built

Starts on
An event in a connected app
Steps
23
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Calendar, Supabase vectors, Twilio
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Calendar, Supabase vectors and Twilio accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.