{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":23470,"path":"intelligent-experiences/integrate-voice-service-with-nice.md","title":"Integrate ServiceNow voice assistant with Nice CXone","bundle":null,"doc_type":null,"release":"australia","body":"\n# Integrate ServiceNow voice assistant with Nice CXone\n\nEnable users to get support from AI voice agents by integrating a ServiceNow voice assistant with Nice CXone.\n\n## Before you begin\n\n-   Create a voice assistant. See [Create an AI voice assistant](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/create-an-ai-voice-service.md) for more information.\n-   Access to your CXone account with permissions to configure SIP trunks.\n-   Nice API credentials, including the API endpoint, token endpoint, access key ID, access key secret, client ID, and client secret. Work with your Nice account team to obtain the access key ID and secret. See the [CXone developer documentation](https://developer.niceincontact.com/Documentation/GettingStarted) for more information.\n\nRole required: sn\\_aia.admin\n\n## About this task\n\nConnect your CXone contact center to a ServiceNow voice assistant using the Session Initiation Protocol \\(SIP\\) communication channel. After the integration is configured, CXone routes calls to the ServiceNow SIP endpoint, where the AI voice agent handles the interaction. When call handling is complete, the integration supports transferring the caller to a live agent queue using the SIP REFER transfer method.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Conversational Interfaces** &gt; **Assistant Designer** &gt; **Assistants**.\n\n2.  Find the voice assistant that you want to connect to CXone and select **Edit**.\n\n3.  Select the **Settings** tab.\n\n4.  Select **Communication channels** from the guided setup navigation.\n\n5.  In the **Provider application** field, select the provider application to deploy the voice assistant to.\n\n6.  Select the **Telephony provider** tab.\n\n7.  From the **Communication channel** dropdown, select **Session Initiation Protocol \\(SIP\\)**.\n\n8.  From the **CCaaS provider** dropdown, select **Nice**.\n\n    Enter the values in the **Nice API credentials** section.\n\n    |Field|Description|\n    |-----|-----------|\n    |API endpoint|The CXone API base URL. Must be a valid Nice domain, such as `https://cxone.niceincontact.com` or `https://cxone-gov.niceincontact.com`.|\n    |Token endpoint|The CXone OAuth token URL used to generate authentication tokens. Must be a valid Nice domain.|\n    |Username|The access key ID from your CXone account. Work with your Nice account team to obtain this credential.|\n    |Password|The access key secret from your CXone account. This value is only displayed once when generated. Copy it before navigating away.|\n    |Client ID|The OAuth client ID from your CXone account.|\n    |Client Secret|The OAuth client secret from your CXone account.|\n\n    After saving the credentials, copy the generated **x-snc-param** value from the page. This is a token that authenticates requests from CXone to the voice assistant. Paste it in your CXone account when configuring the SIP trunk.\n\n9.  Enable context data persistence for the voice service.\n\n    1.  Navigate to `sys_now_assist_deployment_config_attributes.list` and check whether a `persist_context_data` attribute exists for your voice service.\n\n    2.  If the attribute exists, open it and set **Value** to `true`.\n\n        \\[Omitted image \"voice-agents-persist-context-data.png\"\\] Alt text: The persist\\_context\\_data configuration attribute record for the voice service with its value set to true.\n\n    3.  If the attribute does not exist, navigate to `sys_now_assist_deployment_config.list`, open your voice assistant's deployment configuration record, and copy its `sys_id`.\n\n        To copy the `sys_id`, right-click the record header bar and select **Copy sys\\_id**.\n\n    4.  Navigate to `sys_now_assist_deployment_config_attributes.list`, click **New**, set **Deployment Configuration** to the `sys_id` you copied, **Name** to `persist_context_data`, and **Value** to `true`, then click **Submit**.\n\n    When `persist_context_data` is enabled, the voice assistant saves the session context as an `interaction_context` record named `bot_context_data` after each call. For details about the stored fields, see [Bot context data](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/voice-agent-reference.md).\n\n10. In your CXone account, configure the SIP trunk using the **ServiceNow SIP FQDN** and pass the **x-snc-param** value copied in the previous step as a SIP header on outbound calls to the voice assistant.\n\n    For SIP trunk configuration details including IP addresses and FQDNs per region, see [KB3023612](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB3023612). For CXone-side SIP trunk configuration steps, see the [CXone developer documentation](https://developer.niceincontact.com/Documentation/GettingStarted).\n\n\n## Result\n\nCXone is connected to your ServiceNow voice assistant. Incoming calls routed through CXone are handled by the AI voice agent, which responds with a greeting and processes the caller's requests. When call handling is complete, the voice assistant transfers the caller back to CXone using the REFER method.\n\n## What to do next\n\nConfigure the **Onsignal** event action flow in your CXone account. When a voice agent call ends or transfers to a live agent, ServiceNow automatically notifies CXone by sending a signal to the `/interactions/{contactId}/signal` API endpoint, which triggers the Onsignal event action flow. For configuration details, see the [CXone developer documentation](https://developer.niceincontact.com/Documentation/GettingStarted).\n\n**Parent Topic:**[Integrating voice assistant with CCaaS provider](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/integrating-voice-service-with-ccaas-providers.md)\n\n"}}