Salesforce Einstein integration

Modified on Tue, 23 Apr at 10:29 PM

How to set up integration between Talkative and Salesforce Einstein chatbot

Pre-requisites: 

• Talkative Enterprise licence package

 

We generally advise Einstein integration be completed in the following steps:
i. Install Talkative managed package in Salesforce, as per Salesforce integration guide

ii. Modify Talkative Connected App (step A. below)

iii. Complete general Talkative-Salesforce connection (step B. below)

iv. Configure Einstein in talkative (step D. below)

(step C. can be done at any point)

A. Modify/Create Talkative Connected App

In your Salesforce org, you’ll need to grant extra permissions to the connected app associated with your normal Salesforce integration. 

  1. Go to the Setup area in your Salesforce org.
  2. In the sidebar, search for “App manager”.
  3. Click edit on the Talkative connected app dropdown.
  4. Add the “chatbot_api” permission.

AT THIS POINT, IF YOU HAVE A TALKATIVE SALESFORCE INTEGRATION, YOU WILL NEED TO DELETE IT AND RECREATE IT.

B. Creating Talkative Engage salesforce Integration

A normal Salesforce integration is required. Create/recreate the integration. Documentation here: Salesforce integration guide

C. Creating a chatbot in Salesforce

  1. Go into the Setup area and find the card titled “Get Started With Einstein Bots”. Click “Get Started” button.
  2. Turn on the switch at the top right of the page to enable Einstein bots.
  3. You may be prompted with a terms modal. Tick the box and click “Try Einstein”. A new index list will appear at the bottom of the page.
  4. In the new index section, click “Create a new bot”. A modal wizard should appear.
    1. Choose Standard bot, click Next.
    2. Choose Start from Scratch, click Next.
    3. Give your bot a meaningful name and select language, click Next.
    4. Optionally fill in the greeting options (eg welcome message and menu items), click Next.
    5. In the next modal screen you are given the option to link to an existing deployment. Do not do this as it may adversely affect the integration. Click Next.
    6. In the next modal screen, click Proceed to start the automated generation process. When it’s done, click Finish.
    7. The modal should disappear and a new tab will open to the settings page for your new chatbot.

  5. Create a connection for the bot.
    1. In the chatbot settings area, there should be a dropdown menu in the top-left corner. Select “Overview” from the dropdown. 
    2. In the overview page, find the Connections card and click “Add”.
    3. In the newly opened modal, Choose API as the Connection option. New options should appear in the modal.
    4. Set an integration name (not overly important).
    5. Set the Connected App option to the connected app associated with your normal Salesforce integration.
    6. Save “Runtime Base URL” and “ForceConfig Endpoint” in a separate note. These values will be used later in the integration process.
    7. Click Save.

  6. In the top right corner of your chatbot settings area, click “Activate”. Note: always remember to activate your bot after making changes, otherwise the integration will not work.
  7. Obtain the bot ID from the URL in the chatbot settings area. It will be a URL param in the URL bar. Save this value in your notes for future reference. 
  8. Obtain your Org ID.
    1. Navigate to the Setup area of your org.
    2. Search for “Company” in the sidebar and select “Company Information” from the results.
    3. On the company information page, find “Salesforce.com Organization ID” and copy the value to your notes.

D. Linking the Einstein bot to Talkative

  1. Navigate to the general settings page in the Talkative platform.
  2. If you have an existing Salesforce integration, you should be able to see a card with the following heading “Salesforce Einstein Chatbot Integrations”. If you can’t see this card, check you have a working Salesforce integration. In this card, click “Manage Einstein Chatbots”.
  3. On the following index page, click “Create Einstein Chatbot”. A new form should appear.
  4. Fill in the form as follows:
    1. Queue Name is internal only, and will be useful for labelling the chatbot. This should be something memorable, such as "Sales chatbot - French" or "Tech Support chatbot".
    2. Queue Email will be used for sending emails (if enabled) from the chatbot. For example if the chatbot is set up to trigger an email to a queue if a customer interacts out-of-hours.
    3. Chatbot First name will be the chatbot's name that is visible to the customers talking to the chatbot within the website/app widget.
    4. Runtime Base URLcan be found in your saved notes.

    1. ForceConfig Endpoint can be found in your saved notes.
    2. Bot ID can be found in your saved notes.

    1. Org ID can be found in your saved notes.
  5. Once you have finished filling in appropriate values, click “Store”.

E. Connect chatbot to Salesforce user/queue

Your chatbot needs to be connected to a Salesforce user or queue. If you don't already have one set up, perform the following steps:

  1. In your Salesforce org, create a queue that will be associated with the chatbot.
    1. In the Setup area, use the sidebar search to find "queues". Select the Queues menu option.
    2. At the top of the index, click New.
    3. In the create page, enter the following details:
      1. Label: a meaningful label for the queue.
      2. Queue Name: the api name for the queue.
      3. Supported Objects: Add the "Interaction" object to the Selected objects side of the picklist
    4. Click Create.
  2. In the Talkative platform, navigate to your Salesforce integration settings page.
  3. In the User Connections section, connect your Einstein chatbot user to the Salesforce queue you just created.

F. Add transfer code to Einstein chat config

In order to get Einstein to transfer to a Talkative queue, please use the following code snippet, substituting the variables as required:

// snippet:

__TALKATIVE_INTERNAL__{"action":"transfer","queueUuid":"TARGET_QUEUE_UUID"}

// For example, a fictional queue ID would be:

__TALKATIVE_INTERNAL__{"action":"transfer","queueUuid":"538afc06-d8ee-481e-9f4d-b2f08ba32cb4"}

image (41)

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article