tr Skip to content

Connect AI Agents and Telegram

FlowMattic AI Agents can read a Telegram message, decide what it needs and reply through your bot. Use them to answer questions in a group, screen people who ask to join, explain alerts from other apps or post a morning briefing. Everything runs as a workflow on your own WordPress site.

1 trigger 12 actions 6 example workflows 6 ready-made templates Unlimited runs

Try a pairing

When this happens in Telegram1 trigger

Do this in AI Agents1 action

1. TriggerSet Webhook / Watch Updates
2. ActionExecute Agent

When Telegram fires Set Webhook / Watch Updates, FlowMattic runs Execute Agent in AI Agents with the data from that event.

You build this in the FlowMattic workflow builder on your own site. See the setup steps

AI Agents and Telegram workflows you can build

Each one uses only triggers and actions the two integrations ship today, plus FlowMattic's own tools. Where the library has a ready-made template, import it instead of building from scratch.

AI Agents app icon Telegram app icon

Answer questions sent to your Telegram bot

Customers or members message the bot, the agent answers from the instructions and knowledge you give it, and the reply goes back to the same chat.

Set Webhook / Watch UpdatesExecute AgentSend a Text Message

AI Agents app icon Telegram app icon

Remove spammers from a community group

The agent judges each new group message against your rules. A Router bans accounts posting obvious scam links and leaves everyone else alone, so admins wake up to a cleaner group.

Set Webhook / Watch UpdatesExecute AgentRouterBan User

AI Agents app icon Telegram app icon

Screen join requests and send an invite link

People message the bot to ask about a private group. The agent checks their answer against your criteria, and those who fit get a fresh invite link in their chat.

Set Webhook / Watch UpdatesExecute AgentFilterCreate Invite LinkSend a Text Message

AI Agents app icon Telegram app icon

Post a morning briefing written by the agent

A Schedule fetches figures or headlines with an API request, and the agent turns them into a short briefing for your team's Telegram chat before the working day starts.

ScheduleAPI requestExecute AgentSend a Text Message

AI Agents app icon Telegram app icon

Explain raw webhook alerts in plain words

Monitoring tools and stores send dense JSON. The agent reads the payload, says what happened and what to check, and Telegram carries the message to whoever is on duty.

WebhookExecute AgentSend a Text Message

AI Agents app icon Telegram app icon

Ask your channel a weekly question with a poll

Each week the agent drafts a poll question and options on a theme you set, and the bot posts it, giving community managers a regular conversation starter.

ScheduleExecute AgentSend Poll

Set up: a bot that answers questions

You will finish with a Telegram bot that passes each message to an AI agent and sends back its answer.

  1. Connect your bot

    Create a bot in Telegram, then add its token as a Telegram connection under Connects in FlowMattic.

  2. Watch for messages

    Start a workflow with the Telegram Set Webhook / Watch Updates trigger and send the bot a test message so FlowMattic captures it.

  3. Configure the agent

    Add an AI Agents step with Execute Agent. Give it a clear goal, the tone to use and the facts it may rely on, and pass in the message text.

  4. Send the reply

    Add Send a Text Message, map the chat ID from the trigger and the agent's answer as the text.

  5. Test and switch on

    Test each step with the captured message, read the reply in Telegram and switch the workflow on.

Answer questions sent to your Telegram bot
  1. Telegram app icon 1. Trigger in Telegram Set Webhook / Watch Updates
  2. AI Agents app icon 2. Action in AI Agents Execute Agent
  3. Telegram app icon 3. Action in Telegram Send a Text Message

    Fields mapped from the earlier steps (a typical setup)

    From TelegramTo Telegram
    Message textAgent input
    Chat IDSend a Text Message chat ID
    Agent answerMessage text
Built on the FlowMattic canvas. Test each step with real data, then switch the workflow on.

Triggers and actions in this pair

A trigger starts a workflow. An action is something FlowMattic does in the app as a step.

Good to know

  • AI Agents has no trigger of its own, so these workflows begin with the bot's updates, a Schedule or a Webhook.
  • Telegram only lets a bot ban users or create invite links in groups where it is an admin, so promote the bot before using those steps.
  • The trigger receives every update the bot gets. Add a Filter on chat ID or message type when only one group should reach the agent.
AI Agents app icon

AI Agents

Integration page

Actions (1)

  • Execute AgentExecute the AI Agent and let it think, take decisions, execute and iterate over the provided tools

Triggers (1)

  • Set Webhook / Watch UpdatesTriggers when there's an update available for the bot

Actions (11)

  • Send a Text MessageSends a text message with support to markup
  • Send PhotoSend a photo/image to your chat
  • Send an Audio FileSend any audio file with URL to your chat
  • Send a DocumentSend document file to your chat
  • Send a VideoSend video file with URL to your chat
  • Send ContactSend contact to your chat
  • Send PollSend a new poll to your chat
  • Create Invite LinkCreate an invite link for a group chat
  • Revoke Invite LinkRevoke an invite link for a group chat
  • Ban UserBan a user from a group chat
  • Unban UserUnban a user from a group chat

Why run this pair with FlowMattic

AI Agents and Telegram connect through FlowMattic on your own site, with no separate automation account in the middle and no charge per run.

The agent decides, Telegram delivers

One workflow can read a message, judge it and act with any of the eleven Telegram actions, from a reply to a ban.

Chatty groups cost the same

FlowMattic runs are unlimited, so a busy community bot does not need a bigger automation plan.

Messages stay on your server

The workflow runs on your WordPress site, so members' messages pass through your own server on the way to the agent.

Common questions

Can a FlowMattic AI agent reply to people in Telegram?

Yes. The Telegram trigger passes each bot message to Execute Agent, and Send a Text Message returns the answer to the chat the message came from.

Can the agent post photos or files?

Yes. If the agent returns a link to an image or document, Send Photo or Send a Document can post it from that URL.

Can the bot work in a group as well as private chats?

Yes. Add the bot to the group and the trigger receives its messages. Use a Filter if the agent should answer only when it is mentioned.

How do I keep the agent's answers accurate?

Give the agent narrow instructions and the facts it should use, and test with real captured messages before switching on. For sensitive replies, add a Human in the Loop step so a person approves the answer first.

Did not find your answer? You can browse the help center or ask us directly.

Start automating AI Agents and Telegram

Install FlowMattic, connect both accounts and import a template. Every run stays on your own server.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Reviewed 23 Oct 2026. The example workflows are written with AI from the real triggers and actions of both integrations and checked against them. AI Agents integration 1.0, Telegram integration 2.0.