> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enconvo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# IM Channels

> Connect a Telegram or Discord bot to an Enconvo Agent, and choose who can talk to it.

IM Channels let people talk to an Enconvo Agent from Telegram or Discord. Each channel is a bot bound to one Agent: incoming messages go to that Agent, and it writes the replies. One Agent can serve several channels, but each channel serves at most one Agent. Set them up in **Settings → IM Channels**.

This video sets up a Telegram channel, between a look at Avatar and at Credential Management.

![How to Use Avatars, IM Channels and Credentials in Enconvo | Step-by-Step Tutorial](https://img.youtube.com/vi/O5rNJwqlisg/maxresdefault.jpg)

## Before you start

* Create a bot on the platform and copy its bot token (see [Telegram](#telegram) and [Discord](#discord) below).
* Keep Enconvo running and the Mac online while the bot is listening.

> [!NOTE]
>
> The free plan runs one IM bot at a time. An Enconvo Cloud plan or a lifetime license runs more. See [Plans and Pricing](https://docs.enconvo.ai/pricing.md).

## Add a channel

**1. Add the channel**

Open **Settings → IM Channels**, click **Add New Channel**, and pick **Telegram** or **Discord**.

**2. Name it**

Give the channel a name you'll recognize.

**3. Paste the bot token**

Paste the platform's bot token into **Bot Token**.

**4. Choose the Agent**

In **bind agent**, choose the Agent that handles incoming messages.

**5. Turn it on**

Review who can use the bot (for Telegram, **Access Control**), then turn on **Enable Channel**.

**6. Test it**

Click **Check Connection** and make sure the channel shows **Connected**. Then send a test message from an allowed account.

The bound Agent's model and tools decide what the bot can answer.

## Telegram

Create a bot with Telegram's **BotFather** and copy its bot token. Before you turn the channel on, open its **Access Control**:

| Control | What it does |
| - | - |
| **Policy** | **Pairing Required** (the default): a new user shares a pairing code and waits for your approval. **Open (Everyone)**: anyone who finds the bot can use it. |
| **Pending Requests** | **Approve** or **Deny** each user who asked to pair. Approve only the people you mean to. |
| **Allowed Users** | The users you approved. **Remove** takes one off the list; they need to pair again to use the bot. |

If the bot works in a direct chat but not in a group, check Telegram's bot privacy and group permissions as well as the channel's access policy. A token alone doesn't give the bot access to every conversation.

## Discord

Create an application and a bot in the Discord Developer Portal. Invite the bot to your server, and give it the permissions and intents it needs to receive and send the messages you want. Paste its bot token into the Discord channel and bind an Agent.

If it connects but doesn't reply, check the channel's permissions on Discord and whether the bot receives that type of message. Keep the bot limited to the server and channels you mean.

## Sessions and replies

Each incoming conversation gets its own chat session with the bound Agent. Replies follow that conversation; connected users don't share one transcript. Changing the bound Agent restarts the channel, so later messages go to the new Agent.

For a public or team bot, use a dedicated Agent with fitting instructions and tools. Review which tools it can use before you let other people reach it.

## Scheduled delivery

[Automations](https://docs.enconvo.ai/workflows/scheduled-jobs.md) can send their results to an IM chat you set up. Choose the destination yourself, and use the task's run history to tell a failed run from a failed delivery.

## Troubleshooting

| Problem | What to do |
| - | - |
| Disconnected | Check the bot token, the network, that **Enable Channel** is on, and that Enconvo is running. |
| Connected but silent | Check the bound Agent, the Agent's model provider, the platform's permissions, and the pairing policy. |
| The bot answers the wrong way | Check the bound Agent's instructions, tools, and model. |
| A Telegram user can't connect | Look for their pairing request under **Pending Requests**, and check **Allowed Users**. |
| A second bot won't start | The free plan runs one IM bot at a time. Turn the other bot off, or upgrade. |
| Replies stop after you quit Enconvo | The bot listens through Enconvo on your Mac, so the app must keep running. |

IM Channels set up only Telegram and Discord. If you reach Slack or Feishu through another plugin or an MCP server, follow that integration's own guide.

## Related

> [card] [Agents](https://docs.enconvo.ai/ai/agents.md)
>
> Set up the Agent that answers your bot.

> [card] [Automations](https://docs.enconvo.ai/workflows/scheduled-jobs.md)
>
> Send scheduled results to an IM chat.

> [card] [Plans and Pricing](https://docs.enconvo.ai/pricing.md)
>
> What each plan includes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.