Developer kit
FastAPI WhatsApp Starter Kit
Use Meta's Cloud API or Twilio with one setting. A tested Python project that already handles what usually costs an afternoon when you connect WhatsApp: webhook signatures, duplicate deliveries, the 24-hour window and templates.

01
Verified signatures
Meta's signature is checked on the raw bytes; Twilio's against your public URL, so it also works behind a proxy or tunnel.
02
No duplicate messages
Each message id is processed once, even if the provider redelivers it.
03
24-hour window
Free text inside the window, your template outside it, and a clear error instead of a message that never arrives.
04
Safe retries
Only on rate limits, server and network errors. Never on client errors, so sends are not duplicated.
05
Delivery status
Sent, delivered, read or failed, stored with the provider's error code.
06
Media
Send images, audio, video and documents, and download the ones you receive.
What's inside
Everything to start today
- Webhook receivers for Meta and Twilio
- Sending text, templates with variables and media
- SQLite by default, or any SQLAlchemy database
- A protected /send endpoint
- Dockerfile, compose file and health check
- 23 automated tests that need no account
- Setup guides for Meta and Twilio, and a known-issues guide


Pro edition
With a customer-support assistant
The Pro edition adds an assistant that answers only from your own FAQ and hands the conversation to a person when it should not answer. It is built for a business's customer support, not as a general-purpose chat.
- Answers from your own FAQ, written in a Markdown file
- Hands over to a person when no entry fits, and stays silent until you give it back
- Ollama models (on your machine), OpenAI-compatible or Anthropic
- A token budget per conversation and protection against manipulation attempts
- An evaluation script to measure it on your FAQ and your model before you connect it to customers
How it works
Three steps
- 1
Choose a provider
Meta Cloud API or Twilio, with one setting in the configuration file.
- 2
Set it up
The guides walk you through it. Runs with Docker or Python 3.11+.
- 3
Write your bot
Add your logic in a single file, app/bot.py. The rest is done.

FAQ
What people usually ask
What is the difference with the Pro edition?
The Pro edition includes the whole kit and adds a customer-support assistant that answers from your FAQ, with hand-over to a person, a token budget and an evaluation script.
What do I need?
Python 3.11 or later (or Docker) and a Meta developer or Twilio account. To write to a contact first, or after 24 hours, you need your own approved templates.
Can I use it in client projects?
Yes: in your own projects and in your clients' projects. Reselling or redistributing the code is not allowed. The full terms are in the kit's license.
Does it include support?
It comes with guides and tests. Support and updates are not included.
Is it available in Spanish?
The code and guides are in English.
What if I need something custom?
We also build custom WhatsApp integrations. Tell us about your case in the form.
Independent project. Not affiliated with, endorsed by or sponsored by Meta or Twilio. WhatsApp is a trademark of Meta Platforms, Inc.; Twilio is a trademark of Twilio Inc.
Contact
Tell us about your project.
Share what you have in mind. We’ll look into what you need and work out the best technical solution.
