Customer Management Tools
The customer management system includes tools for personalization, language preferences, memory management, and feedback collection. These tools enable persistent customer relationships and service optimization.Tools Overview
Core Customer Tools
- manage_customer_memory - Persistent preference storage
- change_customer_language - UI language preferences
- register_feedback - Structured feedback collection
- get_customer_previous_orders - Order history and favorites
manage_customer_memory
Overview
Stores and retrieves persistent customer preferences that enhance future interactions. Memory can be scoped to a specific location or across an entire organization.Operations
get Operation
Retrieves stored customer information:set Operation
Stores new customer information:delete Operation
Removes stored memory:Memory Scopes
location (Default)
Information specific to the current restaurant:- Dietary restrictions for this location’s menu
- Delivery preferences specific to this address
- Service preferences for this location
businessOrganization
Information shared across all locations in a chain:- Universal dietary restrictions (nut allergies, vegetarian)
- Payment preferences
- Communication preferences
What to Store
✅ Good Memory Content
- Dietary restrictions: “Vegetarian”, “Nut allergy”, “Gluten-free”
- Preferences: “Likes extra spicy”, “Prefers morning deliveries”
- Important context: “Works night shifts”, “Has mobility issues”
- Special instructions: “Leave at door”, “Call upon arrival”
- Personal details: “Celebrating anniversary”, “Regular customer”
❌ Avoid Storing
- Order-specific information (use order draft instead)
- Temporary information
- Sensitive personal data beyond service needs
- Financial information
- Exact addresses (handled separately)
Security Features
Content Sanitization
- Automatically limits content to 1000 characters
- Warns about excessively long content
- Strips unnecessary whitespace
Sensitive Data Detection
Automatically rejects content containing:- Credit card patterns:
\b\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}\b - Social security patterns:
\b\d{3}-\d{2}-\d{4}\b
change_customer_language
Overview
Updates the customer’s preferred language for UI elements, WhatsApp flows, and order summaries.Supported Languages
fr- Frenchen- Englishde- Germanit- Italianes- Spanish
Usage
What Changes
Language affects:- WhatsApp flow interfaces
- Button text and labels
- Order confirmation messages
- Payment setup instructions
- System notifications
register_feedback
Overview
Structured feedback collection with numerical scoring for service optimization and customer satisfaction tracking.Score Types
general_score (Required)
Overall satisfaction rating (0-100):- 90+ = Excellent experience
- 70-89 = Good experience
- 50-69 = Average experience
- Below 50 = Poor experience
Optional Scores
food_score- Food quality ratingdelivery_score- Delivery service ratingordering_experience_score- Ordering process rating
Usage
Feedback Collection Triggers
- After order completion
- When customer expresses satisfaction/dissatisfaction
- Proactive feedback requests
- Follow-up surveys via scheduled messages
get_customer_previous_orders
Overview
Retrieves customer order history for personalization and quick reordering. This information is automatically included in conversation context.Features
- Previous orders with detailed items
- Frequently ordered products (favorites)
- Order statistics and patterns
- Payment method history
- Delivery preferences from past orders
Integration
Memory is automatically loaded at conversation start, so direct tool usage is typically unnecessary unless checking for updates during the conversation.Integration Patterns
Personalization Flow
Language Switching
Feedback Collection
Memory Management Best Practices
Content Guidelines
- Be specific: “No mushrooms on pizza” vs “Doesn’t like some toppings”
- Include context: “Works night shifts - prefers late delivery”
- Update regularly: Add new preferences, remove outdated ones
- Use clear language: Avoid ambiguous descriptions
Scope Selection
Privacy Considerations
- Store only service-relevant information
- Avoid personal details unrelated to orders
- Regularly clean outdated preferences
- Respect customer requests to delete information
Error Handling
Memory Operations
Language Changes
Feedback Validation
Analytics and Insights
Memory and feedback data enables:- Personalization improvement based on stored preferences
- Service quality monitoring through feedback scores
- Language preference trends across customer base
- Common dietary restrictions for menu optimization
- Customer satisfaction patterns for service enhancement