Run a WhatsApp AI support bot with Google Drive, OpenAI, and Telegram
Ready for 3.0What this workflow does
This AI workflow has 58 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects WhatsApp Business Cloud, Telegram, Google Drive and OpenAI and 2 more. It also calls api.openai.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).
- Create Chats Data Table (Data table): create (table)
- Set Configuration Fields (Edit Fields (Set)): sets 15 fields: businessName, assistantName, driveFolderId…
- Create Messages Data Table (Data table): create (table)
- Route by Message Source (Switch): routes items into 2 branches
- Create Knowledge Data Table (Data table): create (table)
- Parse WhatsApp Messages (Code): runs custom JavaScript code
- Parse Team Telegram Reply (Code): runs custom JavaScript code
- List Google Drive Files (Google Drive): work with file folder
- Filter Seen Messages (Data table): row not exists
- Retrieve Customer Chat Details (Data table): get (row)
…plus 42 more steps. See the full node list below.
Services it uses
HTTP calls to: api.openai.com
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 (20)
- Manual Trigger
n8n-nodes-base.manualTrigger - Data table
n8n-nodes-base.dataTable - Schedule Trigger
n8n-nodes-base.scheduleTrigger - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Google Drive
n8n-nodes-base.googleDrive - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Extract from File
n8n-nodes-base.extractFromFile - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - OpenAI
@n8n/n8n-nodes-langchain.openAi - Telegram
n8n-nodes-base.telegram - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow runs an AI WhatsApp support bot that answers using Google Drive documents indexed into n8n Data Tables with OpenAI embeddings, and hands conversations to your team via Telegram when needed while logging handoffs to Google Sheets.…