Runtype
Changelog
FeatureAugust 9, 20261 min read

Visitors can see their own chat history in an embedded widget

Opt-in per-visitor conversation history for Persona embeds: list, reopen, and delete past conversations with no backend or database on the host site.

personasurfacesclient-tokens

Refresh the page on an embedded chat widget and the conversation is usually gone. Turn on visitorHistory and it is not.

initAgentWidget({ clientToken: 'ct_live_…', visitorHistory: true })
  • The visitor gets a list of their own past conversations, can reopen one, and can delete one or all of them. No backend, database, or login on your site.
  • A client token is a public, site-wide credential, so it identifies the site and never the visitor. History uses a separate browser-held visitor credential and requires both a live session and proof of the visitor.
  • Records are scoped to the surface the widget is embedded in, and anything outside that scope answers 404 rather than leaking its existence.

Full contract, including identity verification and explicit logout: Conversation history in an embedded widget.