Information about a given message from a user to an agent or vice-versa.

Example Usage

import { SessionText } from "syllable-sdk/models/components";

let value: SessionText = {
  timestamp: new Date("2023-02-02T19:48:48.046Z"),
  lang: "unset",
  source: "user",
};

Fields

FieldTypeRequiredDescriptionExample
timestampDateTRUETimestamp of the message
langstringFALSEISO 639 code of the language used for the message (may appear as “unset” if was not conclusively determined)en-US
sourcestringFALSEWhether the user or agent sent the messageuser
textstringFALSEContent of the message