# `Cairnloop.Notifier`
[🔗](https://github.com/szTheory/cairnloop/blob/main/lib/cairnloop/notifier.ex#L1)

Behaviour for notifying the host application of important Cairnloop events.

# `on_conversation_resolved`

```elixir
@callback on_conversation_resolved(conversation :: struct(), metadata :: map()) ::
  :ok | any()
```

Called when a conversation is resolved. 
Metadata may contain :sentiment, :intent, etc.

# `on_sla_breach`

```elixir
@callback on_sla_breach(conversation :: struct(), sla :: struct(), metadata :: map()) ::
  :ok | {:error, term()} | any()
```

Called when a service level agreement (SLA) is breached.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
