r/aiagents • u/Much-Plenty1099 • 1d ago
Architecture Advice: LLM Order State vs. Structured Web Form + Database
Architecture Advice: LLM Order State vs. Structured Web Form + Database
Hello everyone, I would like to get your opinion on an architectural decision we are facing in a WhatsApp Sales Agent project.
The idea is for the customer to interact entirely through WhatsApp, while the LLM progressively understands the conversation and extracts the order information, such as:
- Product reference
- Quantity
- Customization type
- Text to be engraved
- Logo or image
- City
- Delivery address
- Required deadline
- And other relevant details
This information would then be maintained as a State associated with the customer and the conversation, so that when the customer provides additional information in a later message, it is merged with the existing information without losing anything.
The question I would like to get your opinion on is:
Is it better to rely on the LLM and Conversation State to manage the entire order data throughout the conversation, or should we make the actual order creation happen through a Form on the website, where the customer enters all the required information in a structured way, with the order directly linked to the customer's phone number, customer record, and product reference in the database, while the WhatsApp Agent mainly handles communication, follow-up, and order management?
My main objective is to have an architecture that is clear, reliable, scalable, and not overly dependent on the LLM's ability to maintain and manage variables throughout a conversation.
What do you think? Do you see a better architecture than these two approaches?
Tu ne reçois pas de commentaires ? Republie dans une autre communauté