# RecoveryCell

A WhatsApp bot that checks inventory and takes orders.

- Case: N° 02.05 · Client
- Year: 2026
- Disciplines: IA (AI integration), AP (Process automation)
- Stack: Node.js, Express, SQLite, WhatsApp Cloud API
- URL: https://micodigo.cl/en/work/recoverycell

## Summary

RecoveryCell is a WhatsApp bot for a phone parts shop. Customers message the shop's WhatsApp and the bot answers on its own: it shows a menu, finds products by name, model or category, quotes retail and trade prices for technicians, flags anything out of stock with alternatives and records orders with a confirmation. It remembers the conversation, such as whether the person writing is a technician.

Every answer starts from the inventory: the server queries the database and the language model writes the message from that data. When an order is confirmed, stock is deducted and the owner gets an alert on their own WhatsApp, where they run the shop with commands to check stats, restock, change prices, add products and close orders.

The server is Node with Express on the WhatsApp Cloud API, with inventory, orders and conversations in SQLite.

## Architecture

- Customer on WhatsApp → Express webhook
- Express webhook → SQLite inventory
- SQLite inventory → The LLM writes the reply
- The LLM writes the reply → Customer on WhatsApp
- Express webhook → Order and stock deduction
- Order and stock deduction → Owner alerts and commands
- Owner alerts and commands → Express webhook (/stock and /precio commands)

micodigo.cl: https://micodigo.cl

---

- Page: https://micodigo.cl/en/work/recoverycell
- En español: https://micodigo.cl/trabajo/recoverycell.md
- Index for agents: https://micodigo.cl/llms.txt
