Skip to main content

How to connect a Telegram bot to Zendesk

Connect a Telegram bot to Zendesk so your customers can message you on Telegram and your team, or your Zendesk AI agent, answers them from Zendesk Agent Workspace.

Written by Youssef Amir

Before you start

You need:

  • A Zendesk Suite Professional plan or higher, with messaging and Agent Workspace turned on.

  • Admin access to Zendesk, to approve the connection.

  • An Octopods account with the Admin role. If you don't have one, you can sign up during step 1.

  • A Telegram account, to create your bot.

  • Zendesk AI agents Advanced (optional), if you want your AI agent to answer Telegram conversations first.

Tip: Make sure every agent who will reply has Chat access in Zendesk (Admin Center → People → Team members → the agent → Roles and access). Without it, agents can only add internal notes.

Installation Steps

Step 1: Create a Telegram bot

Already have a Telegram bot? Skip to step 2 and use its token. Read the warning below first.

  1. Open Telegram, search for @BotFather and start a chat.

  2. Send /newbot.

  3. Send a display name for your bot.

  4. Send a username that ends in bot. It must be unique on Telegram.

  5. Copy the HTTP API token BotFather sends you. It looks like 123456789:ABC....

Treat the token like a password. Anyone who has it can control your bot.

Warning: A Telegram bot can only send its messages to one place. If your bot is already connected to another tool, connecting it to Octopods moves its messages here, and the other tool stops receiving them. Use a separate bot if you need both.

Tip: You can set the bot's picture and description now with /setuserpic and /setdescription.

Step 2: Connect Zendesk to Octopods

  1. Go to Install Telegram for Zendesk. If you're already in Octopods, click Connect Zendesk on your workspaces page.

  2. Sign in to Octopods, or sign up if you don't have an account. You return to the install automatically.

  3. Zendesk asks you to sign in and choose your Zendesk account.

  4. Click Allow.

Step 3: Add your Telegram bot

After you click Allow, Octopods opens the Add a Channel form for your Zendesk workspace.

  1. Paste the token from step 1 into Telegram Bot Token.

  2. Optionally, give the channel a Friendly Name.

  3. Click Connect Telegram Bots to Zendesk.

Step 4: Choose who answers new conversations

By default, new Telegram conversations go to your agents in Agent Workspace. To have your Zendesk AI agent answer first:

  1. In Octopods, go to Settings → Zendesk.

  2. Under Hand New Conversations to Your Zendesk AI Agent, choose Yes, hand to the AI agent.

  3. Click Save Settings.

Your AI agent then answers each new conversation. When it hands over to a person, the conversation follows your AI agent's setup in Zendesk.

Warning: This needs Zendesk AI agents Advanced. AI agents Essential doesn't answer Telegram conversations. Without Advanced, conversations go to your Zendesk default responder.

Step 5: Send a test message

  1. In Telegram, search for your bot's username and send hello.

  2. In Zendesk, open Agent Workspace. The conversation appears with the Telegram icon.

  3. Reply as a public reply. The customer sees your reply in Telegram from your bot.

What data Octopods processes

Octopods relays messages between your Telegram bot and your Zendesk account. To do that, it handles:

Data

Why

Where it's kept

Customer's Telegram name, username, Telegram ID and language

To create the customer in Zendesk and show who's writing

Sent to your Zendesk

Message text, formatting and files from customers

To deliver them to Zendesk

Sent to your Zendesk. A copy of each original Telegram message is kept in Octopods' storage on AWS (US East), encrypted at rest.

Replies and files from your agents and AI agent

To deliver them to Telegram

Sent to Telegram. Agent files go to Telegram directly from Zendesk and aren't stored by Octopods

Zendesk connection token and Telegram bot token

To send and receive messages for you

Encrypted in Octopods' database on AWS, which is itself encrypted at rest

Octopods only uses the Zendesk messaging API. It doesn't read or change your Zendesk tickets, users or settings. See our Privacy Policy.

Common issues

  • "Session expired, please retry." — The install timed out. Start again from step 2 and finish within 10 minutes.

  • Agents can only add internal notes — Give them Chat access in Zendesk (see Before you start).

  • The AI agent never answers — Check that step 4 is set to Yes and that you have AI agents Advanced.

  • Your other Zendesk channels stop getting answers — The Octopods bot was set as the default for all channels. Undo this in Admin Center → AI → AI agents. Never set Octopods as the default.

  • Messages stopped arriving — Your bot token was revoked, or the Zendesk connection was removed. Reconnect from step 2.


What's next

Did this answer your question?