Back to Documentation
Deployment25 min read
WhatsApp Integration for Order Management
Deploy AI agents to WhatsApp to handle customer orders, inquiries, and provide real-time order status updates.
WhatsApp Integration for Order Management
Overview
Learn how to deploy your Craveva AI agents to WhatsApp Business API, enabling customers to place orders, check status, and get support directly through WhatsApp.
Prerequisites
- WhatsApp Business API account
- WhatsApp Business API credentials:
- - Business Account ID
- - API Token
- - Phone Number ID
- Active Craveva AI agent (order management or customer service type)
Step 1: Set Up WhatsApp Business API
- Create a WhatsApp Business Account at [business.facebook.com](https://business.facebook.com)
- Complete business verification
- Get your API credentials:
- - Business Account ID: Found in WhatsApp Manager
- - API Token: Generate in Business Settings → System Users
- - Phone Number ID: Your verified WhatsApp Business number
Step 2: Prepare Your Agent
- Ensure you have an agent that can handle:
- - Order placement
- - Order status queries
- - Customer inquiries
- - Product information
- Test your agent in the preview mode first
Step 3: Deploy to WhatsApp
- Navigate to Deployments in your Craveva dashboard
- Click Deploy New Agent
- Select your order management agent
- Choose WhatsApp as the platform
- Enter your WhatsApp credentials:
- Configure webhook URL (Craveva will provide this)
- Click Deploy
- - Business Account ID
- - API Token
- - Phone Number ID
Step 4: Configure Webhook in WhatsApp
- Go to WhatsApp Manager → Configuration
- Add webhook URL provided by Craveva
- Subscribe to events:
- Verify webhook (Craveva handles this automatically)
- - messages
- - message_status
Step 5: Test Your Integration
- Send a test message to your WhatsApp Business number
- Verify the agent responds correctly
- Test common scenarios:
- - "I want to place an order"
- - "What's my order status?"
- - "Show me your menu"
Features You Can Enable
Order Placement
- Customers can browse products via WhatsApp
- Place orders directly in chat
- Receive order confirmations
Order Tracking
- Real-time order status updates
- Delivery time estimates
- Order history
Customer Support
- Answer frequently asked questions
- Handle complaints and returns
- Provide product recommendations
Configuration Options
Message Templates
Configure pre-approved message templates for:
- Order confirmations
- Status updates
- Promotional messages
Business Hours
Set up automated responses outside business hours
Multi-language Support
Configure your agent to respond in multiple languages
Best Practices
- Keep responses concise (WhatsApp is mobile-first)
- Use quick reply buttons for common actions
- Set up fallback to human agents for complex issues
- Monitor conversation quality regularly
Troubleshooting
Messages Not Sending?
- Verify API credentials are correct
- Check webhook is properly configured
- Ensure phone number is verified
Agent Not Responding?
- Check agent is active and deployed
- Verify webhook is receiving messages
- Review agent logs for errors
Next Steps
- Set up automated order confirmations
- Configure delivery notifications
- Integrate with your POS system for real-time inventory
Related Guides
Understanding Role-Based Access Control
Master Admin, Super Admin, Admin, Team Lead, Project Manager, and Member roles explained....
Using AI Assistant for Data Mapping
Leverage AI to automatically map database entities and relationships for your agents....
Connecting MEGAPOS to Craveva
Integrate MEGAPOS F&B POS system with Craveva AI for comprehensive restaurant management and analyti...