Brief Overview
This feature allows users to utilize pre-configured Salesforce connections directly within the console. This integration enhances the ActionBot's capabilities by automating Salesforce processes and dynamically retrieving data. As a result, it streamlines workflows and significantly improves the user experience.
How It Works
To use the salesforce connection users must:
-
Connect a Salesforce API connection
-
Create a salesforce choice question
1. Connect a Salesforce API connection
- Go to the connections page in the console

- Click + Add a connection
- Select which Salesforce environment to connect:
- Salesforce sandbox
- Salesforce production

- The Salesforce authorization page will open
- Sign in with the admin user's email and password

- Return to the connections page
- The new connection should now be added to the list
- Optional: Test the connection

2. Create a Salesforce question
The bot retrieves values (records/data) from Salesforce and offers them as suggestions for users to select as answers, allowing you to create conversations around them. Users can quickly find the correct record by typing to filter the options.
Note
This question type will be available only after at least one connection is established (see instructions above).
- Go to the conversations page in the console
- Click + Create a conversation

- Click the + Create button in the center of the conversation
- Click the Question conversation step

ActionBot Conversation Steps
Settings
- Enter a name for your question

- Click the question type dropdown
- Select Connection Salesforce

- Type your question that will appear to users
- Optional: Type the error message that will be shown to users if the bot is unable to retrieve an answer
- Optional: Adjust the amount of time that your conversation will be paused before playing the question

Salesforce connection
- Click the Connection type dropdown and choose one of the following options to select the source for the values:
- Click a preconfigured connection
- Click + Add New Sandbox Connection
- Click + Add New Production Connection

- Click the Account dropdown to choose the account from which to draw values

- Click the Value source dropdown to choose which Salesforce object contains the answers to your question
Value source example
- The bot will pull these values and present them as suggestions to your users. When editing an account, users must first select the account they want to edit. In this case, the object to select is Account, which will use the API to provide a list of available accounts for the user to choose from.

- Click the Data source dropdown to choose if the suggestions will be taken from:
- Records: The actual records of the object
- Field metadata: The possible values of a field

- Click the Display value by dropdown to choose which object field will be shown as suggestions to users
Tip
- Choose the field that best presents the answers to your question
- Typically, select the object's name

- Click the Matching field dropdown to choose the field that will be used for suggestions and the one that will be selected as the value
Matching field example
- If you select the Account object, set the Display as field to Name and the Matching Field to ID
- Users will see the names as suggestions, but the ID will be used as the selected value
- The ID can then be used in later steps, such as a URL redirect, to direct the user to the chosen Account

- Optional: Click Test to check your results

Additional suggestions
These suggestions will be shown to your users in addition to the suggestions coming from the Salesforce object.
- Optional: Enter additional suggestions to be shown to your users using the following options:
- Click Bulk add
- Enter suggestions individually in the text field
- Optional: Click Reorder to reorder how the suggestions are displayed

- Click the Additional suggestions position dropdown to select how the additional suggestions will be added to the suggestions:
- On top
- On the bottom
- Merged list

- Optional: Add a visual separator between the additional suggestions and the suggestions coming from the Salesforce object

Filter & sort values
Filter the records pulled from Salesforce to exclude unnecessary records and sort the ones that are returned. Use this option to filter out unnecessary records (values) by conditioning the records pulled form Salesforce.
How to add a filter:
- Click + Add new filter
- Enter the fields

- Click the Sort records by dropdown to organize them in a specific manner

Answer validations
Answer validations check user input against predefined criteria. If the input doesn't match the expected format, an error message is displayed.
- Click + Add new validation
- Enter the validation name
- Select the Comparison type
- Enter the value
- Click Save validation
