Skip to main content

Telegram Setup

Use this guide if your team works in Telegram. The first setup should take only a few minutes: start a private chat, add Clark to one group, test one answer, and send one file.

Before You Start

Make sure you have:

  • permission to add members to the Telegram group;
  • access to your Clark workspace or dashboard;
  • your workspace Tenant ID from the dashboard settings;
  • one small test file if you want to test documents immediately.

Private Chat

  1. Open Telegram and search for @xdocai_bot.
  2. Press Start or send /start.
  3. Send /help to see available commands.
  4. Ask a simple question:
Clark, what can you help with?

In a private chat, Clark responds to normal messages because the conversation is directly with the bot.

Group Chat

  1. Open your Telegram group.
  2. Add @xdocai_bot as a member.
  3. Give the bot permission to read messages.
  4. Send a message that mentions Clark by name:
Clark, summarize what we discussed today.

In group chats, Clark keeps context quietly and replies only when mentioned, tagged, replied to, or when listener mode decides a response is useful. This avoids interrupting normal team conversation.

After adding Clark to a group, link the group to your workspace:

/link your-tenant-id

Send this as a normal Telegram message in the group. You do not need to mention Clark or tag the bot. Telegram may display it as /link@xdocai_bot your-tenant-id; that format also works.

If the group was linked to another workspace before, Clark moves the chat to the new Tenant ID and confirms which workspace is now active.

First Things To Try

Try thisWhat you should see
Clark, summarize the last messages.A short digest of the conversation.
Send a PDF with Clark, summarize this file.A document summary and extracted details.
/task Prepare report @anna by 15.04 !highA task with an ID.
/tasksThe list of open tasks in this chat.
/memoryRemembered entities and facts from the chat.

Common Commands

CommandResult
/helpShow available commands.
/link <tenant_id>Link or relink this Telegram chat to a workspace.
/link_admin <tenant_id>Make this Telegram chat the single Admin / Master Chat.
/docsShow processed document history.
/templatesShow uploaded document templates.
/fillFill a document template with data from memory.
/memoryShow remembered entities and facts.
/clearClear entity memory for the chat.
/task Prepare report @anna by 15.04 !highCreate a task.
/tasksList tasks in the current chat.
/done <id>Mark a task as done.
/sumCreate a daily digest of the current chat.
/sum_weekCreate a weekly digest.
/sum allCreate a digest across connected chats from the master chat.
/protocolCreate a meeting protocol from voice notes.
/statsShow chat statistics.
/listenerToggle proactive listener mode.
/registerStart self-service company registration.

Automatic Summaries

Admins can enable automatic summaries in the dashboard chat settings. Clark creates a daily /sum from Monday to Thursday at the local end-of-day time, but only when the chat had messages in the previous 24 hours. Every Monday at 10:00 in the CEO/admin timezone, Clark creates /sum_week for the previous week. Summaries are sent to Telegram or, if configured, privately to the CEO/admin, and are saved in Memory for later context.

Documents In Telegram

You can send PDF, DOCX, XLSX, CSV, TXT, XML, images, and voice messages. Add a caption if you want a specific action:

Clark, find the contract value in this file
template Sales proposal

Clark can extract text, classify the document, pull out entities, save document history, fill templates, merge PDFs, and stamp PDFs. ZIP batch uploads are hidden in production for now; send files separately.

Tip: add one clear sentence with every file. For example: "find payment dates", "extract company details", or "summarize risks". Clark works better when it knows the result you expect.

Master Chat

The master chat is the admin conversation used for cross-chat summaries and task reviews. It can be a private chat with the bot or a dedicated admin group. Use /link_admin <tenant_id> to set it. Only one master chat can exist per workspace; linking a new one removes master access from the previous one. Use it for:

  • /link_admin <tenant_id>
  • /sum all
  • /tasks all
  • weekly reviews
  • asking what changed across connected team chats

Only approved workspace admins should use this workflow. Cross-chat commands with all are accepted only from the Admin / Master Chat.

Troubleshooting

ProblemWhat to check
Bot does not answer in a groupMention Clark, tag the bot, or reply to a bot message.
Bot cannot see messagesCheck Telegram group permissions and privacy settings.
Documents do not appearWait for processing, then refresh the dashboard Documents tab.
Commands are ignoredConfirm the command is sent in a connected chat and the workspace is active.
/link goes to AI instead of linkingSend /link <tenant_id> again after adding Clark to the group; the command does not need a Clark mention.
Clark answers too oftenTurn listener mode off with /listener or ask the team to mention Clark only when needed.
People are confusedPin a short message in the group: "Mention Clark when you need summaries, tasks, documents, or memory."