Automation library · AI assistants

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.

LargeCalls a model: OpenAI

28 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 1Model 1Logic 17Service 9

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

  1. 11️⃣ Receive WhatsApp MessageWebhookStarts it
  2. 22️⃣ Get Message InfoSetLogic
  3. 33️⃣ Ignore Bot's Own MessagesIfLogic
  4. 4✔✔ Mark message as readHttp RequestService
  5. 54️⃣ What Type of Command?SwitchLogic
  6. 6Extract AI QuestionSetLogic
  7. 75️⃣ Which Number Command? (1-9)SwitchLogic
  8. 8Show Help MenuSetLogic
  9. 9Message a modelOpen AiModel
  10. 10Prepare: Simple TextSetLogic
  11. 11Prepare: Image (Command 2)SetLogic
  12. 12Prepare: Document (Command 3)SetLogic
  13. 13Prepare: Video (Command 4)SetLogic
  14. 14Prepare: Contact (Command 5)SetLogic
  15. 15Prepare: Product (Command 6)SetLogic
  16. 16Prepare: Create Group (Command 7)SetLogic
  17. 17Prepare: Group Message (Command 8)SetLogic
  18. 18Get Groups List (Command 9)Http RequestService
  19. 19📤 Send Text MessageHttp RequestService
  20. 20Format AI AnswerSetLogic
  21. 21📤 Send ImageHttp RequestService
  22. 22📤 Send DocumentHttp RequestService
  23. 23📤 Send VideoHttp RequestService
  24. 24📤 Send ContactHttp RequestService
  25. 25📤 Send ProductHttp RequestService
  26. 26Create WhatsApp GroupHttp RequestService
  27. 27Format Groups ListSetLogic
  28. 28Format Group Creation ResultSetLogic

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.