> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.ada.cx/docs/channels/third-party/sunshine-web-messenger/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ada.cx/_mcp/server. # Sunshine Conversations Web Messenger ## Overview You can set up your AI Agent to work through the Sunshine Conversations Web Messenger interface instead of Ada's usual web interface. This approach can work differently from Ada's usual behavior and has both benefits and limitations you should be aware of, but it can be a good alternative if you want to use more of Zendesk's features. ## Use cases Sunshine Conversations Web Messenger enables the following scenarios: * **Leverage Zendesk's ecosystem**: Use Zendesk's branding, persistence, and conversation features instead of Ada's settings. * **Unified conversation experience**: Enable seamless [Handoffs](/docs/handoffs) between your AI Agent and human agents. * **Multi-conversation support**: Allow end users to create multiple conversations at once. ## Capabilities & configuration\[#understand-customer-experience-on-scwm] The customer experience in Sunshine Conversations Web Messenger is very similar to Ada's default web experience in a lot of ways. Here are some basics: * Customers can use the same conversation window to exchange messages with both your AI Agent and with your human agents, with seamless handoffs to Zendesk Messaging in between. You can also enable multi-conversation functionality, so customers can create more than one conversation at a time, with Sunshine Conversations's [Conversation List](https://docs.smooch.io/guide/web-messenger/#conversation-list) feature. * Customers and agents can send files to each other. For information on how Sunshine Conversations validates files, see [File Validation](https://docs.smooch.io/guide/validating-files/#file-validation) at Sunshine Conversations docs. * After the customer has been handed off to an agent, the chat window is reserved for their conversation with the agent. Only the agent can disengage the conversation by marking the ticket as "solved." After this, depending on your organization's [trigger settings](https://support.zendesk.com/hc/en-us/articles/4408824482586#topic_ux4_cqq_5pb), Zendesk automatically marks the ticket as "closed." Until the ticket is marked as "closed," any messages the customer sends go to the human agent, not the AI Agent. The customer has to wait until the ticket is closed to be able to send messages to your AI Agent again. * You can use Ada's multi-bot routing feature. For more information, see [Connect Zendesk social channels to multiple AI Agents using Sunshine Conversations](/docs/channels/social/zendesk-social-integration). ### AI Agent behavior with Web Messenger\[#understand-how-ada-features-work-in-sunshine-conversations-web-messenger] There are some features that you may have built into your AI Agent that won't translate to Sunshine Conversations Web Messenger. > **Note** > > There are several blocks and features that work differently from Ada's > default chat in Sunshine Conversations Web Messenger. For additional > information, see [Feature compatibility](/docs/channels/social/social-channel-onboarding#feature-compatibility). * **Metavariables**: You can't set metavariables in Sunshine Conversations Web Messenger. If your Answer flows require access to metadata, you can contact your Ada team for assistance, or use a [Request block](/docs/handoffs/handoff-management/blocks/request-block) to request data from Sunshine Conversations' API. For more information, see [Sunshine Conversations' API documentation](https://docs.smooch.io/rest/). * **Customer persistence**: Instead of using Ada's settings, use Sunshine Conversations' SDK settings to adjust how you want to retain users or conversations. For more information, see [Browser storage](https://docs.smooch.io/guide/web-messenger/#browser-storage) at Sunshine Conversations' documentation. * **Branding**: Instead of using Ada's settings, use Sunshine Conversations' SDK settings to adjust how you want the chat window to appear. For more information, see [Display Style](https://docs.smooch.io/guide/web-messenger/#display-style) at Sunshine Conversations' documentation. ## Quick start Deploy your AI Agent with Sunshine Conversations Web Messenger in a few steps. For detailed instructions, see [Implementation & usage](#set-up-sunco-web-messenger-with-your-ai-agent). Complete the Sunshine Conversations integration with your AI Agent. Get your Zendesk API details and create a new Web Messenger integration. Embed the integration scripts on your website. Set up [Handoffs](/docs/handoffs) using HTTP Request blocks. Connect your AI Agent with Zendesk Admin Center. ## Implementation & usage\[#set-up-sunco-web-messenger-with-your-ai-agent] Setting up your AI Agent to work with Sunshine Conversations Web Messenger requires some work with your AI Agent, in Sunshine Conversations, in Zendesk, and finally in your own website. If you have any trouble with any portion of these procedures, don't hesitate to contact your Ada team for assistance. ### Prerequisites\[#before-you-begin] Before proceeding, do a quick check to see that you have the following: * Access to Zendesk Agent Workspace * A subscription to Zendesk Suite Professional, Enterprise, Enterprise Plus, **or** a standalone Sunshine Conversations license add-on * Access to the Zendesk Conversations API through Zendesk Admin Center, so you can create API keys * A completed Sunshine Conversations integration with your AI Agent. For more information, see [Configure and use Sunshine Conversations](/docs/channels/social/sunshine-conversations-setup). Additionally, contact your Ada team to make sure your AI Agent is ready for the next steps. There are some features you may need Ada staff to enable on your behalf that you can't proceed without. ### Zendesk API setup and channel creation\[#get-zendesk-api-details] After you've verified that you have everything you need, you can use the Sunshine Conversations API to create a new channel. To use the API, you should have an API client program, like [Postman](https://www.postman.com/downloads/), installed on your computer. You may find it helpful to download the [API collection](https://docs.smooch.io/guide/postman-collection/) so you can see those calls pre-formatted in your client program. **To set up the Zendesk API and create a channel:** 1. In Zendesk Admin Center, go to **Apps and integrations** > **APIs** > **Conversations API**. On this page, find the following API attributes and copy them: * `appID` * `key` > **Note** > > This should be the same key you used to set up your Sunshine > Conversations integration. To generate an API key, see [Conversations API authentication](https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/web/getting_started/#authentication) in Zendesk's documentation. * `secret` 2. In your API client, set up your authentication. Depending on your setup, you can choose to use these settings for all of your Zendesk API calls, or just this one call. * Set the authentication type to **Basic Auth**. * For your **Username**, use the `key` from your API details. * For your **Password**, use the `secret` from your API details. 3. Make the following API call, replacing the `appID` placeholder with the value you got in your API details. In the API collection, it's called **Create Integration**. With this call, you're creating a new integration for your Sunshine Conversations account: ``` POST https://api.smooch.io/v2/apps/{appID}/integrations { "type": "web", "displayName": "Channel Name", "canUserSeeConversationList": false, "canUserCreateMoreConversations": false } ``` 4. Depending on the integrations you have set up, you might have multiple integrations come back in your response; each one will look like the below. Look for the integration that has the following two attributes: * `"status": "active"` * `"type": "web"` For that integration, copy the `id` attribute. ``` { "integration": { "id": "645032477d43a37749e94ef6", "status": "active", "type": "web", "displayName": "Channel Name", "brandColor": "65758e", "conversationColor": "0099ff", "actionColor": "0099ff", "displayStyle": "button", "canUserCreateMoreConversations": false, "canUserSeeConversationList": false } } ``` ### Website embedding\[#embed-integration-on-website] Now that you have your integration ID, you can embed your AI Agent on your website. To do that, you'll need to insert two scripts into your website. > **Tip** > > As with all website integrations, we recommend testing this code in a > staging environment before making it available publicly. That way, if > you want to troubleshoot or test out improvements, you can do so without > impacting your customer experience. 1. In your website's `
` tag, towards the end, insert the following script. Replace the `ADD-INTEGRATION-ID-HERE` portion at the end with the ID you got from Zendesk: ```js ``` 2. Use the following script to initialize your AI Agent, again replacing the `ADD-INTEGRATION-ID-HERE` portion at the beginning with your integration's ID. You can use it in a different script, or you can put it in your website's `` tag, inside a `