/**
* @example
* {
* agentId: "d9nKoegKSjmCtyK78",
* text: "Hello! How can I help you?",
* visitorId: "kZMvWhf8npAu3H6qd57w2Hv6nh6rnxvg"
* }
*
* @example
* {
* agentEmail: "liz@getwear.com",
* agentName: "Liz",
* receivedFrom: "SuperAwesomeHelpdesk",
* text: "Hello! How can I help you?",
* visitorId: "kZMvWhf8npAu3H6qd57w2Hv6nh6rnxvg"
* }
*
* @example
* {
* agentId: "d9nKoegKSjmCtyK78",
* receivedFrom: "SuperAwesomeHelpdesk",
* text: "Hello! How can I help you?",
* visitorId: "kZMvWhf8npAu3H6qd57w2Hv6nh6rnxvg"
* }
*/
export interface PostConversationsMessagesRequest {
/** Agent's email address. When sending messages from a standalone system, it's hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address. */
agentEmail?: string;
/** Agent ID. It can be found on the agent's page or received from a webhook. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). */
agentId?: string;
/** Agent's name. */
agentName?: string;
/** Mark your messages to distinguish messages created by you from the others. */
receivedFrom?: string;
/** Message text. */
text: string;
/** Visitor's ID received from a webhook or generated by you to bind an existing user account to Conversations. */
visitorId: string;
}