---
schema_version: "1"
id: 62e722e0424dac6b1f5f788de0a893543dc316b84f0413a8f8a7ce04814c92b2
title: Configuring Chat Operations for Einstein AI Connector 1.2
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/einstein-ai-connector/1.2/configuring-chat-operations.md
canonical_url: https://docs.mulesoft.com/einstein-ai-connector/1.2/configuring-chat-operations
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 865b4397cf501c77ce5217c5425baeb46ed6b933ef11636b0d2b0b232cd8f7a4
description: MuleSoft Documentation Site
release: "1.2"
latest: false
---
---
product: Einstein AI Connector
version: 1.2
---

# Configuring Chat Operations for Einstein AI Connector 1.2

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## Configure the Chat Answer Prompt Operation

The **Chat answer prompt** operation sends a request to the configured LLM. This operation uses a
plain text prompt as input and responds with a plain text answer.

1.  Select the operation on the Anypoint Code Builder or Studio canvas.

2.  In the **General** properties tab for the operation, enter plain text for the **Prompt**.

3.  In **Additional properties**, enter these values:

    - **Model name**

      Select the model name. The default is `OpenAI GPT 3.5 Turbo`.

    - **Probability**

      Enter the probability of the model staying accurate. The default is `0.8`. **Locale**

      Enter the localization information, which can include the default locale, input locale(s), and
      expected output locale(s). The default is `en_US`.

This is the XML configuration for this operation:

```xml
<ms-einstein-ai:chat-answer-prompt
  doc:name="Chat answer prompt"
  doc:id="66426c0e-5626-4dfa-88ef-b09f77577261"
  config-ref="Einstein_AI"
  prompt="#[payload.prompt]"
/>
```

## Configure the Chat Generate from Messages Operation

The **Chat generate from messages** operation is a prompt request operation to the configured LLM,
with provided messages. This operation accepts multiple messages and uses a plain text prompt as
input. The operation responds with a plain text answer.

1.  Select the operation on the Anypoint Code Builder or Studio canvas.

2.  In the **General** properties tab for the operation, enter plain text for the **Messages**.

3.  In **Additional properties**, enter these values:

    - **Model name**

      Select the model name. The default is `OpenAI GPT 3.5 Turbo`.

    - **Probability**

      Enter the probability of the model staying accurate. The default is `0.8`. **Locale**

      Enter the localization information, which can include the default locale, input locale(s), and
      expected output locale(s). The default is `en_US`.

This is the configuration XML for this operation:

```xml
<ms-einstein-ai:chat-generate-from-messages
  doc:name="Chat generate from messages"
  doc:id="94fa27f3-18ce-436c-8a5f-10b8dbfa4ea3"
  config-ref="Einstein_AI"
  messages="#[payload.messages]"
/>
```

## See Also

- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)

- [Einstein AI Connector Overview](https://docs.mulesoft.com/einstein-ai-connector/1.2/)

- [Einstein AI Connector Reference](https://docs.mulesoft.com/einstein-ai-connector/1.2/einstein-ai-connector-reference)

- [Salesforce Help](https://help.salesforce.com)
