Skip to main content

Event Structure

event
enum<string>
required
The name of the event. Possible values:
  • answer.created
  • answer.processing
  • conversation.dropped
  • chat.image.rejected
data
object
required
The data associated with the event.You can find the structure of the data object for each event below:
{
  "event": "answer.created",
  "data": {
    "projectId": "<string>",
    "answer": {
      "id": "answer_XXXXXXXXXXXXXXXXXX",
      "userProfileId": "<string>",
      "personaProfileId": "<string>",
      "type": "TEXT",
      "text": "Lorem ipsum dolor sit amet.",
      "pictureUrl": null,
      "tags": {},
      "cost": "0.025",
      "conversationStopReason": null,
      "conversationStoppedUntil": null,
      "responseTime": 123,
      "sequenceNumber": 123,
      "parentAnswerId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  }
}