Microsoft Copilot Studio

Connect enterprise Microsoft Copilot Studio agents to WhatsApp via WhatsBox using a Direct Line secret, test in the sandbox, and configure human escalation.

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

Rendering diagram...

Connecting a Copilot Studio Agent

Copy Your Direct Line Secret from Copilot Studio

  1. Open your agent in Microsoft Copilot Studio (copilotstudio.microsoft.com).
  2. Go to Settings > Channels.
  3. Open Mobile app or Direct Line and copy your agent's Direct Line Secret.

Create the Copilot Studio Agent in WhatsBox

  1. In WhatsBox, open AI Agents, click New AI Agent, and choose Microsoft Copilot Studio Agent.
  2. Enter an internal AI Agent Name (1–100 characters).
  3. Click Set Secret, paste your Direct Line Secret (minimum 10 characters), and save. WhatsBox stores and displays it masked (first4••••••••last4).
  4. 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.

Unlike native WhatsBox AI Agents, prompts, languages, knowledge sources, and schedules for Copilot Studio agents are managed directly inside Microsoft Copilot Studio.

Troubleshooting

IssueCause & Fix
"Secret Required" warning in Test SandboxYou 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 errorVerify 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 agentEnsure your workspace has a positive WhatsBox credit balance under Settings > Billing.