Microsoft Copilot Studio
WhatsBox natively integrates with Microsoft Copilot Studio, letting your existing Power Platform agents converse with customers on WhatsApp while preserving your enterprise topics, Dataverse connectors, and Power Automate flows.
Connection Architecture
Connecting a Copilot Studio Agent
Copy Your Direct Line Secret from Copilot Studio
- Open your agent in Microsoft Copilot Studio (
copilotstudio.microsoft.com). - Go to Settings > Channels.
- Open Mobile app or Direct Line and copy your agent's Direct Line Secret.
Create the Copilot Studio Agent in WhatsBox
- In WhatsBox, open AI Agents, click New AI Agent, and choose Microsoft Copilot Studio Agent.
- Enter an internal AI Agent Name (1–100 characters).
- Click Set Secret, paste your Direct Line Secret (minimum 10 characters), and save. WhatsBox stores and displays it masked (
first4••••••••last4). - Under Use with WhatsApp Numbers, assign one or more WhatsApp numbers (1 AI Agent per number).
Configure Escalation (Optional)
Open the Escalation tab to add the Escalate to Human Agent capability and enable Website Push Notifications when your Copilot Studio agent triggers a handover.
Test in Sandbox & Enable
Save your Direct Line Secret, send test prompts in the right-hand Interactive Test Sandbox, and toggle Enable Agent once verified.
Troubleshooting
| Issue | Cause & Fix |
|---|---|
| "Secret Required" warning in Test Sandbox | You must save a valid Direct Line Secret (at least 10 characters) via Set Secret before testing in the sandbox. |
| Test Sandbox gets no response or auth error | Verify the Direct Line Secret is still active in Copilot Studio (Settings > Channels > Mobile app / Direct Line) and that your agent's channel authentication allows Direct Line connections. |
| Cannot enable the Copilot Studio agent | Ensure your workspace has a positive WhatsBox credit balance under Settings > Billing. |
AI Agent Capabilities & Tools
Equip your WhatsBox AI Agent with Knowledge Base documents, CSV Business Hours & Holidays schedules, and Human Agent Escalation.
Developer API & API Keys
Create, deactivate, rename, and revoke WhatsBox API keys and build custom WhatsApp Business API integrations with the official REST API.