Skip to content
Clovieby deleguj AI

Integrations

Telegram: conversation handoff

How to connect Telegram to Clovie so an agent can take over a conversation with a customer live.

Once you connect Telegram, a visitor can ask for an agent in the chat, and your team replies from Telegram on their phone. The visitor stays in the same chat window on your website.

As of: 2026-10-16.

Requirements

  • A Telegram account for each agent.
  • A bot created in @BotFather with a @username set.
  • Each assistant has its own bot. One bot can't serve two assistants, because Telegram sends a bot's events to only one address.

The bot writes in Polish. Below, its messages and buttons are given in Polish with an English translation.

1. Create a bot

  1. In Telegram, open @BotFather.
  2. Send /newbot, enter a name and a username (for example yourcompany_support_bot).
  3. Copy the API token.

2. Connect the bot to the assistant

  1. In the dashboard, open the assistant setup and go to the Integrations step. You can open the same step from the Integrations menu: choose the assistant from the list.
  2. Expand the Telegram card, paste the token and click Connect bot.
  3. Clovie checks the token, saves it encrypted and sets up the connection between the bot and Clovie on its own.

3. Link the agent's account

Each team member who will reply from Telegram:

  1. Opens the Telegram card of the same assistant and clicks the link under Your agent account.
  2. Opens this link in Telegram. They don't search for the bot manually.
  3. If nothing happens, taps Start at the bottom of the chat.
  4. The bot replies: “Konto powiązane” (account linked).

The link applies to one assistant. An agent who serves several assistants links their account in the card of each of them.

4. Turn on the button in the widget

  1. In the assistant setup, go to the Basics step.
  2. Turn on Ask for an agent.
  3. Publish the assistant.

The button appears in the widget when the bot is connected and at least one agent has linked their account.

How the conversation goes

  1. The visitor clicks Ask for an agent.
  2. All linked agents get a notification with the Dołącz (Join) button.
  3. The first agent who clicks Dołącz takes over the conversation. An agent handles at most one conversation at a time.
  4. The visitor and the agent write to each other: the visitor in the widget, the agent in Telegram.
  5. The visitor can click Cancel waiting before anyone joins. The conversation with the assistant then continues.
  6. The agent ends it with the Zakończ rozmowę (End conversation) button or the /zakoncz command. The visitor sees a message that the conversation has ended and a Start a new conversation button.

Common problems

Symptom What to do
No notifications in Telegram Check that the agent linked their account in this assistant's card and that the bot is connected
The widget has no “Ask for an agent” button Turn it on in the Basics step, connect the bot and link at least one agent, then publish the assistant
“Rozmowa już przejęta” (conversation already taken) Another agent clicked Dołącz first
“Masz już aktywną rozmowę” (you already have an active conversation) End the current conversation (/zakoncz) before you take over the next one
“Couldn't request an agent.” or no button after the conversation has ended Click Start a new conversation; check that the website's domain is on the allowed list in the Installation step
The linking link doesn't work Refresh the card in the dashboard and use the new link: a link works once and is valid for 15 minutes

Related