ai newsSo., 18. Okt.
EilmeldungClaude Code 2.1.302 Flips Two claude -p Defaults: Permission Mode and Fork Subagents

I Built an Autonomous 24/7 WhatsApp Sales Agent Using Open-Source AI. Here's How.

I Built an Autonomous 24/7 WhatsApp Sales Agent Using Open-Source AI. Here's How. Submitted to Hacktoberfest 2026 β€” Week 2: Side Hustle / Agentic Commerce πŸš€ Live Interactive Demo : https://sellbot-cdpz.onrender.com πŸ“¦ GitHub Repository : https://github.com/mrerror313coder/SellBot 1. The Hook: A Br

dev.toSonntag 16:47 Β· 18.10.5 Min. Lesezeit
Bild: dev.to

Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle Submission πŸ’Έ

Submitted to Hacktoberfest 2026 β€” Week 2: Side Hustle / Agentic Commerce

πŸš€ Live Interactive Demo: https://sellbot-cdpz.onrender.com πŸ“¦ GitHub Repository: https://github.com/mrerror313coder/SellBot

Last month, I was visiting an artisanal home bakery called Priya's Cakes.

The phone was vibrating constantly on the counter. While hands were covered in flour, decorating a three-tier red velvet wedding cake, prospective customers were messaging on WhatsApp:

"Mujhe kal ke liye 2kg chocolate cake chahiye, budget 800 hai" (I need a 2kg chocolate cake for tomorrow, budget is 800) "AoA, kal k lye chocolate cake chahye, budget 800" (Urdu: Hi, need chocolate cake for tomorrow) "Do you have eggless options?" "Can you send your menu and price list?"

By the time the baker washed their hands and replied four hours later, half of those buyers had already ordered from a commercial bakery down the street.

According to retail commerce research, 78% of customers buy from the first responder. In emerging markets across South Asia, Latin America, and the Middle East, 60% to 80% of consumer commerce happens inside WhatsApp. Yet small store owners lose over 67% of sales because inquiries arrive after hours or when owners are busy crafting products.

I looked at existing "solutions" on the market:

I set a challenge for myself for Hacktoberfest 2026: Could I build a fully autonomous, multilingual, 24/7 sales agent that lives inside WhatsApp using open-source models and self-hosted tooling?

Traditional chatbots are glorified FAQ trees. If you type "gift for mom", they dump a menu of 10 generic links.

SellBot is an autonomous agent. It perceives, reasons, retrieves catalog vectors, verifies real-time stock, performs cart pricing math, and creates payment requests.

OLD CHATBOT: Customer: "gift for mom" Bot: "Categories: 1. Flowers 2. Chocolates 3.

Cakes" SELLBOT (Autonomous Agentic Flow): Customer: "Mujhe gift chahiye mom ke liye, budget 500" SellBot: [Thinks: Hinglish detected β†’ Recipient: Mom β†’ Budget: 500] [Calls Atlas Vector Search for gift-for-mom & celebration items] [Verifies inventory: Assorted Cupcake Box has 50 boxes in stock] [Calculates price & complimentary add-on] Agent: "Mummy ke liye gift? Bahut pyara idea hai! ❀️ Hamara *Assorted Cupcake Box (Pack of 6)* (Rs. 450) ekdum perfect hai! 🧁 6 luxury flavors aur elegant gift box ke sath aata hai.

Budget mein bhi Rs. 50 bachega! Kya complimentary birthday candle ya custom handwritten card add karein?" Enter fullscreen mode Exit fullscreen mode SellBot doesn't just chatβ€”it closes deals by instantly generating localized payment requests:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ CUSTOMER DEVICES β”‚ β”‚ WhatsApp Mobile WhatsApp Desktop β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ WHATSAPP SOCKET LAYER β”‚ β”‚ Baileys (Direct WhatsApp Web Socket Protocol) β”‚ β”‚ β€’ Direct device pairing β€’ Anti-Ban Rate Limiter β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ AGENT SERVER (Render / Cloud) β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ ORCHESTRATOR AGENT (Mastra Agent Pattern) β”‚ β”‚ β”‚ β”‚ β”œβ”€ Language Detector (ur, en, hi-en, hi, es, ar, pt) β”‚ β”‚ β”‚ β”‚ β”œβ”€ Intent Classifier (browse, compare, buy, complain, β”‚ β”‚ β”‚ β”‚ β”‚ out_of_scope, greeting) β”‚ β”‚ β”‚ β”‚ β”œβ”€ Catalog Search (MongoDB Atlas 768-dim Vector Search) β”‚ β”‚ β”‚ β”‚ β”œβ”€ Inventory Check (Real-time stock verification) β”‚ β”‚ β”‚ β”‚ β”œβ”€ Price Calculator (Subtotal, discounts, shipping) β”‚ β”‚ β”‚ β”‚ β”œβ”€ Payment QR Tool (EasyPaisa, JazzCash, Raast, UPI) β”‚ β”‚ β”‚ β”‚ β”œβ”€ Order Creator & Follow-Up Scheduler (node-cron) β”‚ β”‚ β”‚ β”‚ └─ Voice Synthesizer (Edge TTS Neural Voices) β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β–Ό β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ AI INFERENCE LAYER β”‚ β”‚ PERSISTENT DATABASE β”‚ β”‚ β€’ Groq Cloud (Gemma 2 9B) β”‚ β”‚ β€’ MongoDB Atlas Vector β”‚ β”‚ ~500 tokens/sec streaming β”‚ β”‚ Embeddings + Chat Context β”‚ β”‚ β€’ Backup: Ollama Gemma 2 2B β”‚ β”‚ β€’ Local Resilient JSON DB β”‚ β”‚ β€’ Tracing: Sentry SDK β”‚ β”‚ β€’ Follow-Up Scheduler Store β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ Enter fullscreen mode Exit fullscreen mode 4. Why Open-Source AI Excels Here Argument 1: Superior Performance and Throughput Gemma 2 9B running on Groq LPU inference clocks ~500 tokens per second. This allows SellBot to conduct multi-step agent tool calling (language detection $\to$ entity parsing $\to$ vector search $\to$ cart calculation $\to$ response generation) in under 2 seconds.

WhatsApp conversations contain customer names, delivery street addresses, phone numbers, and payment details. Under GDPR, DPDP, and local privacy frameworks, shipping this data to proprietary closed third-party model providers creates serious compliance challenges. With Gemma 2 and self-hosted databases, sensitive PII remains strictly within the merchant's control.

In South Asia and the Middle East, customers frequently switch dialectsβ€”code-mixing Roman Urdu ( "AoA, kal delivery ho sakti hy?" ), Hinglish ( "Bhaiya eggless options dikhao" ), or Arabic. Gemma 2 handles these mixed conversational patterns gracefully.

With open weights and an adapter-based architecture, SellBot can transition smoothly between cloud inference endpoints and local Ollama deployments without rewriting core business tools.

Customer: "AoA, kal k lye chocolate cake chahye, budget 800" SellBot's Decision Trace:

Customer: "Mujhy bike leni hai" SellBot's Decision Trace:

Customer: "EasyPaisa se pay karna hai, details dein" SellBot's Execution:

Agentic commerce requires rock-solid observability. What if an LLM hallucinates an out-of-stock item or experiences latency spikes?

SellBot integrates Sentry Tracing to track every agent execution:

git clone https://github.com/mrerror313coder/SellBot.git cd sellbot npm install Enter fullscreen mode Exit fullscreen mode Seed 50 Sample Products with Vectors & Pakistani Conversations: npm run seed Enter fullscreen mode Exit fullscreen mode Run the 49 Tests: npm test Enter fullscreen mode Exit fullscreen mode Launch the Dashboard & Live WhatsApp Simulator: npm run dev Enter fullscreen mode Exit fullscreen mode Open http://localhost:8080 to interact with the live agent simulator, view live decision traces, and scan the Baileys QR code!

Built with passion for Hacktoberfest 2026. Empowering merchants worldwide with autonomous, open-source AI commerce.

Quelle: dev.to (dev.to). Original ΓΆffnen