# WhatsApp support bot with OpenAI: n8n workflow template

> Started by an incoming WhatsApp message, and works across WhatsApp. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/whatsapp-support-bot-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Customer support](https://millionrounds.com/workflows?category=Customer+support#library)

# WhatsApp support bot with OpenAI

Started by an incoming WhatsApp message, and works across WhatsApp. It hands the judgement calls to OpenAI. 10 steps, 3 branches: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fwhatsapp-support-bot-with-openai)

**10 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 2 Logic 3 Service 4

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

- 1 **WhatsApp Trigger1** Whats App trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Check Greeting** If *Logic*
- 4 **AI Agent** Agent *Model*
- 5 **Send Greeting Response** Whats App *Service*
- 6 **If** If *Logic*
- 7 **Send message1** Whats App *Service*
- 8 **Send Greeting Response1** Whats App *Service*
- 9 **If1** If *Logic*
- 10 **Send Greeting Response2** Whats App *Service*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 10, with 3 branches
- **Size:** Medium: a working afternoon
- **Connects to:** WhatsApp
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own WhatsApp account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 10 steps is enough that you should read each one before running it.

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 10 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fwhatsapp-support-bot-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also customer support, with the same services where possible, closest in size first.

- [**Answer WhatsApp support chats with OpenRouter and Pinecone** 10 steps · calls a model · Gmail, Pinecone](https://millionrounds.com/workflow/answer-whatsapp-support-chats-with-openrouter-and-pinecone)
- [**AI customer support assistant with WhatsApp** 11 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/ai-customer-support-assistant-with-whatsapp)
- [**WhatsApp AI customer service bot with Gmail** 11 steps · calls a model · Gmail, WhatsApp](https://millionrounds.com/workflow/whatsapp-ai-customer-service-bot-with-gmail)
- [**WhatsApp support agent with OpenAI** 11 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/whatsapp-support-agent-with-openai)
- [**Automate restaurant customer service with WhatsApp and Llama** 8 steps · calls a model · Postgres, WhatsApp](https://millionrounds.com/workflow/automate-restaurant-customer-service-with-whatsapp-and-llama)
- [**Automate FAQ responses with WhatsApp** 12 steps · WhatsApp](https://millionrounds.com/workflow/automate-faq-responses-with-whatsapp)
