Telegram/WhatsApp AI Assistant — Free n8n Workflow Template
Connect an AI assistant to your Telegram bot or WhatsApp Business number. Customers ask questions in natural language and the assistant responds using your product info, FAQ and policies. It handles common queries, shares links and can collect lead info — all without human intervention.
Instant download · No signup · MIT license
Workflow nodes
Apps used
Setup guide
Requirements
- An n8n instance (Cloud or self-hosted, v1.x+)
- Telegram Bot Token or WhatsApp Business API access
- OpenAI API key
- Your business FAQ and product information
Credentials
| App | Type | Where to get it |
|---|---|---|
| Telegram | Bot Token | Chat with @BotFather on Telegram → /newbot → copy the token |
| OpenAI | API key | platform.openai.com → API keys |
| WhatsApp Business | Bearer token | Meta Business Suite → WhatsApp → API Setup |
- 1
Import the workflow
Download and import the JSON into n8n.
- 2
Choose your channel
Enable the Telegram Trigger for Telegram, the Webhook for WhatsApp, or both.
- 3
Upload your business knowledge
Index your FAQ, product catalog and policies into the vector store using the included setup sub-workflow.
- 4
Connect APIs
Add your Telegram Bot Token, OpenAI key and/or WhatsApp token to the relevant nodes.
- 5
Customize the personality
Edit the AI Agent's system prompt with your brand name, tone of voice and any rules (e.g. 'don't discuss competitor pricing').
- 6
Test conversations
Message your bot from a test account and verify responses are accurate and on brand.
Frequently asked questions
Can it handle Telegram and WhatsApp simultaneously?+
Yes. Both triggers are in the same workflow. The AI Agent processes the query identically, and the response routes to the correct channel.
Does it remember previous messages?+
Yes. The workflow maintains conversation memory per user session so the assistant can reference earlier messages in the same chat.
Can it collect customer information?+
Yes. The AI can ask for name, email and phone when configured, and log the data to a spreadsheet or CRM.
What languages does it support?+
It responds in whatever language the customer uses. OpenAI models handle most major languages well.
Related templates
AI Blog Autopilot
Turns keywords or RSS items into AI-written blog drafts and posts them to WordPress.
AI Search Visibility Check
Checks if ChatGPT, Claude and Perplexity mention your brand and reports results.
YouTube to Blog + Social
Converts a YouTube video into a blog post and a set of social media posts using AI.
Want us to set it up for you?
We install the workflow on your n8n instance, connect credentials, and leave you with a running automation.
Get setup help