Learn how to get started with the Einstein Bot channel connector framework to send messages between your external messaging channel, such as Twitter or Slack, and the Salesforce bot.
You can create an app that uses the channel connector framework with this Maven archetype command. Set
archetypeVersion to the most recently released version of the Einstein Bot Channel Connector Archetype. Set
artifactId to the names of your choice.
Alternatively, you can use this command to run it in interactive mode and provide the
artifactId when prompted.
First, configure the
src/main/resources/application.properties file. You can start by copying the example properties from the
This table lists the available application properties.
|Property Name||Environment Variable Name||Description|
|Required. The base URL of the bot runtime.|
|The integration name that you used when connecting the connected app API to the bot (see Prerequisites).|
|Required. The path to the private key in DER encoded format to get OAuth tokens.|
|Required. The Salesforce URL to get the OAuth Token. This is |
|Required. The consumer key of your connector app setup.|
|Required. The consumer secret of your connector app setup.|
|Required. The login user ID that you use to log in to Salesforce.|
|The time in seconds to cache information for tracking sessions. Provide a value appropriate to your external channel.|
|The Redis URL. Required to use the Redis cache.|
|The time in seconds to cache oauth tokens to avoid network requests.|
|The Redis URL. Required to use Redis for caching OAuth tokens.|
Start the app by running Spring Boot with this Maven command.
@Inject in your Spring-managed code to use Bean with the default configuration.
Now, let's Explore Example Channel Connector Apps to build your connector app.