Multi-Channel Setup Guide
Your Blaigent agent runs the same brain across all seven channels. This guide covers the webhook URLs, environment variables, and provider configuration steps for each channel.
The agent brain, knowledge base, and business rules are configured once in the dashboard. Each channel connects to that brain via its own webhook.
Channel 1 — Web Chat
No external setup required
Web chat is live as soon as your account is created. Copy the embed code from Dashboard → Channels → Website and paste it into your site before the closing </body> tag.
API endpoint: POST /api/v1/agents/customer-service/chat
Channel 2 — WhatsApp (via Twilio)
Environment variables
TWILIO_ACCOUNT_SID=your_account_sid
TWILIO_AUTH_TOKEN=your_auth_token
TWILIO_WHATSAPP_NUMBER=whatsapp:+14155238886
Webhook URL
Steps
- Go to Twilio Console → Messaging → WhatsApp Senders.
- Set the When a message comes in webhook to your Blaigent webhook URL (HTTP POST).
- For testing, use Twilio's WhatsApp Sandbox. For production, use a Meta-approved WhatsApp Business number.
Channel 3 — WhatsApp (via Meta directly)
Environment variables
WHATSAPP_ACCESS_TOKEN=your_access_token
WHATSAPP_PHONE_NUMBER_ID=your_phone_number_id
WHATSAPP_VERIFY_TOKEN=your_verify_token
Webhook URL
Steps
- Create a Facebook App with the WhatsApp Business product.
- Under WhatsApp → Configuration, set the Callback URL to your webhook URL and set the verify token.
- Subscribe to the messages webhook field.
- Generate a permanent system user access token with
whatsapp_business_messagingpermission.
Channel 4 — Voice / Phone (Twilio)
Environment variables
TWILIO_ACCOUNT_SID=your_account_sid
TWILIO_AUTH_TOKEN=your_auth_token
TWILIO_PHONE_NUMBER=+1234567890
Webhook URL
Steps
- Go to Twilio Console → Phone Numbers → Manage → Active Numbers.
- Click your number and scroll to Voice & Fax.
- Set A Call Comes In → Webhook → your Blaigent voice webhook URL (HTTP POST).
- The agent uses speech-to-text (Twilio STT) and text-to-speech (TTS) — no IVR tree needed.
Voice is available as an add-on. See AI Voice & Phone Agent for pricing and capabilities.
Channel 5 — SMS (Twilio)
Environment variables
TWILIO_ACCOUNT_SID=your_account_sid
TWILIO_AUTH_TOKEN=your_auth_token
TWILIO_PHONE_NUMBER=+1234567890
Webhook URL
Steps
- Go to Twilio Console → Phone Numbers → Configure webhook.
- Set the webhook URL to your Blaigent SMS webhook (HTTP POST).
- SMS and voice share the same Twilio credentials and phone number.
Channel 6 — Email
Environment variables (SMTP)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASSWORD=your_app_password
Webhook URL (inbound email)
Steps
- For outbound: configure the SMTP env vars above (or use SendGrid/Brevo API key).
- For inbound: use SendGrid Inbound Parse or Mailgun routing to forward emails to your webhook URL as a POST request.
Channel 7 — Instagram DMs
Setup steps
- Go to Meta for Developers and open (or create) your app.
- Add the Instagram Messaging product and connect your Instagram Business or Creator account.
- Under Messaging → Settings, set the Callback URL to your webhook URL and verify token.
- Subscribe to messages and messaging_postbacks events.
- Generate a long-lived Page Access Token and add it to your Blaigent dashboard.
Webhook URL
Testing each channel
After configuring a channel, send a test message and verify the agent responds correctly. All channels should produce the same quality of response — same knowledge, same policies, same memory.
For a channel-specific use case, see also:
- Beauty Salon AI Agent Guide — Instagram DMs + WhatsApp + Google Calendar
- E-commerce AI Agent Setup — website chat + voice + order tracking