Enable Einstein Bots in a Scratch Org

You can quickly enable Einstein Bots in a scratch org using Salesforce DX.

Required Editions

View supported editions.
User Permissions Needed
To build and manage Einstein Bots:

Customize Application

OR

Modify Metadata

OR

Manage Bots

Learn more about scratch orgs in the Salesforce DX Developer Guide.

To enable Einstein Bots in a scratch org, add this code to your definition file:
Example
Example
{
    "orgName": "AcmeCorp",
    "edition": "Developer",
    "features": ["ServiceCloud", "Chatbot"],
    "hasSampleData": "false",
    "settings": {
     "liveAgentSettings": {
       "enableLiveAgent": true
      },
      "botSettings": {
        "enableBots": true
      },
      "orgPreferenceSettings": {
        "s1DesktopEnabled": true,
        "selfSetPasswordInApi": true,
        "s1EncryptedStoragePref2": false
      }
    }
}