<h2>Conversational SMS Integration with Twilio</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Conversational SMS Integration with Twilio" /><meta name="abstract" content="Host Virtual Agent conversations on Twilio SMS to chat with virtual agent or live agents. Use the Conversational SMS Integration with Twilio app, available from the ServiceNow Store, to associate your instance with SMS Twilio." /><meta name="description" content="Host Virtual Agent conversations on Twilio SMS to chat with virtual agent or live agents. Use the Conversational SMS Integration with Twilio app, available from the ServiceNow Store, to associate your instance with SMS Twilio." /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/task/integ-va-consumer-apps.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/capabilities-bundle-landingpage.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/conversational-interfaces/concept/ci-landing-page.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/virtual-agent-landing-page.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/integrate-virtual-agent.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/va-integration-messaging-apps.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/task/install-sms-twilio.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/task/configure-twilio-adapter.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/using-sms-integ-twilio.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/task/configure-sms-auth.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-02-01" /><meta name="mini-toc" content="yes" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="sms-twilio-store-app" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Conversational SMS Integration with Twilio</title></head><body id="sms-twilio-store-app"> <div class="breadcrumb"><a class="link" href="../../../administer/general/concept/capabilities-bundle-landingpage.html" title="Extend the Now Platform with additional applications and features.">Extend Now Platform capabilities</a> > <a class="link" href="../../../administer/conversational-interfaces/concept/ci-landing-page.html" title="Enable users to engage with live agents, virtual agents, or both using ServiceNow Conversational Interfaces. These interfaces provide tools for creating and managing optimal conversational experiences for users in the chat channels that they prefer.">Conversational Interfaces</a> > <a class="link" href="../../../administer/virtual-agent/concept/virtual-agent-landing-page.html" title="Unlock your enterprise productivity with ServiceNow Virtual Agent. Provide your employees and customers with a friendly messaging interface, featuring pre-built conversations powered by artificial intelligence.">Virtual Agent</a> > <a class="link" href="../../../administer/virtual-agent/concept/integrate-virtual-agent.html" title="Integrate and extend the capabilities of Virtual Agent by connecting to your employees and customers where they already are. They are engaged in web portals, Now Mobile apps, and collaboration tools such as Slack, Microsoft Teams, Facebook Messenger consumer app, Workplace enterprise messaging app, and any other popular chat or messaging app.">Integrating Virtual Agent with other channels</a> > <a class="link" href="../../../administer/virtual-agent/concept/va-integration-messaging-apps.html" title="Enable users to run Virtual Agent bot conversations in supported third-party messaging apps. Use the Conversational Integration apps for Slack, Microsoft Teams, and Workplace that are available from the ServiceNow Store to configure these messaging apps on your ServiceNow instance.">Virtual Agent integration with messaging apps</a> > </div> <h1 class="title topictitle1" id="ariaid-title1"><span class="ph">Conversational SMS Integration with Twilio</span></h1> <div class="body conbody"><p class="shortdesc">Host <span class="ph">Virtual Agent</span> conversations on <span class="ph">Twilio</span> SMS to chat with virtual agent or live agents. Use the <span class="ph">Conversational SMS Integration with Twilio</span> app, available from the <span class="ph">ServiceNow Store</span>, to associate your instance with SMS <span class="ph">Twilio</span>.</p> <div class="section" id="sms-twilio-store-app__section_tbk_1qz_2mb"><h2 class="title sectiontitle">Capturing information from a user in an SMS chat conversation</h2> <div class="p">Conversational SMS Integration with Twilio enables users to initiate conversations with <span class="ph">Virtual Agent</span> by messaging your <span class="ph">Twilio</span> phone number.<div class="note"><span class="notetitle">Note:</span> Do not use the same ServiceNowTwilioDirect or <span class="ph">Twilio</span> Notify phone number for <span class="ph">Conversational SMS Integration with Twilio</span>. Instead, use separate <span class="ph">Twilio</span> numbers for <span class="ph">Conversational SMS Integration with Twilio</span> and ServiceNowTwilioDirect.</div> </div> <div class="p"><div class="fig fignone" id="sms-twilio-store-app__fig_d5d_ypb_kyb"><span class="figcap"><span class="fig--title-label">Figure 1. </span>Example SMS conversation with <span class="ph">Virtual Agent</span></span> <img class="image" id="sms-twilio-store-app__image_qn3_bqz_2mb" src="../images/sms-twilio-app.png" height="480" width="270" alt="The user texts, "I have an issue." Virtual Agent asks for additional information and offers 4 choices for the user to select: Product issue, Order support, Billing, and Other." /> </div> </div> <p class="p">If a bot transfers the conversation to a live agent, the agent can respond to SMS messages in <span class="ph">Agent Workspace</span>.</p> <p class="p">After you set up the <span class="ph">Conversational SMS Integration with Twilio</span>, you can create SMS conversation topics in <span class="ph">Virtual Agent Designer</span>. For more information on using the tool, see <a class="xref" href="../reference/conversation-designer-virtual-agent.html" title="The Virtual Agent Designer is a diagram tool for creating and managing topics, which are blueprints for conversations between a virtual agent and user. You can design topics that help your users resolve common work issues or guide them through self-service tasks.">Getting started with Virtual Agent Designer</a></p> </div> <div class="section" id="sms-twilio-store-app__section_gfh_cqz_2mb"><h2 class="title sectiontitle">Supported controls</h2> <p class="p">The Conversational SMS Integration with Twilio does not support all the available controls in <span class="ph">Virtual Agent Designer</span>.</p> <div class="p">The following user input controls are supported in <span class="ph">Twilio</span> SMS conversations: <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sms-twilio-store-app__table_fq2_gqz_2mb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Supported user input controls</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d1206958e159">User input control</th><th class="entry cellrowborder" style="vertical-align:top;" id="d1206958e162">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e159 ">Text</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e162 "><p class="p">User enters a plain text string in the conversation.</p> <p class="p"><img class="image" id="sms-twilio-store-app__image_hq2_gqz_2mb" src="../images/sms-text-input.png" alt="User enters text in a conversation: "I need help!"" /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e159 ">Static Choice</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e162 "><p class="p">User selects an item from a predefined list.</p> <p class="p"><img class="image" id="sms-twilio-store-app__image_nkk_q4x_gmb" src="../images/sms-user-static-choice.png" alt="User enters "CHANGE." The bot displays 3 additional timeslots and an "Other" option. The user enters the number for a new timeslot. Appointment is confirmed." /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e159 ">Dynamic Choice</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e162 "><p class="p">User selects an item from a list that is created dynamically. For example, the user can select from a list of cases that they opened.</p> <p class="p"><img class="image" id="sms-twilio-store-app__image_n3s_t4x_gmb" src="../images/sms-user-ref-choice.png" alt="The bot displays the user's 7 open cases. The user enters 6, and the bot provides a link to view that case." /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e159 ">Boolean</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e162 "><p class="p">User enters a Boolean response to the bot. For example, the user can reply "Yes" or "No" in the conversation.</p> <p class="p"><img class="image" id="sms-twilio-store-app__image_jq2_gqz_2mb" src="../images/sms-boolean-input.png" alt="The bot congratulates the user on their purchase and offers to display more information. The user enters "Yes," so the bot provides a link to a KB article." /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e159 ">File picker</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e162 ">User sends a file to the bot.<div class="note"><span class="notetitle">Note:</span> <span class="ph">Conversational SMS Integration with Twilio</span> doesn't support all file types. Only images can be sent in an SMS conversation.</div> <p class="p"><img class="image" id="sms-twilio-store-app__image_lq2_gqz_2mb" src="../images/sms-image-input.png" alt="The bot displays an example image that indicates the serial number location. The user uploads a photo of their product's serial number." /></p> </td></tr></tbody></table> </div> </div> <p class="p">For more information on configuring user input controls, see <a class="xref" href="../reference/va-user-inputs.html" title="Use the collection of input controls provided by Virtual Agent Designer to prompt and capture information from the user in a conversation.">Virtual Agent Designer user input controls</a>.</p> <div class="p">The following bot responses are supported in <span class="ph">Twilio</span> SMS conversations: <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sms-twilio-store-app__table_mq2_gqz_2mb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 2. </span>Supported bot responses</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d1206958e292">Bot response</th><th class="entry cellrowborder" style="vertical-align:top;" id="d1206958e295">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e292 ">Text</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e295 ">Bot sends a plain text string to the user.<p class="p"><img class="image" id="sms-twilio-store-app__image_oq2_gqz_2mb" src="../images/sms-bot-text.png" alt="Bot sends a text: "Your order is scheduled for install on Dec 25th between 10am and 1pm. Is this ok?" The user enters YES, and the bot confirms their choice." /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e292 ">Image</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e295 ">Bot sends an image to the user.<p class="p"><img class="image" id="sms-twilio-store-app__image_qq2_gqz_2mb" src="../images/sms-bot-image.png" alt="The bot sends an image that shows the user where to find their product's serial number." /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e292 ">Link</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e295 ">Bot sends a web link to the user.<p class="p"><img class="image" id="sms-twilio-store-app__image_sq2_gqz_2mb" src="../images/sms-bot-link.png" alt="The bot sends an appointment confirmation to the user, who enters CHANGE. The bot responds with a link where the user can view new appointment options." /></p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e292 ">Card</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1206958e295 ">Bot sends selected information from a record on your instance. <p class="p"><img class="image" id="sms-twilio-store-app__image_uq2_gqz_2mb" src="../images/sms-bot-card.png" alt="When the user says their router is on fire, the bot creates a case and sends the card with the number, priority, assigned agent, and a link." /></p> </td></tr></tbody></table> </div> For more information on configuring bot responses, see <a class="xref" href="../reference/va-bot-responses.html" title="Virtual Agent Designer offers various controls for displaying bot responses in a conversation. Because the bot responses occur in third-party platforms, the format for each output may vary.">Virtual Agent Designer bot responses</a>.</div> <p class="p">Live agents can use the Text, Card, and Image response controls to reply to users in SMS conversations.</p> </div> <div class="section" id="sms-twilio-store-app__section_ims_3lg_ppb"><h2 class="title sectiontitle">User subscriptions for SMS update notifications</h2> <div class="p">Beginning with version 1.1.1, your users with <span class="ph">ServiceNow</span> accounts (sys_user profiles) can choose to start or stop receiving SMS updates in their conversations. <div class="note"><span class="notetitle">Note:</span> Notifications in messaging channels can be sent to users with ServiceNow accounts. Other recipients, such as consumer and customer contacts, are considered to be guests and cannot receive notifications on messaging channels.</div> </div> <div class="p">To comply with privacy regulations, user notifications are turned off by default. Users can opt in or change their settings in the following ways:<ul class="ul" id="sms-twilio-store-app__ul_fwv_41n_1qb"><li class="li">To check SMS notification settings for the account, send this text: Notification</li><li class="li">To receive SMS notifications, send this text: START</li><li class="li">To stop receiving SMS notifications, send this text: STOP</li></ul> </div> <div class="fig fignone" id="sms-twilio-store-app__fig_imq_wm2_cqb"><span class="figcap"><span class="fig--title-label">Figure 2. </span>Changing SMS notification settings</span> <img class="image" id="sms-twilio-store-app__image_ad4_5n2_cqb" src="../images/sms-notifications-start-stop.png" alt="The user enters "notifications" to view settings, which are currently on. The user enters STOP, and the bot unsubscribes them. When the user enters START, the bot confirms the re-subscription." /> </div> <p class="p">To learn more about <span class="ph">Virtual Agent</span> notifications, see <a class="xref" href="configuring-va-notifications.html" title="Send ServiceNow notifications directly to users via the Virtual Agent chatbot on supported messaging channels. Notifications can be simple informational messages for review, or actionable messages with buttons that users can select to perform certain actions.">Configuring Virtual Agent notifications</a>.</p> <p class="p">For details about creating content for a messaging notification, see <a class="xref" href="../task/define-va-notif-contents.html" title="Create the content for a Virtual Agent notification delivered in a chat or messaging channel.">Define Virtual Agent notification contents</a>.</p> </div> </div> <div class="related-links"> <ul class="ullinks"><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/task/install-sms-twilio.html">Install Conversational SMS Integration with Twilio</a></strong><br /> You can install the <span class="ph">Conversational SMS Integration with Twilio</span> (sn_va_sms_twilio) application to host <span class="ph">Virtual Agent</span> conversations in the SMS <span class="ph">Twilio</span> application.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/task/configure-twilio-adapter.html">Set up the Conversational SMS Integration with Twilio</a></strong><br /> Integrate <span class="ph">Twilio</span> with <span class="ph">Virtual Agent</span> so that you can engage in SMS bot conversations.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/using-sms-integ-twilio.html">Using Conversational SMS Integration with Twilio</a></strong><br /> Enable a requester to converse with an agent using the SMS conversations.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/task/configure-sms-auth.html">Configure SMS authentication</a></strong><br /> Authenticate all users using <span class="ph">Conversational SMS Integration with Twilio</span> with Soft PIN (SN) and Google authenticators as the 2-factor authentication mechanisms for account linking.</li></ul> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../administer/virtual-agent/task/integ-va-consumer-apps.html" title="Integrating consumer messaging apps such as LINE, Twilio, WhatsApp, Google Business Messages, and Facebook Messenger with ServiceNow Virtual Agent associates the app with your ServiceNow instance to facilitate end-to-end conversations.">Integrating Virtual Agent with consumer messaging apps</a></div> </div> </div></body></html></div>