---
schema_version: "1"
id: e9a63450c5a83b3833eba718a7c3416071d7604bd460502e72e773b8486cbee3
title: MlDomain
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_mldomain.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mldomain.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0d23884caf04145b8db7daecb9f36bf9849a1ca99df7c801c2b2e951a5c07fce
description: Represents an Einstein Intent Set.
---
# MlDomain

Represents an Einstein Intent Set.

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

MlDomain components have the suffix .mlDomain and are stored in the mlDomains folder.

## Version

MlDomain components are available in API version 43.0 and later.

## Special Access Rules

This object is available only if Chat and Einstein Bots are enabled in your org.

## Fields

| Field Name | Field Type | Description |
| --- | --- | --- |
| description | string | Einstein Intent Set description. |
| label | string | Einstein Intent Set name. |
| mlIntents | [MlIntent](#MlIntent)\[\] | List of intents under this Einstein Intent Set. |
| mlSlotClasses | [MlSlotClass](#MlSlotClass)\[\] | List of entities under this Einstein Intent Set. |

## MlIntent

An intent in an Einstein Intent Set.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d670515e205">Field Name</th>

              <th class="featureTableHeader  " id="d670515e208">Field Type</th>

              <th class="featureTableHeader  " id="d670515e211">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d670515e205" data-title="Field Name"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d670515e208" data-title="Field Type">string</td>

              <td class="entry" headers="d670515e211" data-title="Description">Einstein Intent Set description.</td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e205" data-title="Field Name"><span class="keyword parmname">developerName</span></td>

              <td class="entry" headers="d670515e208" data-title="Field Type">string</td>

              <td class="entry" headers="d670515e211" data-title="Description">Required. This unique name prevents conflicts with other Einstein Intent Sets
                associated with the same bot version. This name can contain only underscores and
                alphanumeric characters and must be unique in your org. It must begin with a letter,
                not include spaces, not end with an underscore, and not contain two consecutive
                underscores.<p class="p">Only users with View DeveloperName OR View Setup and Configuration
                  permission can view, group, sort, and filter this field.</p>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e205" data-title="Field Name"><span class="keyword parmname">label</span></td>

              <td class="entry" headers="d670515e208" data-title="Field Type">string</td>

              <td class="entry" headers="d670515e211" data-title="Description">Einstein Intent Set name.</td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e205" data-title="Field Name"><span class="keyword parmname">mlIntentUtterances</span></td>

              <td class="entry" headers="d670515e208" data-title="Field Type">
                <a class="xref" href="#MlIntentUtterance">MlIntentUtterance</a>[]
              </td>

              <td class="entry" headers="d670515e211" data-title="Description">List of customer inputs for this intent.</td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e205" data-title="Field Name"><span class="keyword parmname">relatedMlIntents</span></td>

              <td class="entry" headers="d670515e208" data-title="Field Type">
                <a class="xref" href="#MlRelatedIntent">MlRelatedIntent</a>[]
              </td>

              <td class="entry" headers="d670515e211" data-title="Description">List of intents within an Einstein Intent Set used to expand customer inputs
                for this intent. Only intents within local Einstein Intent Sets have related
                intents.</td>

            </tr>

          </tbody>

        </table>

## MlIntentUtterance

A customer input for this intent.

| Field Name | Field Type | Description |
| --- | --- | --- |
| utterance | string | A customer input or natural language query that triggers the parent intent. |

## MlRelatedIntent

An intent in an Einstein Intent Set used to expand customer inputs for this intent. Only intents within local Einstein Intent Sets have related intents.

| Field Name | Field Type | Description |
| --- | --- | --- |
| relatedMlIntent | string | Name of the intent that is used to extend the customer inputs of the current parent intent. |

## MlSlotClass

An entity in this Einstein Intent Set.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d670515e425">Field Name</th>

              <th class="featureTableHeader  " id="d670515e428">Field Type</th>

              <th class="featureTableHeader  " id="d670515e431">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d670515e425" data-title="Field Name"><span class="keyword parmname">dataType</span></td>

              <td class="entry" headers="d670515e428" data-title="Field Type">MlSlotClassDataType (enumeration of type string)</td>

              <td class="entry" headers="d670515e431" data-title="Description">A list of the data types available for the MISlotClass. Valid values are: <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Text</samp></li>

                  <li class="li"><samp class="codeph nolang">Number</samp></li>

                  <li class="li"><samp class="codeph nolang">Boolean</samp></li>

                  <li class="li"><samp class="codeph nolang">Date</samp></li>

                  <li class="li"><samp class="codeph nolang">DateTime</samp></li>

                  <li class="li"><samp class="codeph nolang">Currency</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e425" data-title="Field Name"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d670515e428" data-title="Field Type">string</td>

              <td class="entry" headers="d670515e431" data-title="Description">A description of an Einstein Bot entity.</td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e425" data-title="Field Name"><span class="keyword parmname">developerName</span></td>

              <td class="entry" headers="d670515e428" data-title="Field Type">string</td>

              <td class="entry" headers="d670515e431" data-title="Description">Required. This unique name prevents conflicts with other entities in an
                Einstein Intent Set. This name can contain only underscores and alphanumeric
                characters, and must be unique in your org. It must begin with a letter, not include
                spaces, not end with an underscore, and not contain two consecutive underscores.
                <p class="p">Only users with View DeveloperName OR View Setup and Configuration permission
                  can view, group, sort, and filter this field.</p>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e425" data-title="Field Name"><span class="keyword parmname">extractionRegex</span></td>

              <td class="entry" headers="d670515e428" data-title="Field Type">string</td>

              <td class="entry" headers="d670515e431" data-title="Description">Regular expression used to extract an entity when the type is set to <samp class="codeph nolang">Pattern</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e425" data-title="Field Name"><span class="keyword parmname">extractionType</span></td>

              <td class="entry" headers="d670515e428" data-title="Field Type">MlSlotClassExtractionType (enumeration of type string)</td>

              <td class="entry" headers="d670515e431" data-title="Description">Required. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Pattern</samp></li>

                  <li class="li"><samp class="codeph nolang">Value</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e425" data-title="Field Name"><span class="keyword parmname">label</span></td>

              <td class="entry" headers="d670515e428" data-title="Field Type">string</td>

              <td class="entry" headers="d670515e431" data-title="Description">Label that identifies an entity throughout the Salesforce user
                interface.</td>

            </tr>

            <tr>
              <td class="entry" headers="d670515e425" data-title="Field Name"><span class="keyword parmname">mlSlotClassValues</span></td>

              <td class="entry" headers="d670515e428" data-title="Field Type">
                <a class="xref" href="#MlSlotClassValue">MlSlotClassValue</a>[]
              </td>

              <td class="entry" headers="d670515e431" data-title="Description">List of entity values associated with an entity of type <samp class="codeph nolang">Value</samp>.</td>

            </tr>

          </tbody>

        </table>

## MlSlotClassValue

An entity value associated with an entity of type Value.

| Field Name | Field Type | Description |
| --- | --- | --- |
| synonymGroup | [SynonymGroup](#SynonymGroup) | Represents a list of terms or synonyms for the current entity value. |
| value | string | Single value used to extract an entity of type Value. |

## SynonymGroup

Represents a group of synonymous words or phrases.

| Field Name | Field Type | Description |
| --- | --- | --- |
| languages | Language (enumeration of type string) | Required. Specifies the languages the value list applies to. If value list items are specific to a single language, specify only that language. If the value list items apply to multiple languages, specify multiple languages for one value list. |
| terms | string | Required. A word or phrase synonymous with other terms in the value list. |

## Declarative Metadata Sample Definition

The following is an example of an MlDomain.

<?xml version="1.0" encoding="UTF-8"?>
<MlDomain xmlns="http://soap.sforce.com/2006/04/metadata">
    <label\>TestDomainMetadata</label\>
    <description\>This is domain 2 for metadata testing</description\>
    <mlIntents\>
        <developerName\>Test\_Intent\_New</developerName\>
        <label\>Test Intent New</label\>
        <mlIntentUtterances\>
            <utterance\>Utterance Hello</utterance\>
        </mlIntentUtterances\>
        <mlIntentUtterances\>
            <utterance\>Utterance Hi</utterance\>
        </mlIntentUtterances\>
        <mlIntentUtterances\>
            <utterance\>Utterance What</utterance\>
        </mlIntentUtterances\>
    </mlIntents\>
    <mlIntents\>
        <developerName\>Test\_Intent\_New2</developerName\>
        <label\>Test Intent New 2</label\>
    </mlIntents\>
    <mlSlotClasses\>
        <developerName\>Test\_Entity1</developerName\>
        <label\>Test Entity 1</label\>
        <extractionType\>Value</extractionType\>
        <mlSlotClassValues\>
                <value\>Choice value 1</value\>
            </mlSlotClassValues\>
            <mlSlotClassValues\>
                <value\>Choice value 2</value\>
            </mlSlotClassValues\>
    </mlSlotClasses\>
    <mlSlotClasses\>
        <developerName\>Test\_Entity2</developerName\>
        <label\>Test Entity 2</label\>
        <extractionType\>Pattern</extractionType\>
    </mlSlotClasses\>
    <mlSlotClasses\>
            <dataType\>Text</dataType\>
            <description\>Valid Email Address</description\>
            <developerName\>Email</developerName\>
            <extractionRegex\>\\b\[A-Z0-9.\_%+-\]+@\[A-Z0-9.-\]+\\.\[A-Z\]{2,}\\b</extractionRegex\>
            <extractionType\>Pattern</extractionType\>
            <label\>Email</label\>
    </mlSlotClasses\>
    <mlSlotClasses\>
        <developerName\>airport</developerName\>
        <extractionType\>Value</extractionType\>
        <label\>airport</label\>
        <mlSlotClassValues\>
            <synonymGroup\>
                <languages\>en\_US</languages\>
                <terms\>San Francisco</terms\>
                <terms\>The City</terms\>
            </synonymGroup\>
            <value\>SFO</value\>
        </mlSlotClassValues\>
        <mlSlotClassValues\>
            <synonymGroup\>
                <languages\>en\_US</languages\>
                <terms\>Oakland</terms\>
                <terms\>The Town</terms\>
            </synonymGroup\>
            <value\>OAK</value\>
        </mlSlotClassValues\>
    </mlSlotClasses\>
</MlDomain\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>TestDomainMetadata</members\>
        <name\>MlDomain</name\>
    </types\>
    <version\>43.0</version\>
</Package\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).