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

  1. Create a WhatsApp Business Account at [business.facebook.com](https://business.facebook.com)
  2. Complete business verification
  3. 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

  1. Ensure you have an agent that can handle:
  • - Order placement
  • - Order status queries
  • - Customer inquiries
  • - Product information
  1. Test your agent in the preview mode first

Step 3: Deploy to WhatsApp

  1. Navigate to Deployments in your Craveva dashboard
  2. Click Deploy New Agent
  3. Select your order management agent
  4. Choose WhatsApp as the platform
  5. Enter your WhatsApp credentials:
  6. Configure webhook URL (Craveva will provide this)
  7. Click Deploy
  • - Business Account ID
  • - API Token
  • - Phone Number ID

Step 4: Configure Webhook in WhatsApp

  1. Go to WhatsApp Manager → Configuration
  2. Add webhook URL provided by Craveva
  3. Subscribe to events:
  4. Verify webhook (Craveva handles this automatically)
  • - messages
  • - message_status

Step 5: Test Your Integration

  1. Send a test message to your WhatsApp Business number
  2. Verify the agent responds correctly
  3. 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