Run a WhatsApp support agent with Nodium and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model and OpenAI.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Read raw body (Extract from File): extracts data from a file (text)
- Compute signature (Crypto): hashes or encrypts values
- Valid signature? (If): checks a condition and branches into true / false
- Settings (Edit Fields (Set)): sets 6 fields: nodiumApiUrl, businessInfo, handoverReply…
- Read the message (Code): runs custom JavaScript code
- Route the message (Switch): routes items into 4 branches
- Show typing (HTTP Request): calls an HTTP API (POST)
- Download the voice note (HTTP Request): calls an HTTP API
- Tell the customer a person will answer (HTTP Request): calls an HTTP API (POST)
- Ask to type instead (HTTP Request): calls an HTTP API (POST)
…plus 4 more steps. See the full node list below.
Services it uses
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 (12)
- Webhook
n8n-nodes-base.webhook - Extract from File
n8n-nodes-base.extractFromFile - Crypto
n8n-nodes-base.crypto - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
Quick overview This workflow receives WhatsApp messages from Nodium via webhook, verifies the request signature, and uses OpenAI to transcribe voice notes and generate replies based on your business details, with an automatic handover flow that stops the bot…