Sunshine Conversations is included with the Zendesk Suite plan. If you’re
on Support Professional, use the Ticketing
API path for email handoff and contact
Zendesk to upgrade for real-time channels.
Before you start
Zendesk Suite plan with Sunshine provisioned
Zendesk Suite plan with Sunshine provisioned
Open Admin Center → Apps and integrations → APIs → Conversations API. If the section is missing, Sunshine isn’t provisioned on your account — contact Zendesk.
Admin access in Zendesk
Admin access in Zendesk
You’ll create an App key in the Conversations API section and note your. Agent roles don’t have access.
Owner or admin in OpenCX
Owner or admin in OpenCX
Required to save integration settings in Settings → Integrations.
Setup
1
Create a Sunshine App key
In Zendesk, open Admin Center → Apps and integrations → APIs → Conversations API.
- Click Create API key.
- Label it
OpenCX. - Copy the Key ID and Secret — Zendesk only shows the Secret once.
- Note the App ID displayed at the top of the page.
2
Turn on multi-conversations for the Sunshine app
OpenCX creates a fresh Sunshine conversation for every chat session. Sunshine’s default
personal conversation mode caps each end user at one open conversation, so the second POST /v2/apps/{appId}/conversations for the same user fails and the session never reaches the Agent Workspace. Turn multi-conversations on once, in Zendesk, before you wire up OpenCX.- In Admin Center, go to Channels → Messaging and social → Messaging.
- Click Manage settings at the top of the page.
- Under Web Widget and Mobile SDKs, expand Multi-conversations and click Set up multi-conversations.
- Click Turn on multi-conversations for your account and select every Web Widget, iOS SDK, and Android SDK channel OpenCX will answer on.
- Save settings.
Pick every Web/iOS/Android channel. Turning multi-conversations on for one channel updates the underlying Sunshine app for all Web/iOS/Android channels — channels you leave unselected just lose the New conversation button. Selecting all of them keeps the end-user experience consistent and avoids surprises when you add the next channel. Social channels (WhatsApp, Messenger, Instagram) don’t support multi-conversations and aren’t affected by this setting.
3
Open Zendesk Messaging in OpenCX
In OpenCX, go to Settings →
Integrations, find
Zendesk, and click Zendesk Messaging.
4
Enter your Sunshine credentials
Click Verify & Save.
5
Provide a Zendesk API token for user merge
Sunshine uses a separate identity model from Zendesk’s support API. To prevent the same person from showing up as two separate , OpenCX merges Sunshine messaging contacts with matching Zendesk support users.In the Zendesk API credentials panel on the same page, reuse the credentials from the Ticketing API setup. The merge endpoint uses the same token. If you skipped Ticketing, generate a token for this purpose alone — user search is free on every Zendesk plan, and no webhook is needed.
What OpenCX writes on every Sunshine conversation —
metadata.opencx_org_id, metadata.opencx_contact_id, and metadata.opencx_session_id. Your reps don’t see these fields directly, but they’re reachable via the Conversations API for debugging and analytics. The session ID is the trace key back to the exact OpenCX conversation.6
Copy your messaging webhook URL
After saving, OpenCX displays a Messaging Webhook URL. Keep it handy —
you’ll paste it into Zendesk next.
7
Register the webhook in Sunshine
In Zendesk’s Conversations API admin, open the Integrations / Webhooks panel for your app and add a new webhook.
Save the webhook.
8
Pick the channels OpenCX should answer on
Saving credentials only wires up the integration — Zendesk still needs to be told which channels the OpenCX AI agent should actually respond on. This is done from Zendesk’s AI Agents admin (not from OpenCX).
- In your Zendesk Admin Center, go to AI → AI agents → AI agents, then click the Marketplace bots tab. (Direct admin URLs are subdomain-scoped, so we can’t link them — see Zendesk’s Managing third-party bots in Admin Center for the canonical walkthrough.)
- Find the OpenCX entry in the list of marketplace bots and open it.
- Under Channels, pick every channel you want the AI agent to handle — specific WhatsApp numbers, the Web Widget, Facebook Messenger pages, Instagram accounts, SMS numbers, etc. To make OpenCX the first responder for every messaging channel instead, use the entry’s Options → Assign default menu — see Setting an advanced AI agent as the default responder.
- Save.
9
Set Conversation control to Release control
The previous step makes OpenCX the first responder. This step makes sure OpenCX takes back the conversation after a human agent solves the ticket — otherwise repeat customers stay routed to Zendesk’s Agent Workspace or
zd-answerBot instead of the AI.Conversation control is an account-wide Sunshine Conversations switchboard setting — not a per-bot setting. It lives on the Messaging setup page, not inside the OpenCX marketplace bot entry.- In Zendesk Admin Center, go to Channels → Messaging and social → Messaging, then open your messaging configuration. (The direct URL is subdomain-scoped:
https://<your-subdomain>.zendesk.com/admin/channels/messaging_and_social/messaging/setup.) - Expand the Conversation control section.
- Select Release control.
- Save.
10
Shorten the Solved→Closed window (recommended)
Sunshine only hands control back to OpenCX when a Zendesk ticket transitions from Solved to Closed — not on Solved alone. By default Zendesk waits 4 days between the two. Until close fires, any customer who returns inside that window stays routed to the Agent Workspace, not the AI.To make handback near-instant, do one of:
- Edit the built-in automation: in Admin Center → Objects and rules → Business rules → Automations, open
Close ticket 4 days after status is set to solvedand drop the timeframe to ~1 hour (or whatever close-window your team needs for re-opens). - Add a close-on-solve trigger: create a trigger that closes any ticket whose status changes to Solved. Handback then fires the instant an agent solves.
Skipping this step doesn’t break the integration — it just means returning customers within the close window land on the Agent Workspace instead of the AI. If your reps and customers are fine with re-engaging via the live agent for a few days post-solve, the default 4-day automation is acceptable.
11
Verify end to end
Run a full handoff + handback cycle on a channel you enabled.
- Handoff: send a test message, request a human, confirm the conversation appears in the Zendesk Agent Workspace as a live chat. Reply from Agent Workspace and confirm it lands back on the original channel within a couple of seconds.
- Solve and close: solve the ticket from Agent Workspace, then close it (manually, or wait for your trigger / shortened automation from the previous step to fire).
- Handback: from the same end user, send a fresh message on the same channel. Confirm the AI responds — not the live agent and not Zendesk’s
zd-answerBot.
Sunshine channels handle off as live chats, not tickets
For channels routed through Sunshine — WhatsApp, Messenger, Instagram, web chat, SMS, and phone — handoff does not create a Zendesk ticket. The conversation appears in the Agent Workspace as a live chat. Ticket-based behavior (AI Fields auto-fill, tag application, agent-reply sync) described on the Ticketing API page applies to email only.Turn on AI agent tickets if you want ticket ids before handoff
By default, an AI-handled messaging conversation has no Zendesk ticket until it’s handed off to a human. Zendesk creates the ticket at escalation, and that’s the moment a ticket id appears in the OpenCX Inbox sidebar. A conversation the AI resolves on its own never gets a ticket — so its ticket id in OpenCX stays empty. With the default configuration that’s expected, not a bug. If you want every conversation — including AI-resolved ones — to have a Zendesk ticket and a ticket id in OpenCX, turn on Zendesk’s AI agent tickets feature:- In Zendesk, go to Admin Center → Channels → Messaging and social → Messaging and click Manage settings.
- Expand AI agent conversations as tickets in Agent Workspace and turn it on.
- Save.
Zendesk turned AI agent tickets on by default for all accounts on May 4,
2026 — but accounts using Zendesk’s own AI agents - Advanced add-on are
exempt and may still have it off. If your AI-only conversations aren’t
producing tickets, check the setting. References: Understanding AI agent
tickets for AI agent–only
conversations,
general availability
announcement,
default-on
schedule.
Rotating Sunshine credentials
Create a new App key in Zendesk, paste it into OpenCX, then delete the old key. The is unaffected by App key rotation.Disconnecting
Click Disconnect on the Zendesk Messaging card in Settings → Integrations. Then delete the webhook in the Conversations API admin. Active conversations finish out on their current channel; no data is deleted from Zendesk.Related Documentation
Channels
Per-channel implementation details for Widget, WhatsApp, SMS, Phone, and
Email.
Ticketing API
The companion path for email handoff.
Troubleshooting
Agent Workspace not receiving messages, duplicate users.