WhatsApp AI Bot in Production: 3 Months, 50K Messages, Zero Downtime

Published: (December 9, 2025 at 09:19 PM EST)
2 min read
Source: Dev.to

Source: Dev.to

Cover image for WhatsApp AI Bot in Production: 3 Months, 50K Messages, Zero Downtime

The Challenge

My client had a problem: 200+ WhatsApp messages per day, 2 people answering, and still losing customers because response time was 2+ hours during peak times.

Their ask: “Can you make a bot that actually works?”

The Stack

WhatsApp Business API
        |
    Evolution API (self-hosted)
        |
    FastAPI Backend
        |
    Yoshii IA (Brazilian Portuguese LLM)
        |
    PostgreSQL + Redis

What Makes It Different

1. It Actually Understands Portuguese

Not translated English. Native Brazilian Portuguese.

Customer: "ce tem a blusa azul em P?"
(Informal: "u got the blue shirt in S?")

Bot: "Temos sim! A blusa azul ta disponivel em P, M e G.
     Quer que eu reserve pra voce?"

2. Smart Handoff

Bot handles 80 % of queries. Complex cases go to humans with full context:

if sentiment_score | Evolution API  |---->| Webhook  |
| Cloud API   |     | (self-hosted)  |     | Handler  |
+-------------+     +----------------+     +----------+
                                                |
                    +---------------------------+
                    |
              +-----v-----+     +---------+
              | Message   |---->| Yoshii  |
              | Processor |     | LLM API |
              +-----------+     +---------+
                    |
              +-----v-----+
              | Response  |
              | Generator |
              +-----------+
                    |
              +-----v-----+
              | Queue     |-----> Send via WhatsApp
              +-----------+

Cost Breakdown

ItemMonthly Cost
WhatsApp Business API$50
VPS (4 GB RAM)$20
LLM Inference (self‑hosted)$0
Redis Cloud (free tier)$0
PostgreSQL (same VPS)$0
Total$70/month

Open Source

The LLM powering this is open source:

What’s Next

  • Voice message processing (Whisper integration)
  • Proactive messaging (order status updates)
  • Multi‑language support
  • Analytics dashboard

Building something similar? Happy to help in the comments!

sakaguchi.ia.br | WhatsApp

Back to Blog

Related posts

Read more »