5. Go live
Don't flip the agent on for every customer at once. Release it to a small, controlled set of customers first, watch how it behaves on real conversations, and fix what you learn. That's what the allowlist is for.
How the allowlist works
The agent's audience is controlled by the ai_audience setting:
ALLOWLISTED_ONLY— the agent responds only to consumers on the allowlist. Everyone else is handled as if the agent weren't there.EVERYONE— the agent responds to all consumers (that's full rollout). The allowlist is ignored.
Turn on a controlled launch
Add your test customers to the allowlist
Add each customer by phone number (E.164 format):
curl -s -X POST https://waba-v2.360dialog.io/agent_config/allowlist \
-H "D360-API-KEY: <YOUR_API_KEY>" \
-H "X-API-Version: 2.0.0" \
-H "Content-Type: application/json" \
-d '{ "consumer_phone_number": "+49123456789" }'Or by Business-Scoped User ID (BSUID) — the user_id from your webhooks. Use this for customers who have adopted a WhatsApp username and whose messages carry no phone number:
curl -s -X POST https://waba-v2.360dialog.io/agent_config/allowlist \
-H "D360-API-KEY: <YOUR_API_KEY>" \
-H "X-API-Version: 2.0.0" \
-H "Content-Type: application/json" \
-d '{ "consumer_bsuid": "US.13491208655302741918" }'Send exactly one of consumer_phone_number or consumer_bsuid per request; sending both returns 400.
Enable the agent and set the audience to allowlist-only
curl -s -X PUT https://waba-v2.360dialog.io/agent_config/settings \
-H "D360-API-KEY: <YOUR_API_KEY>" \
-H "X-API-Version: 2.0.0" \
-H "Content-Type: application/json" \
-d '{
"rollout": { "enabled": true },
"ai_audience": "ALLOWLISTED_ONLY"
}'Now only the customers you added will talk to the agent. If enabling fails with 400, see Roll out to everyone — if enabling fails.
Iterate
Treat the controlled launch as a feedback loop:
Message the agent from allowlisted numbers on real WhatsApp, and keep using
agent_testfor quick checks.Watch the replies — on the phone, or by logging the
standbywebhook events. Is it grounded, on-brand, and handing off when it should?Debug odd replies with Conversation turns.
Refine skills, FAQs, and business info based on what you see.
Expand the allowlist gradually — add colleagues, then friendly customers.
Repeat until you're confident.
When the agent performs well for your allowlist, you're ready to roll out to everyone.
Last updated
Was this helpful?