Cairnloop.Chat (cairnloop v0.5.1)

Copy Markdown View Source

Summary

Functions

Tolerant lookup of a single message by id. Returns %Cairnloop.Message{} or nil. Used by ChatLive's role-dedup branch (Phase 28 Pitfall 7) so a stale broadcast id can never crash a customer's chat tab.

Functions

create_customer_conversation(attrs)

get_conversation!(id)

get_message(id)

Tolerant lookup of a single message by id. Returns %Cairnloop.Message{} or nil. Used by ChatLive's role-dedup branch (Phase 28 Pitfall 7) so a stale broadcast id can never crash a customer's chat tab.

ingest_widget_message(conversation_id, content)

list_conversations()

reply_to_conversation(conversation_id, content, role \\ :agent, opts \\ [])

resolve_conversation(conversation_id, opts)

submit_csat(conversation_id, rating)