{
"projectId": "<string>",
"answer": {
"id": "answer_XXXXXXXXXXXXXXXXXX",
"userProfileId": "<string>",
"personaProfileId": "<string>",
"type": "TEXT",
"tags": {},
"cost": "<string>",
"responseTime": 123,
"sequenceNumber": 123,
"createdAt": "2023-11-07T05:31:56Z",
"text": "Lorem ipsum dolor sit amet.",
"pictureUrl": null,
"conversationStopReason": null,
"conversationStoppedUntil": null,
"parentAnswerId": "<string>"
}
}This event is emitted when a generated answer has been fully produced and sent. It marks the successful completion of the answer generation process and delivers the finalized answer payload
The unique identifier of the project in which the answer was generated.
An object representing the final answer produced by the platform.
Hide child attributes
Answer's unique id.
"answer_XXXXXXXXXXXXXXXXXX"
References the user profile id.
References the persona profile id.
Answer's type.
TEXT Answer's cost that has a precision of up to 4-digits represented as a string.
Format: 0.0000.
"0.025"
Answer's response time in seconds.
Answer's sequence number, will be greater than 0 when a reply contains multiple messages.
Answer's creation date. Format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX (iso-8601)
Answer's text.
"Lorem ipsum dolor sit amet."
Answer's attached picture url.
Answer's conversation stop reason. All ban periods are customizable and can be progressive. By default, progressive ban are 2 hours → 12 hours → 24 hours → 48 hours → Permanent
| Value | Description | Ban Period |
|---|---|---|
USER_UNDERAGE | Minor user detected (under 18 years old). | Permanent |
USER_SUSPICIOUS | User is trying to hijack the AI. | Permanent |
USER_MESSAGE_REPETITION | Suspicious behavior detected, user is repeating the same message. | Progressive |
UNKNOWN_LANGUAGE | Suspicious behavior detected, user is using an unknown language. | Progressive |
USER_HOSTILE | Hostile behaviour toward Persona detected. | Progressive |
AI_SUSPICION | The user suspects that the Persona is an AI. | Progressive |
USER_UNDERAGE, MALICIOUS_CONTENT, USER_SUSPICIOUS, USER_MESSAGE_REPETITION, UNKNOWN_LANGUAGE, USER_HOSTILE, AI_SUSPICIOUS, PAUSE_CONVERSATION Answer's conversation stopped until.
Answer's parent answer id.