WhatsApp AI sales and purchasing agent tied to ERP
This WhatsApp AI agent, which replies to customers, sends invoices and statements from the ERP, takes orders and negotiates purchases within predefined limits, is still in delivery, so no results are claimed yet.
The challenge
A trading company handled customer and supplier conversations manually on WhatsApp, around the clock and across time zones.
Context
A trading company in the United States handled customer and supplier conversations manually on WhatsApp. Customers ask for invoices, statements and shipping documents, place orders and expect quick replies, while suppliers negotiate prices and terms. Because the business works across time zones, these messages arrive around the clock. See how we work as a SAP Business One developer for US companies.
The official WhatsApp Business Platform is the supported way to automate this. It has rules that shape the design: a business can reply freely within 24 hours of the customer's last message, but messages it starts outside that window must use pre-approved templates. An agent that negotiates also needs clear limits and a way to hand the conversation to a person.
What we built
- Official WhatsApp Business Platform with text and voice calling
- Gemini as the reasoning model with realistic voice through ElevenLabs
- Documents (invoices, statements, shipping docs) pulled from the ERP
- Human handover and full logging in ERP/CRM
How it fits together
- Customer and supplier messages and voice calls arrive through the WhatsApp Cloud API and the WhatsApp Calling API.
- An ASP.NET Core back end receives them and passes the conversation to Gemini, the reasoning model.
- When a customer asks for a document, the agent fetches the invoice, statement or shipping document from the ERP and sends it on WhatsApp.
- For voice, replies are spoken with a realistic voice through ElevenLabs.
- Orders and purchase negotiations stay within predefined limits; anything outside them is handed over to a person, and every conversation is logged in the ERP/CRM.
How we delivered it
- Discovery and scope. Map the conversations staff handle today, the ERP documents customers request, the negotiation limits for suppliers and the cases that must always go to a person.
- Build on test numbers and test data. Connect a WhatsApp test number to the back end, use ERP test data for documents and orders, and submit the message templates needed for business-initiated messages for approval.
- Testing. Test text and voice conversations, document requests, orders and negotiations that hit the limits. Check that handover reaches a person and that every exchange is logged in the ERP/CRM.
- Go-live (planned). Move to the production WhatsApp number, start with a limited group of customers and suppliers, and widen access as the agent proves reliable.
- Support. After go-live, support covers tuning replies, limits and handover rules.
Result
- In delivery
This project is still in delivery, so no results are claimed yet. This page will be updated after go-live.
Lessons for a similar project
- Use the official WhatsApp Business Platform; unofficial automation risks the number being banned.
- Plan message templates early. Business-initiated messages outside the 24-hour window need approval, and approval takes time.
- Give the agent hard limits for prices and quantities in code, not only in the prompt, and always offer a human handover.
Technology
Services used
Delivered by Zain Abbas, Kodenova.
Want something similar?
Tell us what you need. You get a clear technical answer, a fixed scope and a price, usually within 24 hours.
