Integrate SalesForce Assist

Content on this page is for a product or feature in controlled release (CR). If you are not part of the CR group and would like more information, contact your CXone Account Representative.

Before completing the tasks on this page, be sure that the prerequisites for the integration have been met.

Create a Script

Required permissions: Studio Script View, Create/Edit

Use the following samples as a foundation to create the scripts to integrate your agent assist application into CXone. Inbound and outbound interactions require separate scripts. The following image shows the essential actions for an inbound script:

This image shows the essential actions for an outbound script: 

To complete the configuration of your script: 

    • Add initialization snippets to the script using Snippet actions. You can do this to customize your agent assist application.
    • Reconfigure the action connectors to ensure proper contact flow and correct any potential errors.
    • Complete any additional scripting and test the script.

Generate Private and Public Key for Salesforce

You need a public and private key to use with your SalesForce Assist integration. When you configure the app in Agent Assist Hub, you need the private key. Generating the keys requires you to download and install a third-party SSL application.

  1. Download the Open SSL installer A square with an arrow pointing out from the center to the upper right corner. and install it on your computer.
  2. On your computer, create a new folder on the C:\ drive.
  3. Click the Windows Start menu and type CMD to locate the Command Prompt. Click Open to start the Command Prompt application.
  4. Type cd .. to move back a folder. Repeat until you have navigated to the root of C:\ drive.
  5. In the Command Prompt window, enter the following command:

    openssl genrsa -des3 -passout pass:password -out server.pass.key 2048

    This creates a server.pass.key file in the folder you created.

  6. Enter the following command:

    openssl pkey -passin pass:password -in server.pass.key -out server.key

    This creates a server.keyfile in the folder you created. This is the private key. You need this key when you configure SalesForce Assist in Agent Assist Hub.

  7. Enter the following command:

    openssl req -new -key server.key -out server.csr

    This creates a server.csr file in the folder you created. The application prompts you to answer some questions. Press Enter on your keyboard to answer each one.

  8. Enter the following command:

    openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt

    This creates a server.crt file in the folder you created. This is your public key.

  9. Enter the following command:

    openssl pkcs12 -export -out server.pfx -inkey server.key -in server.crt -password pass:password

    This creates a server.pfx file in the folder you created.

  10. Enter the following command:

    keytool -importkeystore -srckeystore server.pfx -srcstoretype pkcs12 -srcalias 1 -srcstorepass password -destkeystore server.jks -deststoretype jks -deststorepass password -destalias NICE_Cxone_Service_Cloud_Voice

    Ensure that the underlined names are entered correctly.

    This creates the server.jks file in the folder you created.

    Keytool is a command line tool installed as part of Java. If the keytool command doesn't work, you may need to download A square with an arrow pointing out from the center to the upper right corner. and install Java and then install Keytool. Refer to Java documentation for more information.

Set Up the Integration in Salesforce

  1. Log in to Salesforce.
  2. Navigate to Setup > Certificate and Key Management.
  3. Delete any existing certificates that have the name NICE_Cxone_Service_Cloud_Voice.
  4. Click Import from a Keystore.
  5. Select server.jks from the path C:\[your folder].
  6. Enter password in the Password field.
  7. Click Save.
  8. Verify the Label and Unique Name are both set to NICE_Cxone_Service_Cloud_Voice. If you see any errors, contact your CXone Account Representative.
  9. In Salesforce, navigate to SetupPartner Telephony Contact Centers.
  10. Verify that the Display Name is NICE CXone for Service Cloud Voice.
  11. On the NICE CXone for Service Cloud Voice page in Salesforce, click Edit and select Open.
  12. Use Windows Explorer to open the server.crt file. Copy the contents of the file and paste the key in the Public Key field and click Save.

Add an App to Agent Assist Hub

Required permissions: Automation & AI > Launch Automation & AI

You need to add an app for SalesForce AssistExpert Assist to Agent Assist Hub. This establishes a connection between CXone and your agent assist provider.

  1. Click the app selector and select Other > Automation & AI and then click Agent Assist Hub.
  2. Click Add Agent Assist App.

  3. Enter an Agent Assist App Name and click SalesForce AssistExpert Assist in the list of agent assist providers.

  4. Click Next.

  5. Complete the Configuration page using the information in the following table.

  6. Click Create.

  7. Click Close.

Create a Transcription Profile

Required permissions: Automation & AI > Launch Automation & AI

A transcription profile defines the transcription options you want to use, including the language to transcribe. Complete these steps from the Configuration page for SalesForce Assist in Agent Assist Hub.

  1. On the Create New Agent Assistant page in Agent Assist Hub, click Add or Edit Continuous Stream Transcription Profile.
  2. Do one of the following:
    • Click the name of an existing profile to modify it and skip to step 6.
    • Click Add Transcription Profile and continue with step 3.
  3. Enter a Transcription Profile Name. To differentiate this profile from your other profiles, use a name that highlights what makes this profile different. For example, you could name the profile for its intended use, the provider, or the language of the profile.
  4. Under Select Provider, click the transcription provider to use. You can choose from Google Transcription or CXone Transcription.
  5. Click Next.
  6. On the Configuration page, complete the fields to define the transcription options for this profile.

  7. Click Add.

Assign the SalesForce Assist App to an Action

Required permissions: Studio Script View, Create/Edit

If you haven't done so already, you need to assign the app to the Agent Assist actionClosed Performs a process within a Studio script, such as collecting customer data, playing a message or music, or routing a contact to an agent. in your Studio script.

  1. In Studio, open the script you want to use.
  2. If you haven't done so already, add the Agent Assist action to the correct location in your script.

  3. Double-click the Agent Assist action to open Agent Assist Hub.

  4. In the left column, click the checkmark in a circle A light gray checkmark inside a light gray circle. next to the agent assist application or profile you want to assign to this script.
  5. Click Close.