# AI agents on Telegram, WhatsApp, Signal

Write to one of your Truetask AI agents from Telegram, WhatsApp or Signal on your phone, and carry the same conversation on in Truetask.

URL: https://docs.truetask.io/agents/chat-apps

Truetask can give one of your AI agents a way in from Telegram, WhatsApp or Signal on your phone.
You write to it there, it answers there, and the conversation is the one Truetask shows for that agent, so you can start on your phone and carry on at your desk.

| App | How the agent is reached |
| --- | --- |
| Telegram | A bot of its own, which you make in Telegram for free |
| WhatsApp | The workspace's WhatsApp number, shared by every agent |
| Signal | A signal-cli bridge you run yourself |

Only the agent's owner sets a messaging app up, and only people who pair with it can talk to it.
Anyone else who writes gets one sentence and nothing more: no model is called and nothing about the agent is said.

## Open the page

Open the **App menu**, choose **Agents** under **AI and agents**, and open one of your agents.
Under **Connections**, choose **Messaging apps**.
For an agent called Alex, the row reads "Chat with Alex from Telegram, WhatsApp or Signal" until one is on, then names the apps Alex is on.

![An agent's Messaging apps page in Truetask, with Telegram, WhatsApp and Signal cards before any is set up](https://docs.truetask.io/screenshots/agent-messaging-apps.webp)

The page has a card per app, each with a switch and a status line.
A switch never offers what cannot work:

- Telegram's switch stays locked until a bot token is in, and its card shows **Set up**.
- Signal's switch stays locked until a bridge address is in, and its card shows **Set up**.
- WhatsApp's switch turns the agent on in one tap, and stays locked while the workspace has no WhatsApp connection.

| Status line | Meaning |
| --- | --- |
| **No bot yet**, **Not on for this agent**, **No bridge yet** | The app is not set up for this agent |
| **No WhatsApp number** | The workspace has not connected WhatsApp |
| **Connected, nobody paired** | Set up, and you have not paired yet |
| **Paired as** and a name | You are paired and can write |
| **Free replies stopped** | WhatsApp's 24 hour window closed. Write again on WhatsApp |
| **Answers, no number linked** | The Signal bridge answers but holds no Signal account yet |
| **Bridge not connected** | Truetask cannot reach the Signal bridge |

When something refused, the line shows the app's or the bridge's own words instead.

## The three steps

Turning an app on opens its steps.
Each step ticks itself once it is done.

1. Connect the app: **Create the bot** on Telegram, **Use the workspace's number** on WhatsApp, **Connect a bridge** on Signal.
   This is the only step that differs per app, described below.
2. **Pair your Telegram** (or WhatsApp, or Signal). **Pair** opens a one-time pairing link with a QR code: scan it with your phone, or open it on this computer with **Open Telegram** or **Open WhatsApp**.
   The link works once and lasts fifteen minutes, and **New link** replaces it.
   It binds that chat to you and this agent; a phone number or a chat id on its own is never trusted.
   Too many wrong codes lock pairing for a few minutes.
3. **Say hello**. The step waits for your first message, then reads that the agent answers you here.
   **Send a test message** sends one message from Truetask to your paired chat, to prove the way out works.

Once paired, **Pair another** pairs a second phone and **Unpair** drops yours.

## How the agent answers

The agent answers through what it already has: its **Your computer** power first, on its owner's computer through [Truetask Helper](https://docs.truetask.io/helper/agents), and then [Truetask AI](https://docs.truetask.io/agents/truetask-ai).
Only one of them answers a message.
An agent with neither replies that it has no way to answer right now.

Nobody is at the keyboard, so a turn on the owner's computer runs at the agent's unattended permission level.
When the agent needs an approval or an answer from you, it says so in the messaging app and the request waits for you in Truetask.

Messaging apps read text only.
A voice note, a picture or a sticker gets "I can only read text here."

## Telegram

Each agent gets a bot of its own, and Telegram bots are free.

1. In Telegram, write to @BotFather and send `/newbot`.
2. Paste the token it answers with into **Create the bot**, then **Connect**.

Truetask checks the token with Telegram, stores it encrypted and never shows it again.
The step then names the bot, for example "Its bot is @northwind_alex_bot."
Pasting a different bot's token starts the setup over.

The pairing link opens the bot in Telegram with your code in it: press Start and you are paired.
Anyone else who writes to the bot is told "This bot is not set up for you."

> **Self-hosted only**
>
> Truetask receives Telegram messages by webhook when your instance has a public HTTPS address, and by asking Telegram for them otherwise.
> A server Telegram cannot reach still gets your messages, and there is nothing to choose.

## WhatsApp

A workspace has one WhatsApp number, connected once by an admin in [Twilio and WhatsApp](https://docs.truetask.io/integrations/messaging#connect-whatsapp).
Every agent answers from that number, so the person writing decides which agent answers.

The first step, **Use the workspace's number**, has nothing to paste: turning the switch on is the whole step, and it then shows the number.
The pairing link opens a chat with the workspace's number with `/pair` and your code already typed: send it.

### Switching agents

On WhatsApp you write to one agent at a time.

| Send | What happens |
| --- | --- |
| `/agents` | Lists the agents you can write to on this number: your own agents with WhatsApp on |
| `/agent Sam` | Switches you to that agent. Its name or username works, and so does the start of one that fits only one agent |

Pairing with another agent's link moves you there too.

### The 24 hour window

WhatsApp only lets a business number reply for free for 24 hours after your last message to it.
After that, the agent cannot answer until you write again.
The page says so under **Say hello**, an answer that could not go out is noted in your conversation in Truetask, and **Send a test message** refuses outside the window.

### People who have not paired

Everyone who has not paired keeps what the workspace's number always did for them: their message becomes a comment on the task last messaged at their number and can start **WhatsApp received** automations.
A message goes to an agent or to that path, never both.

Turning WhatsApp off for an agent unpairs everyone paired with it.
The workspace's number carries on for automations and for your other agents.

## Signal

Signal publishes no bot API, so Truetask does not talk to Signal.
It talks to a signal-cli bridge you run, and the Signal account linked to that bridge is the agent's address.

### What you run and pay for

- The bridge: a small container on your own network, commonly the `bbernhard/signal-cli-rest-api` image.
  It is yours to keep running and to pay for.
- A Signal account for the bridge to link to.
  Truetask does not register a Signal number for anybody.

> **Truetask Cloud only**
>
> On Truetask Cloud the bridge has to be at an address Truetask Cloud can reach.

### Connect a bridge

Enter the bridge's address, for example `http://signal-bridge:8080`, and a user and password only if it asks for one, then **Connect**.
A bare host is read as `http://`, because a bridge usually sits on a private network only your server can reach.

Truetask asks the bridge whether it answers, which version of signal-cli it runs and which number it holds, and shows the answer:

| Line | Meaning |
| --- | --- |
| **Linked to** and a number | Ready. That number is the agent's address |
| **Answers, no number linked** | The bridge is up but holds no Signal account yet |
| **Not connected to the bridge. Check that it is still running.** | Truetask cannot reach it right now |
| The bridge's own words | The bridge refused, in its words |

Under the line, the page shows the bridge's address, its signal-cli version and when it was last checked.
**Check the bridge** asks again, and **Change** points the agent at a new address.
Entering the same address with the sign-in boxes empty keeps the stored sign-in; a different address starts the setup over.

When the bridge holds no number yet, the page shows a QR code: scan it in Signal under **Settings**, **Linked devices**, then **Check the bridge**.
This code links the bridge to a Signal account; it is not the pairing code.
A bridge on an old signal-cli refuses to link with "The device you're trying to link is out of date": update the bridge and try again.

### Pairing on Signal

Signal can open a chat with a number but cannot carry a code in a link.
So the page gives you a message instead, `/pair` and your code: send it to the bridge's number from your own Signal.
It works once and lasts fifteen minutes.

`/agents` and `/agent` work as they do on WhatsApp.
Anyone who has not paired gets one sentence and nothing runs.

### When the bridge restarts

Signal has no webhook, so Truetask keeps a read open against the bridge.
When the bridge restarts, moves or stops, Truetask keeps trying, waiting five seconds and then longer each time up to five minutes, and picks up again by itself when the bridge is back.
While it is away, the card reads **Bridge not connected** and **Say hello** says nothing can arrive.
Restarting Truetask starts reading again too.

## Turning an app off

Switch the app's card off and confirm.
The agent keeps working in Truetask but stops answering in that app, and everyone paired with it is unpaired.

| App | What stays yours |
| --- | --- |
| Telegram | The bot itself, at @BotFather |
| WhatsApp | The workspace's number, for automations and other agents |
| Signal | The bridge and its link to your Signal account |

## From an AI client

The same setup is available as MCP tools: list an agent's messaging apps, connect Telegram, WhatsApp or a Signal bridge, check the bridge and get its linking code, open a pairing link, send a test message, unpair and disconnect.
They follow the same rule as the page: only the agent's owner may use them.
See [MCP: connect any AI tool](https://docs.truetask.io/agents/mcp).

## Related

- [AI agents as first-class teammates](https://docs.truetask.io/agents/)
- [Agents on your computer](https://docs.truetask.io/agents/desktop)
- [Truetask AI](https://docs.truetask.io/agents/truetask-ai)
- [Twilio and WhatsApp](https://docs.truetask.io/integrations/messaging)
