2026-03-24 18:10:37 +00:00
|
|
|
# WhatsApp Transport (Twilio)
|
|
|
|
|
# Copy this file to bot.toml and fill in your values.
|
|
|
|
|
# Only one transport can be active at a time.
|
|
|
|
|
#
|
|
|
|
|
# Setup:
|
|
|
|
|
# 1. Sign up at twilio.com
|
|
|
|
|
# 2. Activate the WhatsApp sandbox (Messaging > Try it out > Send a WhatsApp message)
|
|
|
|
|
# 3. Send the sandbox join code from your WhatsApp to the sandbox number
|
|
|
|
|
# 4. Copy your Account SID, Auth Token, and sandbox number below
|
|
|
|
|
# 5. Set your webhook URL in the Twilio console: https://your-server/webhook/whatsapp
|
|
|
|
|
|
|
|
|
|
enabled = true
|
|
|
|
|
transport = "whatsapp"
|
|
|
|
|
whatsapp_provider = "twilio"
|
|
|
|
|
|
|
|
|
|
twilio_account_sid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
|
|
|
twilio_auth_token = "your_auth_token"
|
|
|
|
|
twilio_whatsapp_number = "+14155238886"
|
|
|
|
|
|
|
|
|
|
# Bot display name (used in formatted messages).
|
|
|
|
|
# display_name = "Assistant"
|
|
|
|
|
|
|
|
|
|
# Maximum conversation turns to remember per user (default: 20).
|
|
|
|
|
# history_size = 20
|
2026-03-25 13:39:44 +00:00
|
|
|
|
|
|
|
|
# Optional: restrict which phone numbers can interact with the bot.
|
|
|
|
|
# When set, only listed numbers are processed; all others are silently ignored.
|
|
|
|
|
# When absent or empty, all numbers are allowed (open by default).
|
|
|
|
|
# whatsapp_allowed_phones = ["+15551234567", "+15559876543"]
|