Talk to your AI agents from Telegram

Link a Telegram chat to an agent, such as Bizz, and you can send it work from your phone. You make your own Telegram bot once and link it from the app on your computer. There is no second app to install, and the work still runs on your computer.

Link a chat

  1. Open the agent’s chat, press ⋮, then Settings. Under Communication, press + Connect Telegram.
  2. The first time, you need a bot. In Telegram, message @BotFather, send /newbot and follow its questions. Paste the token it gives you into Bot token and press Connect. Next time, this step is skipped.
  3. Under Working folder, press Choose… if the agent should work in a particular folder. Otherwise it uses its own.
  4. Scan the QR code with your phone, or copy the line under Or send this to your bot and send it to your bot. The code works once and expires after ten minutes. If it runs out, close the sheet and open it again for a new one.

That Telegram chat now belongs to that agent and that folder. Both were chosen in the app, and nothing sent from the phone can change the folder.

In a group

Turn on Topics in the group, add your bot as an admin, and paste the /link line into a topic. Each topic drives one agent, so there is no switching.

Send it work

Write to the bot as you would in the app. A quick answer simply arrives. On a longer job, a status line appears after a few seconds and updates as the work goes on, and the reply follows in plain text.

A Telegram chat starts in the agent’s default mode, which is Auto unless you changed it in the agent’s settings. Switch that chat with /mode. If you plan in Telegram, send /run when the plan is ready to start the work.

Commands

CommandWhat it does
/statusWhat it is doing now
/modePlan or Auto for this chat, from the next message
/effortLoop strength: low, medium or high
/runStart the work you planned in Plan mode
/agentsWho is linked to this chat
/use NAMESwitch to another linked agent
/unlinkDisconnect this chat
/helpThe list of commands

Any other /command goes to the agent and runs one of its skills, for example /lead-search.

One chat can hold several agents. Connect Telegram from each agent’s settings and send its code in the same chat. If the chat already has an agent, the bot asks before switching to the new one. Use /agents and /use to move between them.

Answer questions and permissions

When the agent needs you, the question or permission shows up twice: as buttons in Telegram and as a card in the app. Answer in either place. The first answer counts, and the other place then shows what was chosen. A permission nobody answers within 30 minutes is refused, and the agent carries on without it. See Permissions.

Good to know

  • Your computer does the work. Localoy keeps running in the background with the window closed, but your computer has to be on and awake, and Localoy must not be quit. While your computer sleeps, nothing happens; messages you send meanwhile are picked up when it wakes.
  • Only you can drive it. Only the Telegram account that used the code can give the agent work. Messages from anyone else are ignored, with no reply.
  • Remove a link in the agent’s Settings, under Communication: press Remove beside the chat. Or send /unlink from Telegram.
  • Signed out? If the app is signed out, Telegram replies with how to sign in again.

Related