In our previous blog post we configured chat channel in Omnichannel for Customer Service. In this blog post we will configure SMS channel by integrating with a Twilio trial account.
SMS channel allows your organization to connect to customers by using text messages. It enables your support to reach situations and locations where even chat channel doesn’t reach. Consider following scenarios in which SMS channel can play a significant role:
- Where no internet connection is available to people to contact your support through a chat or even social channels.
- Where conversations need to last longer, depending on multiple factors such as nature of issue, customer and/or agent availability, response time, and so on
Set up SMS channel
We will perform following tasks to demonstrate the set up of SMS channel.
- Sign up for Twilio account
- Create a queue
- Create Work stream
- Define SMS settings and numbers
- Validate SMS settings
- Add routing rule to work stream
- Establish Twilio connection
- Test it out
Sign up for Twilio account
SMS channel can be set up in Omnichannel for Customer Service by integrating with a developer platform that provides SMS messaging service. Out of the box, Omnichannel for Customer Service provides configuring SMS channel with Twilio or TeleSign developer platforms. For this demonstration we will use Twilio integration.
- Go to https://www.twilio.com/
- Click on the Sign up button
- Fill in the your first name, last name, email and password.
- Select I accept the Twilio terms of service checkbox and click on Start your free trial button.
- You will receive an email to verify your account. Click on Confirm Your Email link in the email.
- You will be redirected to verification page again, this time to verify your phone number. Fill in your mobile phone number and click Verify button.
The mobile phone number you provide in the above step would also be your verified number that you would use for sending test SMS messages to the Omnichannel agent.
- You will receive verification code on your mobile device. Fill in this code in the verification code field and click Submit button.
- On the Customize your experience page, select No for Do you write code question.
- On the next page, select Skip to dashboard button.

- On dashboard, click on Get a Trial Number button

- On Your first Twilio Phone Number dialog, click on Choose this number button.
- On Congratulations dialog, click Done.
The trial number you got in the above step would be used by the Omnichannel agent to receive and send SMS messages to and from Omnichannel for Customer Service app.
- From the Twilio dashboard, note down your trial number, Account SID and Auth Token. This information is required later to configure SMS channel in Omnichannel for Customer Service.

Using your Twilio trial account you can send messages to verified numbers only. For testing purpose, you can add more mobile numbers to your trial account by selecting verified numbers link on the dashboard.
Create a queue
For this demonstration, we will route the incoming SMS conversations to Omni SMS Queue.
- Go to Dynamics 365 home (https://home.dynamics.com/)
- Login as Omnichannel Administrator or System Administrator
- Open Omnichannel Administration app.
- In the site map (left navigation), go to Queues & Users > Queues.
- Click on the New button on the command bar at the top
- On the summary tab, in the summary section, fill in the following information
- Name: Omni SMS Queue
- Priority: 3
- Click on the Save button to save the new queue. The Users (Agents) section will be shown for the new queue.
- Click on Add Existing User to open agents’ Lookup Records page.
- Select Omnichannel Agent 1 to add that agent to the queue.
- Click Add button. The agent would get added to the queue.

Create Work stream
- In the Omnichannel Administration site map, go to the Work Distribution Management > Work Streams.
- On the command bar, click on the New button
- On the Work Distribution tab, in the General information section fill in the following information:
- Name: Omni SMS work stream
- Channel: SMS
- Capacity: 30
- Auto-close after inactivity: 2 days
- Allow Automated Messages: Yes
- In the Work distribution section fill in the following information:
- Work distribution mode: Push
- Allowed Presences: Available, Busy
- Enable selecting from pushed based work streams: No
- Click Save button. Let the work stream remain open.

Define SMS settings and numbers
- Click on SMS Settings tab.
- Fill in the following information:
- SMS Provider: Twilio
- Account SID: Twilio ACCOUNT SID.
- Auth Token: Twilio AUTH TOKEN.
- Click Save button.

- Click on the SMS Numbers tab.
- Click on the New SMS Number button.
- On the General tab, fill in the following informatin:
- Number: Twilio phone number (that you get as a trial)
- Type: Long code
- Work Stream: Omni SMS work stream
- Click Save button. Let the work stream remain open.

Validate SMS settings
- Go back to the SMS Settings tab
- On the command bar, click on the Validate SMS Settings button.
- On the SMS Settings tab, in the Twilio account information section, confirm the following values:
- Last validation status: Success
- Last validated on: <Current date and time>

Add routing rule to work stream
- Click on the Routing Rules tab.
- Click on the Add button to add new rule time. A New Rule Item form will be displayed.
- On the General tab, in the General Information section, fill in the following information
- Name: Omni SMS Routing Rule
- Work Stream: Omni SMS work stream
- Queue: Omni SMS Queue
- Click Save button. Let the work stream remain open.
Do not set any conditions this time as we want all the incoming SMS conversation to route to the same queue.

Establish Twilio connection
- Click on the SMS Settings tab.
- In the Connection parameters section, copy the value in Twilio inbound URL field.
- Go to your Twilio dashboard (https://www.twilio.com/console)
- Go to verified numbers > Manage Numbers > Active Numbers
- Click on the SMS phone number. The Configure tab would appear.
- On the Configure tab, if you can’t see the Messaging section, scroll down to locate the section.
- In the Messaging section, in the A MESSAGE COMES IN field, paste the Twilio inbound URL.
- Click Save button.
Omnichannel configuration changes take up to 15 minutes to reflect. Allow that much time before start testing.
Test it out
- Log out as admin user or open different browser
- Go to Dynamics home (https://home.dynamics.com/)
- Sign in as Omnichannel Agent 1
- Open Omnichannel for Customer Service app. Agent’s home page would be opened.
- Confirm the presence indicator at the top right side of the page. It should be green (means agent is available)
- Now send an SMS to the Twilio trial number using the mobile phone you used to register a Twilio trial.
- Move back to the Omnichannel Agent 1 browser page. An incoming SMS notification would appear for the agent in few seconds.

- Click Accept. A conversation panel and a customer and case details would appear in a new session.
- Send a message back to the customer using the conversation panel. You would receive that message on your mobile phone’s SMS messaging app.

Next
In our next blog post we will try to put together all the features of Omnichannel for Customer Service to have you an idea about how beneficial it could be to implement Omnichannel for Customer Service for your organization.
How TechAir Group can help you
TechAir Group can help your organization in set up, implementing, training, customizing and extending your Microsoft Dynamics 365 Business Applications. To reach us, please fill our contact us form.
Leave A Comment