---
schema_version: "1"
id: 8e8a9685c4ae89eacd7e1c7310870a820293122b794df4f94de4c71fe1e8c289
title: Enable Einstein Bots in a Scratch Org
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/bots_service_create_scratch_org.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.bots_service_create_scratch_org.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9ef4fc199c5d5c9fccf88978f1f186050a51915706c7f0236c144e443ff30ee2
description: You can quickly enable Einstein Bots in a scratch org using Salesforce DX.
products:
  - Service Cloud
  - Service Intelligence
release: "264"
---
# Enable Einstein Bots in a Scratch Org

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

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.einstein_service_intro.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d27144e57">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d27144e57 ">To build and manage Einstein Bots:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d27144e57 ">
              <p>Customize Application</p>
              <p>OR</p>
              <p>Modify Metadata</p>
              <p>OR</p>
              <p style="margin-bottom:0;">Manage Bots</p>
            </td>

          </tr>
        </tbody>
      </table>

Learn more about scratch orgs in the [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs.htm).

To enable Einstein Bots in a scratch org, add this code to your definition file:

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/images/icon_example.png)

Example

```javascript
{
    "orgName": "AcmeCorp",
    "edition": "Developer",
    "features": ["ServiceCloud", "Chatbot"],
    "hasSampleData": "false",
    "settings": {
     "liveAgentSettings": {
       "enableLiveAgent": true
      },
      "botSettings": {
        "enableBots": true
      },
      "orgPreferenceSettings": {
        "s1DesktopEnabled": true,
        "selfSetPasswordInApi": true,
        "s1EncryptedStoragePref2": false
      }
    }
}
```