# Conversation list demo

> Conversation history lets a returning visitor pick up where they left off. In a help center, the agent opens wide with its conversation list, so a customer reopens an earlier conversation about the same order instead of starting again.

Pattern: Conversation list. Brand: Orbit Support. Tags: embed, conversation list, functions, page tools, situational awareness.

## What it shows

- **Conversation history**: the drop-in `<mindset-agent>` element with the `conversation-list` attribute, a Conversations button that lists this visitor's earlier conversations with this agent, newest first
- A "Your conversations" card that lights only on the element's `mindset:conversation` event: once when this conversation is saved, and again when the visitor reopens an earlier one (`replacedBecause: "switched"`)
- Two functions, `orbit-order-status` and `orbit-refund-status`, answering from sample orders written into the function as literal data
- The `show_order` page tool bringing the order under discussion into view, with the orders and the order in view sent as situational awareness
- A server-assigned visitor cookie that lasts 180 days, so the list belongs to one returning visitor and to no one else

## Files

- `demos/orbit/demo.json`
- `demos/orbit/prompt/background.md`
- `demos/orbit/prompt/policy-rules.md`
- `demos/orbit/functions/orbit-order-status.json`
- `demos/orbit/functions/orbit-refund-status.json`
- `src/demos/orbit/index.tsx`
- `src/demos/orbit/history.ts`
- `src/demos/orbit/pageTools.ts`
- `src/demos/orbit/data.ts`

## More

- [Source](https://docs4.mindset.ai/demos/orbit/source)
- [How it works](https://docs4.mindset.ai/demos/orbit/how)
- [The mindset-agent element](https://docs4.mindset.ai/docs/sdk/the-mindset-agent-element)
- [Put an agent on your page](https://docs4.mindset.ai/docs/sdk/put-an-agent-on-your-page)
- [Create a session for your users](https://docs4.mindset.ai/docs/sdk/create-a-session-for-your-users)
- [Events reference](https://docs4.mindset.ai/docs/sdk/events-reference)
- [Build a function](https://docs4.mindset.ai/docs/ams/build-a-function)
