Manage WhatsApp and Telegram business ops with OpenAI, Postgres and Sheets
Ready for 3.0What this workflow does
This AI workflow has 43 nodes and runs on WhatsApp events (plus 2 other triggers). Along the way it connects WhatsApp Business Cloud, Telegram, Postgres and OpenAI Chat Model and 1 more.
How it runs
Trigger: On WhatsApp events (plus 2 other triggers).
- Normalize WhatsApp Messages (Code): runs custom JavaScript code
- Normalize Telegram Messages (Code): runs custom JavaScript code
- Sample Event Setup (Code): runs custom JavaScript code
- Configure Business Profile (Code): runs custom JavaScript code
- Record Inbound Event in DB (Postgres): uses Postgres
- Check Event Status (If): checks a condition and branches into true / false
- Verify Admin Approval (If): checks a condition and branches into true / false
- Apply Admin Decision in DB (Postgres): uses Postgres
- Fetch Approved KB and History (Postgres): uses Postgres
- Format Admin Response (Code): runs custom JavaScript code
…plus 17 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 (13)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Telegram Trigger
n8n-nodes-base.telegramTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Postgres
n8n-nodes-base.postgres - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Google Sheets
n8n-nodes-base.googleSheets - WhatsApp Business Cloud
n8n-nodes-base.whatsApp
From the author
Quick overview This workflow connects WhatsApp and Telegram to six specialist OpenAI agents for sales, supplier management, inventory, invoices, appointments and customer support. It retrieves business knowledge from Google Sheets, records validated actions…