n8n

How to Automate Telegram Assistant Tasks?

Chat in Telegram to run work tasks in one place. A smart assistant reads your message or voice note and sends it to the right action like email, contacts, content, or calendar. It fits teams that want fast help on the go.

New messages enter through a Telegram trigger. A switch checks if the user sent text or a voice note. Voice files download and get turned into text with OpenAI. The text then moves to an assistant that uses OpenAI, chat memory by chat id, a web search tool, and a calculator. It routes your request to email, contact updates, blog content, or calendar actions, then sends the reply back to Telegram.

You will need a Telegram bot, an OpenAI key, and a Tavily key. Expect faster replies and less app switching, with about 60 percent less time spent on small tasks. Good for busy founders, sales reps, and ops teams who want quick actions from their phone without jumping between tools.

What are the key features?

  • Telegram trigger listens for new messages and voice notes
  • Switch node routes voice to transcription or passes text as is
  • Voice files download and are transcribed to text with OpenAI
  • Set node maps Telegram message text to a clean text field
  • Assistant uses OpenAI with memory per chat to keep context in short windows
  • Tool routing to separate agents for email, contacts, content writing, and calendar actions
  • Web search with Tavily and quick math with a calculator tool
  • Single Response node sends results back to the same Telegram chat

What are the benefits?

  • Reduce manual routing from 15 minutes to 2 minutes per request
  • Streamline chat to action steps by about 60 percent
  • Handle email, contacts, content, and calendar from one chat
  • Cut app switching and copy paste errors by up to 80 percent
  • Support both text and voice so more people can use it fast

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram, OpenAI and Tavily. See the Tools Required section above for links to create accounts with these services.
  3. Create a Telegram bot using BotFather in Telegram and copy the bot token. In n8n, open the Telegram Trigger node, choose Create new credential, and paste the token. Use the same credential in the Response and Download File nodes.
  4. Open the OpenAI Chat Model node and the Transcribe node. In each, choose Create new credential, select your OpenAI account, and paste your OpenAI API key from the OpenAI website API page.
  5. Open the Tavily HTTP Request tool node. Replace the api_key field in the JSON body with your Tavily API key from the Tavily dashboard. For better security, store the key as an environment variable and reference it in the body.
  6. In the Telegram Trigger node, set updates to message so the bot reacts to incoming chats and voice notes. Activate the workflow so n8n can receive updates.
  7. Check the Switch node logic. One branch should pass message text to the Set node. The other branch should download the voice file and send it to the Transcribe node.
  8. Verify the Set Text node maps message.text to a text field. This text is sent to the assistant.
  9. Open the Ultimate Assistant node. Confirm tools are connected to the Email, Contact, Content Creator, and Calendar agent nodes, and that the OpenAI model is set. Keep the memory node linked so the assistant remembers recent chat context.
  10. Test with a simple text prompt in Telegram like Draft a follow up email. You should get a direct reply in the same chat. Then send a short voice note and check that a text reply returns.
  11. If no reply arrives, confirm the workflow is active, the Telegram bot token is valid, and the correct Telegram credential is selected in all Telegram nodes. If transcription fails, check your OpenAI key and file size. If web search fails, verify the Tavily key in the request body.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Tavily

Sign up

Free plan: $0 / mo, 1,000 API credits / mo

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.