One signed-in customer’s support conversation in this tab: the transcript, the draft, pending sends, and the help offer.
One signed-in customer’s support conversation in this tab: the transcript, the draft, pending
sends, and the help offer. Create it with connectConversation.
class ConversationRuntime extends ConversationRuntime<File>
Advance the tab-scoped read cursor for the current conversation. Only an open runtime in a
visible document can mark replies read, the cursor never moves backwards, and it never moves
past a support reply this runtime has actually received.
Shows the conversation: loads it, sends a pending message or a queued help offer contact, and
keeps it current while open. Opening alone creates no ticket.
Send the draft. With options.handoff, the message opens a conversation that carries the
bot’s reason, summary, and chat before it; a blank reason answers invalid_draft.
Mirror a message your bot showed the end user into the team’s thread. Call it for every bot
message while a conversation is open, and right after send({ handoff }) for the bot’s own
goodbye: it waits for the conversation, keeps the order the user saw, and survives a reload.
The same id is recorded once.
Delivered support replies observed since this tab’s baseline and not yet marked read. While
closed this is the last-known count; closing never schedules another read.