Templates / Auto-reply to WhatsApp with OpenAI and escalate complex chats to Discord via Unipile

Auto-reply to WhatsApp with OpenAI and escalate complex chats to Discord via Unipile

Ready for 3.0

by Allan Vaccarizi ✓ · 57 views · created 2026-05-12 · 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 12 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects Discord and OpenAI Chat Model.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Filter: keeps only the items that match a condition
  2. Fetch WhatsApp Chat History (HTTP Request): calls an HTTP API
  3. WhatsApp Response Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-5-Mini Model; output parser: Parse Structured JSON Output
  4. If: checks a condition and branches into true / false
  5. Send AI Reply via Unipile (HTTP Request): calls an HTTP API
  6. Send Escalation to Discord (Discord): uses Discord
  7. Set Unipile Webhook Config (Edit Fields (Set)): sets or maps fields
  8. Register Webhook in Unipile (HTTP Request): calls an HTTP API

Services it uses

DiscordOpenAI Chat Model

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 (10)

From the author

Who it's for This workflow is for customer service teams, solopreneurs, and small businesses that receive WhatsApp inquiries and want to automate first-level responses while keeping a human in the loop for complex cases. How it works 1. Incoming WhatsApp…

Excerpt from Allan Vaccarizi'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.