ConversationEntry

Represents a message or event in a voice call or messaging session. The schema on this page only applies to conversation entries for legacy chat. Refer to the ConversationEntry (Off-Core) schema in the Messaging Object Model guide to see the ConversationEntry schema for Enhanced Channels.

Introduced in API version 43.0.

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

  • To use the ConversationEntry object, enable the Access Conversation Entries user permission, which is available in API version 50.0 and later. Earlier versions do not require permissions.
  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort

  • Description:

    The ID of the author. The possible values can be null or any ID in the following domain set:

    • BotDefinition
    • LiveChatVisitor
    • MessagingEndUser
    • User

    This is a polymorphic relationship field.

  • Relationship name: Actor

  • Relationship type: polymorphic

  • Refers to: AgenticCtxtDecorDefinition, AiAgent, BotDefinition, ConversationParticipant, LiveChatVisitor, MessagingEndUser, User

  • Type: string
  • Properties: Create, Filter, Nillable, Sort
  • Description: The name of the author sending the message or event.
  • Type: picklist
  • Properties: Create, Filter, Group, Restricted picklist, Sort
  • Description: The author of this entry in the chat history. The valid values include:
  • Possible values:
    • Agent — Agent
    • Bot — Bot
    • EndUser — EndUser
    • Supervisor — Supervisor
    • System — System
  • Type: int
  • Properties: Create, Filter, Group, Nillable, Sort
  • Introduced: API version 51.0
  • Description: The length in milliseconds for the entry. This field is used with voice messages and other applicable use cases. This value may be 0 if not set by the client.
  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort
  • Introduced: API version 51.0
  • Description: The timestamp sent by the client when it generated the entry.
  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Relationship name: ConversationEntity

  • Relationship type: relationship

  • Refers to: Conversation

  • Type: reference

  • Properties: Create, Filter, Group, Sort

  • Description:

    The MessagingSession ID this entry belongs to.

    This is a polymorphic relationship field.

  • Relationship name: Conversation

  • Relationship type: polymorphic

  • Refers to: Conversation, LiveChatTranscript, MessagingSession, VoiceCall

  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort
  • Introduced: API version 48.0
  • Description: The timestamp that this entry ended in the chat history.
  • Type: datetime
  • Properties: Create, Filter, Sort
  • Description: The timestamp of this entry in the chat history.
  • Type: int
  • Properties: Create, Filter, Group, Nillable, Sort
  • Introduced: API version 51.0
  • Description: The milliseconds value for the time when an entry was received by the server. Note that the related EntryTime field does not provide millisecond accuracy.
  • Type: picklist
  • Properties: Create, Filter, Group, Restricted picklist, Sort
  • Description: The type of entry in the chat history. Can be a message (text) or an event. The possible values include:
  • Possible values:
    • Text — Text
    • AdminOptedIn — AdminOptedIn
    • AdminOptedOut — AdminOptedOut
    • BotEscalated — BotEscalated
    • ChatbotClosedIdleSession — ChatbotClosedIdleSession
    • ChatbotEndedChatByAction — ChatbotEndedChatByAction — Conversation ended by automated action
    • ChatbotEndedTransferNotConfigured — ChatbotEndedTransferNotConfigured — Conversation ended because transfer fail is not configured
    • ChatbotEstablished — ChatbotEstablished
    • ChatbotNotEstablished — ChatbotNotEstablished
    • EndUserOptedIn — EndUserOptedIn
    • EndUserOptedOut — EndUserOptedOut
  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort
  • Introduced: API version 44.0
  • Description: Indicates whether a message has attachments associated with it (true) or not (false).
  • Default value: false
  • Type: textarea
  • Properties: Create, Nillable
  • Description: The message or event sent by the author. In ConversationEntry records for enhanced Messaging channels or Messaging for In-App and Web, the Message field is blank due to data storage differences from standard channels.
  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort
  • Description: Unused field reserved for future use.
  • Type: string
  • Properties: Create, Filter, Group, idLookup, Nillable, Sort
  • Introduced: API version 47.0
  • Description: The unique ID for the message. Maximum size is 36 characters.
  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort
  • Description: Unused field reserved for future use.
  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort
  • Description: Unused field reserved for future use.
  • Type: picklist
  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort
  • Description: The status of the message sent by the author. The valid values include:
  • Possible values:
    • Delivered — Delivered
    • Error — Error
    • Pending — Pending
    • Read — Read
    • Sent — Sent
  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Introduced: API version 45.0
  • Description: The code associated with a message status. MessageStatusCode is only populated when a message is undeliverable
  • Type: int
  • Properties: Create, Filter, Group, Sort
  • Description: The sequence position of this entry in the chat history.
  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort
  • Introduced: API version 51.0
  • Description: The timestamp recorded when the server received the entry. This is a unique value and is used for ordering. This value can also be referred to as the “transcripted timestamp.” This field is available in API version 51.0 and later.

The schema on this page only applies to conversation entries for legacy chat. The legacy chat product is in maintenance-only mode, and we won’t continue to build new features. Refer to the ConversationEntry (Off-Core) schema in the Messaging Object Model guide to see the ConversationEntry schema for Enhanced Channels.

In standard SMS, WhatsApp, and Facebook Messenger channels, a ConversationEntry record is created for each message sent by a messaging end user or an agent, bot, or automation. Each ConversationEntry record is associated with a MessagingSession record, which represents the interaction between the messaging end user and the business. Access and work with ConversationEntry records like any standard object. You can report on messaging activity and track the conversation workflow end to end. You can also download or delete transcripts, redact sensitive text, and customize your workflows with solutions built on the ConversationEntry object.

In enhanced Messaging channels, Messaging for In-App and Web, and Service Cloud Voice (“enhanced channels”), inbound and outbound messages are processed in one of two ways depending on your location.

  • A ConversationEntry record is created but the Message field is blank, or
  • No ConversationEntry record is created.

To get the fullest picture of conversations in enhanced channels, use Data Cloud, the Connect REST API, or the Conversation Transcript Export tool to access transcripts. See Accessing Messaging and Voice Conversation Data.

ConversationEntry records aren’t created until the messaging session ends and the agent closes the session tab. One exception is for the first message in any standard messaging session, whose ConversationEntry record is created immediately.