Skip to content
Muhammad Mustafa - AI EngineerMuhammad Mustafa - AI Engineer

TemplatesWhatsApp / Telegram AI FAQ bot

WhatsApp / Telegram AI FAQ bot

A Telegram bot answers from a FAQ policy you paste into the prompt. If the model marks a handoff, the caller is told a person will follow up and Slack is notified. If the model call fails, the caller gets a fallback line.

Telegram Trigger, Edit Fields, HTTP Request, Code, IF, Telegram, Slack

Download workflow JSON

Answer

  1. Telegram message
  2. Normalize
  3. Draft FAQ answer
  4. Needs a human? No
  5. Send FAQ answer

Human

  1. Needs a human? Yes
  2. Tell the caller
  3. Ask a human in Slack

Model failure

  1. OpenAI error output
  2. Send a fallback reply

Setup

  1. Import the JSON. Create a Telegram bot with BotFather and attach that credential to the trigger and the three send nodes.
  2. Replace the placeholder policy inside “Draft FAQ answer” with the answers the bot is allowed to give, including what it must never promise.
  3. Attach the OpenAI Header Auth credential. The value stays in n8n credentials, not in the file.
  4. Attach Slack and set #support-handoff.
  5. For WhatsApp, keep the normalize, OpenAI, IF, and Slack nodes. Replace the Telegram trigger and send nodes with the WhatsApp Business Cloud nodes, as the sticky note on the canvas says.
  6. A pinned Telegram message asks about Saturday hours so you can run the middle of the workflow without a phone.

No real credentials are included. After import, n8n will ask you to attach your own accounts. You can also run the file through the n8n health check.