Templates / Create an AI chatbot for WhatsApp with Whapi.Cloud and OpenAI GPT-3.5

Create an AI chatbot for WhatsApp with Whapi.Cloud and OpenAI GPT-3.5

Ready for 3.0

by Jason Mitchell · 881 views · created 2026-01-15 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 28 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI. It also calls gate.whapi.cloud over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. 2️⃣ Get Message Info (Edit Fields (Set)): sets 5 fields: message, chatId, textBody…
  2. 3️⃣ Ignore Bot's Own Messages (If): checks a condition and branches into true / false
  3. ✔✔ Mark message as read (HTTP Request): calls an HTTP API (PUT)
  4. 4️⃣ What Type of Command? (Switch): routes items into 2 branches
  5. Extract AI Question (Edit Fields (Set)): sets 1 field: aiPrompt
  6. 5️⃣ Which Number Command? (1-9) (Switch): routes items into 9 branches
  7. Show Help Menu (Edit Fields (Set)): sets 2 fields: to, body
  8. Message a model (OpenAI): uses OpenAI
  9. Prepare: Simple Text (Edit Fields (Set)): sets 2 fields: to, body
  10. Prepare: Image (Command 2) (Edit Fields (Set)): sets 3 fields: to, caption, mediaPath

…plus 17 more steps. See the full node list below.

Services it uses

OpenAI

HTTP calls to: gate.whapi.cloud

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

How it works: • Receives WhatsApp messages via webhook from Whapi.Cloud • Routes commands: AI chat (/ai), numeric commands (1-9), or help menu • Sends responses: text, images, documents, videos, contacts, product info • Manages WhatsApp groups: create, send…

Excerpt from Jason Mitchell's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.