Auto-reply to WhatsApp with OpenAI and escalate complex chats to Discord via Unipile
Ready for 3.0What 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).
- Filter: keeps only the items that match a condition
- Fetch WhatsApp Chat History (HTTP Request): calls an HTTP API
- WhatsApp Response Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-5-Mini Model; output parser: Parse Structured JSON Output
- If: checks a condition and branches into true / false
- Send AI Reply via Unipile (HTTP Request): calls an HTTP API
- Send Escalation to Discord (Discord): uses Discord
- Set Unipile Webhook Config (Edit Fields (Set)): sets or maps fields
- Register Webhook in Unipile (HTTP Request): calls an HTTP API
Services it uses
Other OpenAI + Discord templates (89)
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)
- Webhook
n8n-nodes-base.webhook - Filter
n8n-nodes-base.filter - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Discord
n8n-nodes-base.discord - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set
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…