Skip to main content
Fires when a conversation’s status becomes completed: somebody marks it done, or Custral finishes analysing it with no suggested actions left waiting for review.

Payload

string
required
The conversation. Always present.
string
Always completed.
string
The channel the conversation came from: phone, email, sms, widget, meeting, slack.
string
The conversation’s outcome at that moment, as a disposition key. Omitted when none has been set.

How a conversation completes

  • Mark as Done. Somebody marks the conversation done from the app, and it completes straight away.
  • Analysis finishes. Custral analyses a conversation after a call ends, after its recording is processed, and when it is closed. An analysis that ends with no suggested actions waiting completes the conversation.
When analysis leaves suggested actions waiting for review, the conversation’s status is pending_action and nothing fires. The event arrives later, when somebody marks it done or when analysis runs again with nothing left waiting. An analysis that fails sends nothing either.

Worth knowing

  • It can fire more than once. Marking an already completed conversation done delivers again, and so does each later analysis run that ends in completed, for example when insights are regenerated or a report template is added. Deduplicate on conversationId if you only want the first.
  • outcome is a snapshot. Setting or changing the outcome afterwards arrives as conversation.outcome_set.
  • Closing sends nothing by itself. A closed conversation reports completed only once its analysis finishes.

Example