Conversational AI Agent for Full Inventory Control — Chat Command → AI Agent → Database Read/Write → Instant Response
The Problem
A mobile phone accessories business managing stock, pricing, and reorder thresholds through manual spreadsheet lookups. Every inventory action — checking a SKU's current stock, updating a price, reviewing sales data, adjusting a minimum quantity threshold — required opening a separate system, navigating to the right record, and making the change manually. No way to get a fast answer or make a quick update from a phone without sitting at a computer.
The Solution
An n8n AI Agent exposed as a chat interface on both WhatsApp and Telegram simultaneously. The agent connects to the inventory database and handles the full range of management actions through natural language: querying stock levels and prices by SKU, updating quantities and pricing on request, pulling sales data, setting minimum quantity thresholds per SKU, and triggering low-stock alerts automatically when any SKU crosses its configured threshold. The agent interprets intent from conversational messages — no commands to memorize, no interface to navigate. The same message sent on WhatsApp or Telegram produces the same result.
Key Engineering
→ Dual-platform deployment (WhatsApp + Telegram) from a single agent workflow — channel is an input parameter, not a separate build
→ Alert system is threshold-driven at the database level, not a scheduled scan — fires the moment a stock update crosses the minimum, not on the next check interval
→ Agent handles both read and write operations through clearly scoped tools — read tools never mutate data, write tools require explicit confirmation fields in the message to prevent accidental updates
The Result
→ Full inventory management accessible from any device via apps already in daily use. Stock checks, price updates, and threshold alerts replaced from a multi-step manual process to a single chat message. Low-stock alerts fire automatically without anyone having to remember to check.
Tech Stack:
n8n AI Agent · WhatsApp Business API · Telegram Bot API · Custom Inventory Tools · Postgres/Sheets Database · Webhook Triggers



