> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zynfo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Export a conversation as JSON

> Download a single ZynfoAI conversation as a JSON file from the Inbox, with its messages, sources, status and timestamps, for records or your own analysis.

# Export a conversation

You can download one conversation at a time as a JSON file.

1. Open the **Inbox**.
2. Click the conversation.
3. Click **Export** at the top of the page.

The file is saved as `chat-session-{id}.json`.

## What's in the file

* `sessionId`, `sessionToken` and `botId`
* `status`
* `startedAt`, `endedAt` and `duration` (in milliseconds, empty if the conversation hasn't ended)
* `messageCount`
* `messages`: each message with its `role` (customer, AI or teammate), `content`, `timestamp`, and the
  knowledge `sources` the AI used

<Frame caption="Illustration of part of an exported file, with each message and the sources the AI used.">
  <img src="https://mintcdn.com/zynfoai/TpFuLv_P_rJXw8fL/images/ui/chat-history-3.png?fit=max&auto=format&n=TpFuLv_P_rJXw8fL&q=85&s=1ebcd5f1f687c59c1886aa81db82a094" alt="Exported chat-session JSON file showing sessionId, status, startedAt, messageCount and messages with role, content, timestamp and sources" width="1008" height="834" data-path="images/ui/chat-history-3.png" />
</Frame>

There's no bulk or CSV export of conversations, leads or tickets in the dashboard. If your store uses the
Shopify app, it can export conversations and leads as CSV. See [ZynfoAI for Shopify](/integrations/store-app).

## Related topics

* [The Inbox](/inbox/session-management)
* [Ratings and satisfaction](/inbox/analytics)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.