Setting up your Sunshine Conversations Integration

Overview

The Symbee Connect Social Messaging integration allows you to fully service 2-way social conversations fronted by your Sunshine Conversations Account within your Omnichannel Symbee Connect enabled Amazon Connect instance. The following functionality is provided:

  • Route inbound Social messages into your Symbee Connect instance and queue them to the next available, appropriately skilled agent for servicing in a 2-way Social conversation:
  • The first new SMS message received from a customer’s phone number begins a Social Conversation within Symbee Connect. After the conversation is delivered to an agent, all subsequent SMS messages sent between the agent and customer are part of that Conversation, with the conversation concluding when the agent ends the dialogue and wraps the associated interaction.
  • Inbound Social Messages (conversations) can be optionally configured within Symbee Connect to be first routed via Amazon Connect Chat, therefore starting in an Amazon Connect Contact Flow for self service and Lex Bot integration, then subsequently queued to a Symbee Connect Agent for further servicing as needed.
  • All the same chat-based Symbee Connect functionality like Auto-Text libraries, and Work Codes/Dispositions, and Audible Chat Notifications are available for use in the Social Conversations, just like any other Chat conversation serviced with Symbee Connect.

Configure Sunshine Conversations with Zendesk

The steps in this section walk you through the setup of a new Sunshine Conversations App within your Zendesk Account and creating a new Social Messaging Service within that App.

Note: If you already have an existing Zendesk Account, App, and Social Integrations setup, many of the steps in this section will be redundant. If this is the case, the key steps for integration with your Symbee Connect environment are to:

Create or Access your Sunshine Conversations Account and App

  1. Log into your Sunshine Conversations Sunshine Conversations at https://app.smooch.io/login
    If you don’t already have an Account, click the Don’t have an account yet? Sign-up button on the login page to register for your new Account. Create your new account and then sign in.

  2. In your Sunshine Conversations Account, if you already have an existing App you wish to use, you can skip this step. Click the Create New App button on the right side, middle of the page.

Notes:

- If this is your first time logging in, you will have the option of setting up a Sandbox or Production account.

- Any New Account will begin as a Trial. Once created, there are options you can use to Upgrade the account as needed.

  1. Provide a Name for your new App, and click Create App.

Obtaining App and API Key Information

This section will walk you through gathering the App ID, and API Key information. Make sure to copy these items to a notepad for use during a later configuration step.

  1. From the App Overview page, click on the Settings menu on the top menu bar.

  2. Once in the Settings menu, scroll down to the App ID section. Click the Copy button and paste this value into your notepad file to use later on in this document.

  3. Next, scroll down to the API keys section and click the Create new API key button.

  4. You should now see your App ID, App Secret and today’s data in the Date Created column. Copy the ID and the Secret values and paste them in your notepad to use later in this document. Click Save Changes.

Add and Configure Webhooks Integration

This step is required in order to Integrate with any of the Social Channels. However, only one Webhook integration is required per App, no matter how many channels you have configured inside of that App.

  1. From the Settings page, click on the Integrations menu on the top menu bar.

  2. Scroll down to the API & Webhooks section and click on the Webhooks Integration option.


  3. Click the Connect button to get started.

  4. Click the Create a webhook button.

  5. In the Webhook URL field, copy in your Symbee Connect Web Hook URL that can be obtained from the Symbee Connect Administration Console (refer to Sunshine Conversation APP Webhook URL for this Web Hook URL value).

  6. Select the checkbox for AppUser messages and click Create webhook.

Add and Configure Social Integration Channels

Sunshine Conversations offers Integrations with many popular conversation applications. Symbee Connect currently supports WhatsApp, Messenger, Twitter DM and Line but will be adding additional channels in the future. The example we will walk through is for WhatsApp but the configuration steps in this section will be the same no matter which Social Channel you are configuring.

  1. From the Settings page, click on the Integrations menu on the top menu bar.
  2. Click on the Social Channel you are planning to integration into Symbee Connect.


  3. Click the Connect button to get started.


  4. If your account is new or you haven’t already gone through the authorization for Production mode, you will be presented with the option of setting up a Sandbox or Production environment. For the purpose of this guide, we will be setting up a Sandbox environment. For a Production WhatsApp connection, please contact Zendesk and Facebook to establish a WhatsApp Business Account.
  5. Click on the Sandbox integration mode and then click Activate Sandbox.



  6. You should get a message stating You have connected your number to WhatsApp, in a green status bar.
  7. Scroll down to the Sandbox Settings and look for the phrase that Zendesk want you to send and the phone number to send it to. This must be sent throught the WhatsApp App on your device.
  8. Once you send your message, you’ll get a response back in WhatsApp with some important information and will see your WhatsApp config screen change as well. You will now see the End User Phone Number equal to that of the phone you setup WhatsApp from and the Sandbox Phone Number.



Configuring the Sunshine Conversations in Symbee Connect

The following step by step guides you through setting up a Sunshine Conversations integration. The instructions differ depending on the Delivery Provider you are going to use for your Sunshine Conversations. See Selecting the Chat Delivery Provider for further details on this.

Setting up Sunshine Conversations using Delivery Provider: Amazon

Important Note: The following steps are only required if you are going to be using Amazon as your Delivery Provider.

Prerequisites

Confirm CCP-V2 is being used

In order to receive Amazon Connect Chats (chat/SMS), you need to be running CCP v2.

  1. Log into the Symbee Connect Administration Portal.
  2. Click the on the main Function menu in the top navigation bar and then click on Amazon Connect Integration under Company Environment Configuration
  3. Confirm your Amazon Connect URL ends with /ccp-v2.

  4. If it doesn’t, modify your URL to end with /ccp-v2 - this is required to receive Amazon Connect Chats (Chat/SMS).


Download the Amazon Connect Chat Integration CloudFormation

Note that this step only needs to be performed before setting up your first new Amazon Delivered Chat channel for a Symbee Connect Environment.

If this is the first Symbee Connect CloudFormation you have run, you will need to run the Integrations CloudFormation first. For step by step instructions and further information about CloudFormations click here.

  1. Log into the Symbee Connect Administration Portal.
  2. If you have more than one Environment configured within your Company in Symbee Connect, make sure you have the appropriate one selected. This can be found on the Navigation bar to the left of the Function menu.
  3. Then click on the main Function menu in the top navigation bar, and click on Feature Integrations (CloudFormations) in the Company Environment Configuration section.
  4. From the Feature Integrations (AWS CloudFormations) page, scroll down and locate the Amazon Connect Chat Integration CloudFormation, and click the download link to download and save the CloudFormation script.
  5. You will be prompted with a Save As dialog screen. Save the file locally to your PC for use in the following steps.


Run Amazon Connect Chat Integration CloudFormation in your AWS Account

  1. Log Into your AWS Management Console.
  2. Make sure you are in the correct AWS region for where you want to deploy (top right of the Navigation bar) – the same region as your Amazon Connect instance.
  3. Navigate to the CloudFormation console (under Management and Governance, on the Services menu).
  4. From the CloudFormations console, select Stacks in the left-hand navigation bar, and select Create Stack and select With new resources (standard) from the dropdown box.

  5. You will be presented the “Create Stack” view for creating/deploying a new CloudFormation script (known as a stack):

  6. Under the Prepare Template section, select Template is Ready

  7. Under Specify Template, select Upload a template file

  8. Under Upload a template file, click Choose File

  9. In the resulting file selector, find and upload the file you saved from above.

  10. Click Next at the bottom

  1. In the Specify Stack Details screen, complete the fields as follows:
  2. Stack Name: Enter a name appropriately. We suggest using your Symbee Connect Environment (e.g. dev, prod, etc.) in the name for better organization, in case you have CloudFormations for multiple Symbee Connect Environments Connect being deployed into the same AWS Account.
    For example:
    companyalias-environment-amazonchat
  3. Click Next
  4. On the next Configure stack options screen, accept all the defaults, and click Next.
  5. On the next Review testing screen, scroll to the bottom Capabilities section, check the “I acknowledge that AWS CloudFormation might create IAM resources with custom names.” Checkbox, and finally click Create Stack.


Build Amazon Connect Chat Queue and Contact Flow

You will need to setup an Amazon Connect Contact Flow to receive and handle your chat and respective Chat Queue in Amazon Connect and assign it to a Routing Profile, if you are routing your SMS to an agent.

Following Steps

Proceed to Declare Social Messaging Endpoint.

Setting up Sunshine Conversations using Delivery Provider: Symbee Connect

These steps configure the integration of your Sunshine Conversations App and Messaging Service within your Symbee Connect Environment to enable the two-way Social channel.

Note: only follow these steps if you will be using Symbee Connect as your Delivery Provider

Create Skill Queue for Social Messages

  1. Login to the Symbee Connect Administration Portal.
  2. If you have more than one Environment configured within your Company in Symbee Connect, make sure you have the appropriate one selected. This can be found on the Navigation bar to the left of the Function menu.
  3. Click on the Function menu on the in the top navigation bar and the select Skill Queues located under the Contact Center Configuration section.
  4. Click on Add New Queue.
  5. Configure the New Queue making sure you select Social WhatsApp from the Queue Type dropbox.
  6. Click Save.

For more information on Queues and Skill Assignment, click here.

Assign New WhatsApp Skill Queue to Agents

Within Symbee Connect Social messages can either be delivered using the Symbee Connect Chat delivery engine, or alternatively can be delivered via Amazon Connect Chat using Contact Flows configured within Amazon Connect. If using Amazon Connect Chat for delivery, this sub-section can be skipped, and instead create a Starting Contact flow for your SMS Conversations in Amazon Connect and appropriate Amazon Connect Queues for agent delivery.

  1. On the Queues and Skill Assignment page, select Skill Assignment from the left side menu.
  2. Put a tick in the checkbox next the Users you want to assign the new WhatsApp queue to and click on the Add Skill to Users... button.
  3. From the dropdown box, select the WhatsApp Queue you created in the previous step and then click on the Assign Skill button.

For more information on Queues and Skill Assignment, click here.


Declare Social Messaging Endpoint

The following steps need to be performed regardless of your Delivery Provider:

  1. From the Function menu, select Social Administration which is located under the. Channel Configuration section.

  2. Click on Social Messaging from the left side menu and then click Add Social Messaging Endpoint.

  3. Add an Endpoint Code and an Endpoint Name, then click Add.

  4. Select your newly created Provider Mapping from the List view and configure the details as follows:

  5. Social Messaging Provider: select Smooch

  6. Social Messaging Type: select WhatsApp
  7. Provider API Username: leave blank
  8. Provider API Password: leave blank
  9. Provider API Key: use the API Key ID value obtained from your Sunshine Conversations App in this step.
  10. Provider API Secret Key: use the API Key Secret value obtained from your Sunshine Conversations App in this step.
  11. Backend Channel Group ID: use the App ID value obtained from your Sunshine Conversations App in this step.
  12. Backend Channel ID: you will need to copy the alpha-numeric value at the end of the URL when on the App Configuration page: - From the Home screen in Sunshine Conversations, click on the App that contains your WhatsApp configuration. - Click the Configure button for the WhatsApp channel integration - Copy the alpha-numeric value at the end of the URL.
  13. Provider API REST URL: use the following:
    https://app.smooch.io/v1/apps/[appID]/appusers/[appUserID]/messages
  14. Delivery Provider: select either Symbee or Amazon, depending on whether you want to have the Social Conversations delivered through a Symbee Connect Skill Queue, or alternatively via an Amazon Connect Contact Flow.

  15. Skill Queue or Contact Flow (depending on your Delivery Provider): assign to a queue or a contact flow.



Sunshine Conversation APP Webhook URL

Once you have declared the WhatsApp messaging endpoint, the resulting Webhook URL needs to populated within your Sunshine Conversations App Integration, refer to Add and Configure Webhooks Integration.

The Webhook URL value can be copied from the bottom of your Social Messaging Endpoint setup above.

  1. From the Social Messaging Configuration page, click on the Social Endpoint you just created.
  2. Scroll down to the bottom, Social Endpoint Webhook URL to find the Callback Webhook URL. Copy the URL.
  3. Now use this URL to populate the Webhook in your Sunshine Conversations Social Message Service. See Add and Configure Webhooks Integration for more details.