The flow, step by step
- The WhatsApp message comes inIn production it arrives through the WhatsApp webhook (Kommo / WhatsApp Cloud API). In this showcase, n8n's public chat plays that role.
- GuardrailsBefore any AI spend: a 500-character cap, per-session and global message limits, a daily cap on AI replies, and per-IP rate limiting in nginx.
- Intent rulesFixed rules, no AI: a custom size or a request for a sales rep goes straight to the CRM. Everything else continues with the AI agent.
- AI agent + catalog toolThe agent queries the live catalog with tool calling (a sub-workflow). Cash price, installments and stock are computed in code, never “made up” by the model. It has per-conversation memory.
- Handoff to KommoIt builds the lead in the real Kommo API format (
/api/v4/leads/complex): model, fabric, size and the original message. Here it is stored in a table instead of calling Kommo. - Error workflowIf something fails, a separate workflow logs the error with the step and details. In production it would alert via Slack or email, and the conversation never goes unanswered.
catalog_lookup tool. Tap the image to see it full size. (Screenshot of the Spanish workflow; the English twin has the same structure.)
The n8n editor is private (owner login only). This page is a read-only view. Products, prices and stock are sample data.