# Create an AI chatbot for WhatsApp with Whapi.Cloud and OpenAI: n8n workflow

> Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/create-an-ai-chatbot-for-whatsapp-with-whapi-cloud-and-opena (Millionrounds; every figure on the page links to its filing or article)

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

# Create an AI chatbot for WhatsApp with Whapi.Cloud and OpenAI

Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI. 28 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcreate-an-ai-chatbot-for-whatsapp-with-whapi-cloud-and-opena)

**28 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Model 1 Logic 17 Service 9

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

- 1 **1️⃣ Receive WhatsApp Message** Webhook *Starts it*
- 2 **2️⃣ Get Message Info** Set *Logic*
- 3 **3️⃣ Ignore Bot's Own Messages** If *Logic*
- 4 **✔✔ Mark message as read** Http Request *Service*
- 5 **4️⃣ What Type of Command?** Switch *Logic*
- 6 **Extract AI Question** Set *Logic*
- 7 **5️⃣ Which Number Command? (1-9)** Switch *Logic*
- 8 **Show Help Menu** Set *Logic*
- 9 **Message a model** Open Ai *Model*
- 10 **Prepare: Simple Text** Set *Logic*
- 11 **Prepare: Image (Command 2)** Set *Logic*
- 12 **Prepare: Document (Command 3)** Set *Logic*
- 13 **Prepare: Video (Command 4)** Set *Logic*
- 14 **Prepare: Contact (Command 5)** Set *Logic*
- 15 **Prepare: Product (Command 6)** Set *Logic*
- 16 **Prepare: Create Group (Command 7)** Set *Logic*
- 17 **Prepare: Group Message (Command 8)** Set *Logic*
- 18 **Get Groups List (Command 9)** Http Request *Service*
- 19 **📤 Send Text Message** Http Request *Service*
- 20 **Format AI Answer** Set *Logic*
- 21 **📤 Send Image** Http Request *Service*
- 22 **📤 Send Document** Http Request *Service*
- 23 **📤 Send Video** Http Request *Service*
- 24 **📤 Send Contact** Http Request *Service*
- 25 **📤 Send Product** Http Request *Service*
- 26 **Create WhatsApp Group** Http Request *Service*
- 27 **Format Groups List** Set *Logic*
- 28 **Format Group Creation Result** Set *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 28, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** OpenAI

## Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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?

Take your time. At 28 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 28 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%2Fcreate-an-ai-chatbot-for-whatsapp-with-whapi-cloud-and-opena)
- **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.

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Dynamic website assistant with DeepSeek** 28 steps · calls a model · Pinecone](https://millionrounds.com/workflow/dynamic-website-assistant-with-deepseek)
- [**GitHub repository AI agent with OpenAI** 28 steps · calls a model](https://millionrounds.com/workflow/github-repository-ai-agent-with-openai)
- [**Triage and label Gmail emails with OpenAI** 28 steps · calls a model · Gmail](https://millionrounds.com/workflow/triage-and-label-gmail-emails-with-openai)
- [**AI chatbot call center: Demo call center with Grok and Redis** 27 steps · calls a model · Redis](https://millionrounds.com/workflow/ai-chatbot-call-center-demo-call-center-with-grok-and-redis)
- [**AI voice & text note-taking with LINE Messaging** 27 steps · calls a model · Gmail, Supabase vectors](https://millionrounds.com/workflow/ai-voice-and-text-note-taking-with-line-messaging)
- [**Automatic LinkedIn engagement with OpenAI and Phantombuster** 29 steps · calls a model](https://millionrounds.com/workflow/automatic-linkedin-engagement-with-openai-and-phantombuster)
