Build your bot with AI¶
Tell your AI assistant what the bot should do. It writes the code and puts it online on BotBarn.
You need a BotBarn account and one of: Claude, ChatGPT, Cursor or Claude Code.
1. Connect BotBarn¶
Claude¶
BotBarn is available in the Claude connectors directory, so you can add it on Claude's free plan too, without copying any address.
- Open BotBarn in the Claude connectors directory and press Connect.
- Approve on the BotBarn page.
In a chat, turn it on from + → Connectors → BotBarn.
ChatGPT, Claude Code, Cursor¶
Copy the BotBarn address:
Then add it to your assistant:
- Open chatgpt.com/plugins.
- Press +, then Add custom MCP server.
- Name:
BotBarn. Server URL: the address above. Authentication: OAuth. - Press Create as a plugin, install it, and approve on the BotBarn page.
In a chat, type @BotBarn. Custom MCP servers need a ChatGPT plan that allows them.
- Run in a terminal:
- In Claude Code type
/mcp, choose botbarn, then Authenticate. - Approve on the BotBarn page.
- Add this to
~/.cursor/mcp.json: - Restart Cursor and sign in when it asks.
- Approve on the BotBarn page.
To add the address by hand instead of from the directory:
- Open claude.ai/customize/connectors.
- Press Add, then Add custom connector.
- Name:
BotBarn. URL: the address above. Press Continue, then Add. - Press Connect and approve on the BotBarn page.
2. Ask for your bot¶
Write what you want, for example:
Create a Telegram bot on BotBarn that sends me the weather in Milan every morning at 7.
What happens next¶
- The assistant writes the code and creates the bot.
- It gives you a link: paste your Telegram token there. Get the token from
@BotFather with
/newbot. - It gives you a second link: choose a plan (or Start for free).
- It puts the bot online, checks the logs and fixes errors.
Ask for changes the same way: "Add a /help command".
Good to know¶
- The assistant never sees your Telegram token and never pays: you do both in BotBarn.
- Downloading and resetting a bot's
/dataneeds the permission "Download and reset the stored data of your bots", which you allow when you connect. An older connection does not have it: reconnect and allow it. - See and disconnect connected apps on the Build with AI page of BotBarn.
- Every change the assistant makes is listed there too.
Problems¶
| You see | Do this |
|---|---|
| The assistant does not find BotBarn | Turn the connector on in the chat (Claude: + → Connectors; ChatGPT: @BotBarn). |
| needs_plan | Open the plan link it gave you, choose a plan, then tell the assistant to continue. |
| The sign-in page says the request expired | Connect again and approve within 10 minutes. |
| The bot does not answer in Telegram | Ask the assistant: "Read the logs and fix it". |
Support¶
Write to info@botbarn.dev, or use the contact form on the Help page of the web app. What the connector stores and who receives it is in the privacy policy.
Personal access tokens (advanced)
For apps or scripts that take a token instead of a sign-in: on the Build with AI page press
New token, choose its permissions and expiry, and copy it (shown once, starts with bbp_).
Send it as Authorization: Bearer <token>. Treat it like a password; Revoke stops it at once.
What the assistant can do
Create bots and upload code, set non-secret variables, give you the token and plan links,
deploy, stop, start and restart, read status, logs (secrets hidden) and usage against each limit of the plan
(CPU, memory, storage, bandwidth, monthly transfer, with warnings and whether the bot is slowed), and suggest a
plan that covers all five. With the data permission it can also download a bot's /data as an archive and reset it, after asking
you. It cannot delete bots, see secrets or pay. Limits: 120 requests and 30 changes a minute.