How to Use Claude as a Chatbot Builder (and How to Make a Telegram Bot With It)

Skill · SKILL.md

The skill behind this guide: Chatbot Builder Skill for Python. Flask and Django chatbots, from the first handler to the deployed webhook, in Claude, ChatGPT or any AI chat - $14.99, one payment, yours permanently.

View the Python skill →

If you are looking up how to make a Telegram bot, Claude gets you most of the way: it writes the handlers, the state machine, the webhook endpoint and the deployment file, and explains what each piece does. What it cannot do is register the bot with BotFather, hold your token, put the service on a server, or watch it fall over at two in the morning. The code is the fast part. The accounts, the hosting and the monitoring are still yours.

Accept that split and building a bot with an AI becomes a normal afternoon. Below: the order, the stack choices that matter, and the prompts that produce code you can run.

What can Claude actually build, and what still needs you?

Chatbots are a well-documented problem with stable libraries, so this is close to Claude's best case: a working command handler, a conversation state machine, database models, error handling and a Dockerfile, with the trade-offs explained if you ask. The honest division of labour:

  • Claude does: the code, the project structure, the library choice with reasons, the config, the tests, the deployment file, and the explanation at whatever depth you ask.
  • You do: create the bot account and get the token, choose and pay for hosting, set the environment variables, point the domain, run the deploy, read the logs when it breaks.
  • Neither of you does: guarantee the library has not changed since the model's training data. Pin versions and read the release notes when something looks off.

How do you make a Telegram bot with Claude, step by step?

The sequence barely changes between projects.

  • Register the bot. Message BotFather in Telegram, create a bot, pick a username, keep the token. Two minutes, and yours to do.
  • Decide polling or webhook. Polling is simpler and runs anywhere, including your laptop. A webhook needs a public HTTPS URL. Build with polling, ship with a webhook.
  • Get the skeleton. Ask for a single-file bot with one command, run it, confirm a message comes back.
  • Add state. Anything multi-step needs to remember where the user is. Ask for an explicit state machine rather than a pile of if statements, which is what makes bots impossible to change later.
  • Deploy and watch it. Any small host will do. Keep the token in an environment variable, never in the file or the repo, and add logging: that is the part you want at the first outage.
PROMPT - the bot build brief

Before you write any code, ask me anything you need and wait.

Platform: [TELEGRAM / WEB WIDGET / DISCORD / WHATSAPP]
Stack: [PYTHON / NODE.JS / REACT / SPRING BOOT / WORDPRESS]
What the bot is for: [ONE SENTENCE]
The three things users most often ask it: [...]
Does it remember anything between messages: [YES, WHAT / NO]
Where it runs: [LAPTOP / VPS / MANAGED HOST / UNDECIDED]
Volume: [MESSAGES PER DAY]

Then, in order:
1. File and folder layout, one line per file.
2. Libraries and why, versions pinned.
3. The smallest version that runs and answers one message.
4. What I configure by hand first.

Do not write the full application. Stop after step 4.

Stopping it early is the trick. Asked for "a Telegram bot" a model hands you four hundred lines you did not read, and debugging those is slower than writing forty of your own.

Skill · The Default Stack For Bots
Chatbot Builder Skill for Python: Flask and Django
$14.99this skill vs a weekend of tutorialsthe usual route

Keeps the answer inside one Python stack instead of drifting between Flask examples and Django conventions halfway through a file. Project layout, conversation state, webhook versus polling, environment config, deployment. Most Telegram bots end up in Python, so start here if you have no preference.

View the Python skill →

Which stack should the chatbot live in?

Pick by where the bot has to run, not by the language you like most.

Python is the default for messaging bots: mature libraries, examples everywhere, and a Telegram bot is perhaps sixty lines before it does anything interesting. The Python chatbot builder skill covers Flask and Django, because the right answer for a small webhook and the right answer inside an existing Django project are not the same.

Node.js wins when the bot sits next to a JavaScript backend you already run, or you need websockets and streaming without a second runtime: the Node.js chatbot builder skill.

React is the other half: the widget in the page. Streaming responses, message state, scroll behaviour, typing indicators and the accessibility details that get left out. The React chatbot builder skill pairs with any backend.

Spring Boot is for the bot inside an existing Java service, with the company's own auth, logging and deploy pipeline. Nobody picks Spring Boot for Java chatbots for fun, but when it is the house stack the skill assumes enterprise constraints rather than a hobby project.

WordPress is for the site that already exists and needs a widget a non-developer can maintain. The WordPress chatbot builder skill handles plugin structure, hooks and the admin settings screen, so the client can change the greeting without opening a code editor. The rest are in the tech and development skills collection.

How do you keep the bot's answers on script?

A chatbot is two problems wearing one name. The plumbing is how messages get in and out, and it is the easy half. The behaviour is what the bot says, and it is what ships badly: bots that answer questions they should refuse, invent policy, or sound like nobody who works at your company. Behaviour is a written document, not a coding problem: a support bot needs a scope, a refusal list, an escalation rule and a tone. The chat support agent prompt is that document: what the bot answers, what it declines, when it hands over to a human, and how it says it does not know rather than guessing. Drop it into the system prompt of whatever you built and the bot stops improvising.

Anonymity is its own design problem: a relay bot needs rules about what it stores, what it forwards and what it refuses to pass on. The anonymous Telegram bot prompt covers that layer.

PROMPT - the behaviour spec

Write the system prompt for a chatbot before I write any code.

The bot is for: [COMPANY / PROJECT]
Its job: [ONE SENTENCE]
Who talks to it: [AUDIENCE]
What it must never do: [LIST]
When a human takes over: [DESCRIBE]

Produce:
1. Scope: what is inside the bot's job and what is outside, two short lists.
2. Exact wording for refusing out of scope and for handing to a human.
3. Exact wording for admitting it does not know, without inventing policy.
4. Tone rules: sentence length, formality, three things it never says.
5. Ten test messages, four designed to break scope, with the right response to each.

Under 500 words. A system prompt nobody can read is one nobody maintains.
Skill · The Widget In The Page
Chatbot Builder Skill for React
$14.99this skill vs a widget that scrolls wrongwhat you get first try

Streaming responses without the component re-rendering itself to death, message state that survives a refresh, scroll anchoring, typing indicators, and the keyboard and screen reader behaviour most chat widgets skip. The front end half, whichever backend you chose.

View the React skill →

What about Discord and WhatsApp bots?

Same architecture, different front door, and the differences are in the platform rules rather than the code. Discord gives you a gateway connection, slash commands registered ahead of time, and a permissions model that will break first. WhatsApp goes through the Business Platform: an approved sender, message templates for anything outside a 24-hour window, and a review process you cannot code your way around.

Build both with the skills above. The handler, the state machine and the behaviour spec are identical; only the transport changes, so ask Claude to write the adapter as its own module behind a small interface, and a second platform later is a file rather than a rewrite. Open by asking it to list every account, approval and credential the platform needs before any code exists: on WhatsApp that list is longer than the code.

Where does it fail?

  • Library APIs drift. Code correct a version ago compiles and then misbehaves. Pin versions and check the changelog when something works in the explanation but not the terminal.
  • It cannot see your error. Paste the full traceback, not a paraphrase. A summarised error costs three guessing rounds.
  • It will not tell you the project is overbuilt. Ask for a Redis-backed queue and you get one, even if a dictionary would do. Platform rate limits and rules on unsolicited messages are not in the code either: read them before launch.
  • Security is only as good as your prompt. Ask explicitly about token handling, input validation and what gets written to logs, or you get a working bot that leaks.
  • It cannot run or deploy anything. Every command it gives you is one for you to run.

How do you install the chatbot builder skills?

Each is a SKILL.md file inside a ZIP. In Claude, open Customize, then Skills, press +, choose Create skill, then Upload a skill, and select the ZIP. Toggle it on and it applies to your next chat. Skills work on the Free, Pro, Max, Team and Enterprise plans; the requirement is code execution, under Settings, then Capabilities. Anthropic documents it in its Skills help article, and folder locations are in our install guide.

In ChatGPT or Gemini, copy the SKILL.md text into custom instructions or a Gem. The same files load into Claude Code, covered in the Claude Code skills guide.

In summary:

Register the bot yourself, then let Claude write the handler, the state machine and the deploy file. Build with polling, ship with a webhook, write the behaviour spec before the code. Python ($14.99) for messaging bots, Node.js ($14.99) next to a JavaScript backend, React ($14.99) for the widget, and the chat support agent prompt ($14.99) so it stays on script. All work in Claude, ChatGPT and any AI chat, 30-day money-back guarantee.

Skill · SKILL.md · Works with Claude & ChatGPT

Chatbot Builder Skill for Python

One file, loaded once. Flask and Django chatbots: project layout, conversation state, webhook setup and deployment config in one consistent stack. No subscription.

$14.99
Get the Python skill →

KissMySkills is a marketplace of 853 AI skills, 158 prompt packs, 55 agents & free tools for Claude, ChatGPT & any AI chat.

Related Skill Guides

~/get-started

Skills that work. No fluff.

Browse every skill, prompt pack, and agent in the store.

Browse all skills →Or start with free skills