---
schema_version: "1"
id: f577a49165551bee0d8131690c17b801935976a45631e1fe66fd3c9a19ceee4d
title: ReplyText
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_replytext.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_replytext.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6d67d0df0be81db8fbf9f316c6c8cdece5cdf097ffa3a0ecb55580ba6efb19ca
description: A text reply generated by Einstein Reply Recommendations that is based on closed chat transcripts. Admins review replies and publish them to quick text, editing them as needed. Einstein recommends relevant published replies to support agents in the Lightning Service Console, and agents can insert replies into chats or messaging sessions. This object is available in API version 49.0 and later.
---
# ReplyText

A text reply generated by Einstein Reply Recommendations that is based on closed chat transcripts. Admins review replies and publish them to quick text, editing them as needed. Einstein recommends relevant published replies to support agents in the Lightning Service Console, and agents can insert replies into chats or messaging sessions. This object is available in API version 49.0 and later.

![Important](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note_important.png)

#### Important

Because the replies generated by Einstein are taken from closed chats with your customers, they may contain customer data. You can edit replies before they are recommended to agents.

## Supported Calls

delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update()

## Fields

| Field | Details |
| --- | --- |
| Language | 
Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The language used in the reply. This field is available in API version 51.0 and later. Possible values are languages supported in Einstein Reply Recommendations.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

Eight-digit auto-generated number identifying the reply.



 |
| RawTextMessage | 

Type

textarea

Properties

Description

The text of the reply.



 |
| Source | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

Indicates who last modified the reply.

Possible values are:

- EINSTEIN\_GENERATED—Reply was generated by Einstein and has not been edited.
- USER\_EDITED—Reply was generated by Einstein and then edited by a user.
- USER\_GENERATED—This value is not currently in use.





 |
| Status | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The status of the reply.

Possible values are:

- NEW—Einstein has generated the reply and it hasn’t yet been published.
- PUBLISHED—The reply has been published to quick text. When the reply recommendation model is activated, the reply can be recommended to support agents.
- PUBLISH\_FAILED— An attempt to publish the reply to quick text failed. Publishing failure can be due to validation errors, access errors, or corrupted files. To hide the reply from the list of generated replies, delete it.





 |

## Usage

To get started with Einstein Reply Recommendations, create a predictive model that analyzes closed chats for frequently used text snippets. When the model is ready, Einstein generates a list of these snippets as ReplyText records for you to review and publish, or convert, to quick text. ReplyText records appear on the Einstein Reply Recommendations Setup page.

You can select one or more replies to publish at a time. If you publish a single reply, you can edit the reply text during publishing. If you publish multiple replies at once, you can edit each reply’s text on the quick text page after publishing is complete. Replies aren’t recommended to support agents until you activate your reply recommendation model.

When a reply is published, a corresponding [QuickText](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_quicktext.htm "This object stores a snippet of text that allows users to send a quick response to a customer. Use quick text to create greetings, answers to common questions, short notes, and more. This object is available in API version 24.0 and later.") record is created. During publishing, select a quick text folder to add the replies to and make sure that agents have access to the folder. To edit a reply after it is published, edit the related quick text record.

Einstein generates the list of replies only once, when your model finishes building. It’s not possible to generate a new list.

**Copyright**

Rights of ALBERT EINSTEIN are used with permission of The Hebrew University of Jerusalem. Represented exclusively by Greenlight.