Guides

Bot development guides

13 guides written for builders. Read them in order for a complete course, or jump straight to your platform.

Basics

Getting started

What a bot is, how to pick a platform, polling versus webhooks, and the minimum production checklist.

Telegram

Telegram bots

Create a bot with BotFather, handle updates with polling or webhooks, add inline keyboards and stay within limits.

Discord

Discord bots

Register an application, choose Gateway intents, ship slash commands and buttons, and verify HTTP interactions.

WhatsApp

WhatsApp Cloud API

Send and receive WhatsApp messages through Meta's official Cloud API with templates, webhooks and opt-in.

Slack

Slack bots

Create a Slack app with a manifest, choose scopes, receive events over HTTP or Socket Mode and verify requests.

AI

AI chatbots and agents

Add language models to a bot with tool calling, retrieval and MCP while controlling cost, latency and prompt injection.

Automation

Automation workflows

Design trigger and action workflows, self-host n8n, handle errors and know when to move to code.

Webhooks

APIs and webhooks

Build webhook receivers that verify signatures, acknowledge fast, deduplicate and retry correctly.

Scraping

Web scraping ethics

When automated collection is acceptable, how to be a polite crawler, and the lines you should not cross.

Hosting

Hosting bots

Pick the right runtime for polling, Gateway and webhook bots, and run it with restarts, logs and backups.

Serverless

Bots on Cloudflare Workers

Deploy a webhook bot at the edge with secrets, storage, background work and scheduled jobs.

Security

Bot security

A threat model and checklist for bots: secret management, least privilege, signed webhooks, SSRF, injection and leaks.

Reliability

Reliability and rate limits

Keep a bot fast and correct under load: respect 429s, queue work, deduplicate, time out and alert.

Suggested learning path

  1. Read Getting started to choose a platform and an architecture.
  2. Build a first bot on one platform: Telegram is the fastest to set up; Discord and Slack teach you interactions and scopes.
  3. Learn the plumbing: APIs and webhooks, then hosting.
  4. Harden it with security and reliability.
  5. Add intelligence with AI chatbots and agents.