Cubicles
Cubicles

How to chat with your AI agent on Telegram, Discord, WhatsApp or Signal

The easiest way to use an always-on agent is to message it like a person. Here's how to connect each chat app, which one to pick, and how to make sure it only listens to you.

Blog ·

An AI agent you can only reach from your desk is half an agent. Connect it to a chat app and it becomes something you use all day: send it a task from the queue at the café, get a message when the report is ready, answer its question from the sofa.

OpenClaw, Hermes Agent and several coding agents can all connect to chat apps. This guide covers the four most popular: Telegram, Discord, WhatsApp and Signal.

Before you start: the agent needs to stay on

A chat connection only works while the agent is running. If it lives on your laptop, it stops answering the moment the lid closes. Give it a computer that stays on first. Our guide to running an AI agent 24/7 covers that, and on Cubicles the chat setup is part of the same form.

Which chat app should you use?

TelegramDiscordWhatsAppSignal
Setup effortEasiestA few more stepsScan a QR codeScan a QR code
What the agent isIts own botIts own botA linked device on a numberA linked device on a number
Needs its own phone numberNoNoBest to have oneBest to have one
Best forPersonal use, quick startTeams and project channelsTalking where you already arePrivacy-minded users

If you're unsure, start with Telegram. Bots are a first-class feature there, setup takes two minutes, and the agent gets its own identity without needing a phone number.

Connect your agent to Telegram

  1. In Telegram, open a chat with @BotFather, send /newbot, and follow the prompts to name your bot. Its username must end in “bot”.
  2. Copy the token BotFather gives you. It looks like 123456789:AAH…. Treat it like a password.
  3. Find your numeric Telegram user id: message @userinfobot and it replies with it. This is how the agent knows who to answer.
  4. Paste the token and your user id into your agent's Telegram settings. On Cubicles, that's in the New agent form.
  5. Open a chat with your new bot and tap Start. Telegram bots can't message you first, so this lets it say hello once it's ready.

If a bot token leaks, send /revoke to @BotFather to get a new one, then update your agent.

Connect your agent to Discord

  1. In the Discord Developer Portal, create a new application and add a bot to it.
  2. On the bot's page, turn on Message Content Intent so it can read what you send, then copy its token.
  3. Invite the bot to a server you're in. Use the OAuth2 URL generator with the “bot” scope, or make a private server just for you and your agents.
  4. Find your numeric Discord user id: turn on Developer Mode in Discord's advanced settings, then right-click your name and choose Copy User ID.
  5. Paste the token and your user id into your agent's Discord settings, then send the bot a direct message.

Discord works well when you run several agents: give each its own bot and its own channel, and you can see at a glance who said what.

Connect your agent to WhatsApp

WhatsApp doesn't have bots in the same way. Instead, the agent signs in to a WhatsApp account as a linked device, the same way WhatsApp on a computer does.

  1. Decide which number the agent will use. A separate number just for the agent is best, so it isn't acting as you in all your chats.
  2. Enter your own number, with its country code, as the one person it answers.
  3. Once the agent is set up, a QR code appears on its computer's screen.
  4. On the phone with the agent's WhatsApp account, open Settings → Linked devices → Link a device and scan the code.
  5. Message the agent's number from your own phone.

Connect your agent to Signal

  1. Register a Signal account for the agent on a number of its own.
  2. Enter that account's number, and your own number as the one person it answers, both with country codes.
  3. Once the agent is set up, a QR code appears on its computer's screen.
  4. On the phone with the agent's Signal account, open Settings → Linked devices and scan the code.
  5. Message the agent from your own Signal.

Setting it up on Cubicles

On Cubicles you connect a chat app while creating the agent. Choose New agent, pick your agent and model, then pick the chat app you'll message it on and fill in the details above. Each agent answers on one chat app, and which ones are offered depends on the agent you pick. To use two chat apps, create a second agent.

The agent's page then shows each chat's status: Setting up, Answering once it works, or Scan the QR code for WhatsApp and Signal. Open the computer to see the code on its screen.

Make sure it only listens to you

  • One allowed sender. Set the agent to answer only your account. On Cubicles this is required for every chat app.
  • No group chats. Anyone in a group can send your agent instructions, including instructions it shouldn't follow.
  • No public servers. Keep agent bots in private Discord servers you control.
  • Rotate leaked tokens. If a bot token ends up in a screenshot or a repository, revoke it and set a new one.

Things to ask your agent from your phone

  • “Every weekday at 7, sort my inbox and send me a summary of what needs me.”
  • “Find three flights to Lisbon on the 14th under $400 and send me the links.”
  • “Check our competitors' pricing pages every morning and only message me if something changed.”
  • “Run the test suite on main and tell me what's failing.”

Troubleshooting

  • Telegram bot never says hello. Open its chat and tap Start, and check that the user id you entered is your numeric id, not your username.
  • Discord bot can't message you. You need to share a server with it. Invite it to one of yours, and check Message Content Intent is on.
  • WhatsApp or Signal stuck on “Scan the QR code”. Open the agent's computer to see the code, and scan it from the agent's phone, not just any phone.
  • Replies are slow. Each answer is a model call, and long tasks take a while. If it's silent for a long time, open the computer and look at its screen.

Frequently asked questions

Can OpenClaw work with Telegram?

Yes. Create a bot with @BotFather, copy its token, and give it to OpenClaw with your numeric Telegram user id so it only answers you. On Cubicles you enter both in the New agent form.

Which chat app is best for an AI agent?

Telegram is the easiest to start with: bots are built in and the agent doesn't need a phone number. Discord suits teams and several agents. WhatsApp and Signal work well if that's where you already are, ideally with a separate number for the agent.

Can strangers message my AI agent?

They shouldn't be able to command it. Set the agent to answer only your account, keep it out of group chats and public servers, and revoke any bot token that leaks.

Does my agent need its own phone number for WhatsApp?

It's strongly recommended. The agent signs in as a linked device on whichever account scans the code, so using your own number means it acts as you in your chats.

Why doesn't my Telegram bot reply?

Telegram bots can't start a conversation. Open the bot's chat and tap Start. Also check that you entered your numeric user id, which @userinfobot gives you, and that the agent is running.

Give your agent a computer