ExternalMessage entity model
ExternalMessage type represents a message exchanged within a conversation. It contains metadata about the sender, the conversation ID, the channel used (e.g., WhatsApp, Email), and the content of the message in both plain text and HTML formats. It also supports complex data types for emails, comments, questions, media attachments, and interactive elements like catalog messages and flow bot quick replies.type ExternalMessage {
_id: ID
sender: senderData
conversation: ID
messageType: MessageType
channelType: ChannelType
senderType: SenderType
content: String
contentHtml: String
subject: String
emailData: EmailDataType
commentData: CommentDataType
questionData: QuestionDataType
media: [Media]
template_cards: Object
product_cards: Object
channelMessageId: String
ackStatus: AckType
createdAt: Date
autoCreate: Boolean
failedReason: FailedReasonType
surveyData: surveyDataForLivechat
informativeButtons: InformativeButtonsType
flowBotQuickReplyResponseId: String
flowBotQuickReplyButtonsRequired: Boolean
flowBotQuickReply: [FlowBotQuickReplyType]
quotedMessage: QuotedMessageType
reactions: ReactionEnum
frontMsgId: String
listMessage: ListMessageType
catalogMessage: CatalogInteractiveType
catalogOrderData: CatalogOrderDataType
}