OBLYTECH Logo
OBLYTECH Logo

Virtual Agent in WhatsApp, SMS, Twilio and Voice Channels

Virtual Agent reaches requesters through WhatsApp, SMS and voice integrations. WhatsApp Cloud API and Twilio messaging routes connect a business number to authentication records and a provider identity. Voice uses separate contact center or assistant integrations. Choose the route first, then verify credentials, account linking and topic compatibility before opening the channel to users.

Choose the Virtual Agent messaging or voice route

WhatsApp supports two distinct configurations: a business number connected through WhatsApp Cloud API, or a WhatsApp-enabled Twilio number. SMS through Twilio uses a separate application and incoming message adapter. SMS through Amazon End User Messaging is another route. Phone conversations use voice integrations, including Conversational IVR with Amazon Connect.

A working topic in web chat does not establish that its controls render correctly in a messaging app. Start with the Virtual Agent overview when deciding which conversations belong in the assistant, then choose channels around the requester’s task.

Conversational Integration apps for Slack, Microsoft Teams, other consumer apps and voice apps are not supported on on-premises instances. Check your deployment type and release before planning installation. The setup below follows the Brazil configuration; available applications and the Assistant Designer interface depend on the instance configuration.

Check entitlements and assign setup actions

For WhatsApp Cloud API, obtain entitlements and install Integration Hub and Conversational Integration with WhatsApp (WhatsApp Cloud API). Twilio-powered WhatsApp also needs the Twilio spoke and its own Conversational Integration application. Connect the Twilio number to a WhatsApp Business profile and set up the spoke before configuring authentication.

Installing the Twilio-powered WhatsApp application requires admin. Its dependencies include the Twilio spoke, Conversational Custom Chat Integration, IntegrationHub Runtime, Complex Object and Agent-Initiated Messaging Interface. Review their installation state before continuing. The spoke provides Integration Hub actions for creating, updating, deleting and looking up Twilio records.

Installing Conversational SMS Integration with Twilio requires admin or virtual_agent_admin. SMS setup requires Integration Hub, the Twilio spoke, Conversational SMS Service Channel and the SMS integration application, with valid entitlements. Confirm that Conversational Custom Chat Integration is active.

The WhatsApp Cloud API setup, Twilio-powered WhatsApp setup and Twilio SMS setup procedures each require external_app_install_admin or va_admin. SMS authentication configuration separately requires virtual_agent_admin or admin. Assign these actions explicitly rather than assuming installation access covers authentication changes.

Configure WhatsApp Cloud API credentials and routing

Collect identifiers and verify the webhook

Create the Meta developer app. From App Settings > Basic, record the App Secret. Under WhatsApp > API Setup, select the sending number and record its Phone number ID. Generate a system user access token in Meta Business Manager with the required permissions. Keep these values distinct: the number ID identifies routing, while the secret and token authenticate messages.

In sys_properties.list, open sn_va_whatsapp.webhook_verify_token and save a chosen secret. In Meta’s WhatsApp configuration, enter the instance’s WhatsApp adapter callback and the same Verify token. Select Verify and save, then enable Subscribe for message events. Treat successful webhook verification as one checkpoint, followed by actual message testing.

Create the authentication and provider records

A Hash Message Verification record stores the App Secret for incoming messages. A Token Verification record stores the system user access token for outbound authentication headers. Record their names before creating Message Auth.

In Message Auth, set Provider to WhatsApp and fill in Group name and Service Portal for the intended service context. Set Inbound message verification to the hash record and Outbound message verification to the token verification record. Outbound service token is a separate field; do not confuse it with the outbound verification reference.

In sys_cs_provider.list, open VA Whatsapp Adapter Provider. Add a Provider Channel Identity with a descriptive Name, the Phone number ID as Inbound ID, and the Message auth record. Add a Provider Channel Identity Property named display_phone_number whose Value is the actual number associated with that ID.

Configure the provider’s trusted media domains for Meta media downloads. Keep a separate attachment test in the acceptance checklist: a text reply does not demonstrate that media downloads work. For the wider connection design, see Virtual Agent integration patterns.

Configure WhatsApp through Twilio

Copy the authentication token from the Twilio console’s Project Info pane. Under Programmable Messaging > Senders > WhatsApp Senders, select the WhatsApp-enabled number. In the Configure WhatsApp Number dialog, set A MESSAGE COMES IN to the instance’s Twilio WhatsApp adapter webhook, then select Configure.

Create a Hash Message Verification record whose Secret is the Twilio authentication token. Create Message Auth with Provider set to Twilio, the intended Group name and Service Portal, and both Inbound message verification and Outbound message verification referencing that hash record.

Open the Twilio provider corresponding to WhatsApp in Provider Channels. Add a Provider Channel Identity with the Twilio number as Inbound ID, including the plus sign and country code, and select the Message auth record. This differs from Cloud API, where Inbound ID is the Phone number ID.

For help planning this work, see ServiceNow implementation.

Configure Twilio SMS and account linking

Create a Hash Message Verification record with the Twilio authentication token as Secret. Create Message Auth with Provider set to Twilio. Leave Group name, Service Portal and Outbound service token blank. Set both message verification references to the hash record.

Navigate to Conversational Interfaces > SMS integration with Twilio and create a Messaging Provider Application. Enter Name, Phone Number including the plus sign and country code, and Message auth. In the Twilio console, open the same active number and set its Messaging webhook to the instance’s SMS Twilio adapter.

For account linking, open VA SMS Twilio Adapter Provider and select Allow account linking. Use Verification question and MFA. The automatic link action becomes sn_va_sms_twilio.va_sms_auto_link_account. Authentication combines Soft PIN with an MFA code, with Google authenticator as the default MFA method.

Configure verification_question_id, two_factor_methods and mfa_question_id together. Changing the two-factor method to SMS also requires the corresponding SMS verification type identifier. Match the incoming mobile number to the user’s mobile phone number in the User record, and enroll the user’s Soft PIN and authenticator.

Successful authentication elevates the session to the authenticated user; failed input can leave the conversation running as a guest. Test the guest path separately so access to record-related topics is deliberate. Authentication also applies when a user acts on an actionable SMS notification.

Validate topics and isolate delivery failures

In Assistant Designer’s Asset library, open Topic Properties and set applicable custom channels in Channels under Advanced properties. Review warnings on the Properties and Flow views and affected node property sheets. Replace unsupported controls or branch the flow to use supported controls for that channel.

To exclude a topic, use Who can access this topic under Advanced properties and add a condition based on vaContext.deviceType. This visibility change requires virtual_agent_admin or admin and administrator access for third-party applications. Publishing deploys the topic to messaging channels except those excluded by its condition.

Run acceptance tests in order: inbound delivery, outbound response, account linking, topic access, supported controls and live-agent conversation. Record the point of failure before changing credentials. A message that reaches the assistant but fails inside a topic needs a different investigation from a message that never reaches the instance. Use the Virtual Agent troubleshooting guide for the next investigation.

Voice channels need a separate implementation decision

Conversational IVR connects third-party contact center applications to Virtual Agent. The Amazon Connect integration enables bot conversations over the phone. The Alexa integration connects requesters through the company’s Alexa account. These integrations appear under legacy Virtual Agent for NLU voice channels in Brazil. Identify the installed application and intended voice experience before treating messaging setup as a reusable voice configuration.

Questions about channel rollout exceptions

Why does a fourth incorrect Soft PIN attempt need special investigation?

SMS authentication locks a user out after three consecutive incorrect Soft PIN entries within 24 hours. Check that condition before treating another failed attempt as a delivery problem.

Can WhatsApp use synthesized responses with ServiceNow Otto?

Brazil’s messaging channel matrix lists Otto support for WhatsApp and SMS/Twilio, with synthesized responses unsupported for those channels. Include the intended response style in channel acceptance criteria.

Where can a designer inspect available channels?

Use the filter in Assistant Designer’s Asset library or inspect the Messaging Channels table, sys_cs_channel. Compare that inventory with the channels selected on the topic.

Should demo data be loaded into the rollout instance?

The Twilio-powered WhatsApp installation offers Load demo data when sample records are available. Reserve that choice for a development or test instance where sample conversations can be evaluated before production configuration.