Behaviour for notifying the host application of important Cairnloop events.
Summary
Callbacks
Called when a conversation is resolved. Metadata may contain :sentiment, :intent, etc.
Called when an outbound message is triggered.
Called when a service level agreement (SLA) is breached.
Callbacks
Called when a conversation is resolved. Metadata may contain :sentiment, :intent, etc.
@callback on_outbound_triggered(message :: struct(), conversation :: struct()) :: :ok | {:error, term()} | any()
Called when an outbound message is triggered.
@callback on_sla_breach(conversation :: struct(), sla :: struct(), metadata :: map()) :: :ok | {:error, term()} | any()
Called when a service level agreement (SLA) is breached.