← Change platform

Selected path Telegram bot

Set up General Purpose in Telegram.

Create the bot, configure the agent, connect the recipe's skills, and verify the complete Telegram path.

01
TELEGRAM // BOTFATHER

Create the Telegram bot.

Use Telegram's verified BotFather account. The display name is editable later; the username is the permanent public handle.

Open BotFather
  1. 01.1

    Open the verified @BotFather account.

    Open t.me/BotFather ↗, confirm the verification badge, and send /start.

    Telegram BotFather command list with the newbot command highlighted
    Send /newbot to begin.
  2. 01.2

    Send /newbot and choose the identity.

    DISPLAY NAME

    General Purpose

    USERNAME

    AgentBarnAssistantBot

    The username must be 5–32 characters, use Latin letters, numbers, or underscores, and end in bot. Choose it carefully because BotFather does not let you change it later.

  3. 01.3

    Copy the generated token.

    BotFather returns the bot link and an HTTP API token. Copy it for the next step. The token is fully blurred in this reference.

    Telegram BotFather bot creation conversation with the complete bot token blurred
    1 // Start creation. 2 // Display name. 3 // Username ending in bot. 4 // Copy the token.
  4. 01.4

    Add the bot description.

    In BotFather, set the description or about text to the recipe summary below so users know what the bot does before they start it.

    SUGGESTED

    A flexible starting template for a broad range of configured Slack tasks.

02
AGENT BARN // CREDENTIAL

Connect the bot token.

Enter the token from BotFather in the Telegram credential.

  1. 02.1

    Open the Telegram bot-token credential.

    Choose the Telegram integration for General Purpose, then select its Bot token field.

  2. 02.2

    Paste the bot token.

    A Telegram token resembles 123456:ABC-DEF…. Paste the complete value into the Bot token field.

    SOURCE@BotFather
    FIELDBot token
    ACTIONPaste and save
  3. 02.3

    Save and verify the bot identity.

    Agent Barn should resolve the bot username returned by Telegram. Stop if the resolved username differs from @AgentBarnAssistantBot or the bot you selected in BotFather.

03
AGENT BARN // AGENT SETTINGS

Configure the Telegram agent.

Set the identity, model, approval behavior, and response style before connecting external skills.

  1. 03.1
    IDENTITY

    Name the teammate.

    HUMAN NAME

    Aria

    Easy to recognize in conversation.

  2. 03.2
    MODEL

    Select the model.

    Use the model available for this agent and test it with a representative task from General Purpose.

  3. 03.3
    COMMAND APPROVAL

    Choose when commands need confirmation.

    Command approval options: Auto, Manual, and Off
    Available command approval options.
    CONFIRM EACH COMMAND

    Manual

    Asks before every command.

    NO PROMPTS

    Off

    Runs without approval prompts.

  4. 03.4
    VERBOSITY

    Choose the response detail.

    Verbosity options: Verbose and Concise
    Available response-detail options.
    SHOW EACH STEP

    Verbose

    Explains progress while working.

  5. 03.5

    Configure the recipe trigger and workflow.

    Trigger: A request arrives in an allowed Slack channel or direct message.

    1. Receive request. Read the message and the allowed conversation context.

    2. Apply role. Follow the configured template, restrictions, and identity.

    3. Use skills. Call only the skills and connected tools it has been given.

    4. Return answer. Respond in Slack with the result and relevant context.

  6. 03.6

    Apply the recipe requirements and review rule.

    Template

    The selected model, role, restrictions, and instructions.

    Skills

    Only the capabilities needed for the intended workflow.

    Policies

    Explicit channel allowlists and direct-message behavior.

04
TELEGRAM // CHAT ACCESS

Choose where the agent can respond.

Set Telegram delivery and Agent Barn chat rules together.

  1. 04.1

    Start private chats.

    Each user opens t.me/AgentBarnAssistantBot and presses Start. Telegram bots cannot initiate a private conversation, so every permitted user must do this first.

  2. 04.2

    Choose the channel-access rule.

    Channel access options: Allowlist and Open
    Choose Allowlist or Open.
    ALL REACHABLE CHATS

    Open

    Respond anywhere the bot is present.

  3. 04.3

    Choose the direct-message rule.

    Direct message options: Off, Allowlist, and Open
    Choose Off, Allowlist, or Open.
    NO PRIVATE CHATS

    Off

    Ignore direct messages.

    ANY USER

    Open

    Reply to anyone who starts the bot.

  4. 04.4

    Choose Group Privacy in BotFather.

    EVERY GROUP MESSAGE

    Turn off

    Use only when the recipe must read the full group conversation.

    To change it, open /mybots → select the bot → Bot Settings → Group Privacy. Add the bot to the group again after changing this setting.

  5. 04.5

    Add the intended chats.

    Add the bot to each permitted group, then add every permitted user or group to the Agent Barn allowlist when Allowlist is selected. Grant group administrator access only when the configured workflow requires messages that Group Privacy would otherwise hide.

05
AGENT BARN // RECIPE SKILLS

Connect the skills for General Purpose.

This section is generated from the integrations required by the selected recipe.

OPTIONAL

Selected skills only

custom

Add only the platforms required by the role you define for this agent.

Credential
A dedicated, least-privilege credential for each selected platform.
Access
No default integrations · Grant read before write where possible · Add one capability at a time and test it
  1. Write the role and success criteria before selecting tools.
  2. Connect the minimum useful skill set.
  3. Re-run representative tests whenever a new integration is added.
GENERAL PURPOSE // AVAILABLE SKILLS

Select the skills this agent can use.

Select one or more skills to show their connection instructions.

  1. Define the role before selecting skills.

    Write the tasks, inputs, outputs, and prohibited actions first.

  2. Test one skill at a time.

    Connect the minimum access required, run a representative task, and confirm resources outside the selected boundary remain unavailable.

  3. Review every selected skill.

    Confirm each connection uses the intended account and resources, then remove anything the defined role does not need.

06
LAUNCH // COMPLETE PATH

Verify the Telegram recipe.

Test the bot, chat rules, and connected integrations together.

  1. 01

    The token connects to @AgentBarnAssistantBot.

  2. 02

    A permitted private chat or group receives a response.

  3. 03

    A chat outside the selected access rule receives no response.

  4. 04

    Group Privacy matches the recipe's message needs.

  5. 05

    Each required skill completes one representative action.

  6. 06

    The approval mode and response detail are correct.

  7. 07

    The configured trigger runs: A request arrives in an allowed Slack channel or direct message.

  8. 08

    The result follows Receive request → Apply role → Use skills → Return answer.

  9. 09

    The review rule is applied: Start with the narrowest useful scope and add tools only when the workflow genuinely needs them.

RECIPE PATH COMPLETE

General Purpose is ready for a controlled pilot.

Start with a narrow audience and reversible work, then widen access after observing representative tasks.

Return to recipes →