Where is the AI chat "stored"?

Operating system

Linux

Joplin version

3.7.16

Desktop version info

Joplin 3.7.16 (prod, linux)

Device: linux, Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz
Client ID: c17332a9dea6435f83e118f53671b3da
Sync Version: 3
Profile Version: 53
Keychain Supported: No
Alternative instance ID: alt1
Sync target: S3
Editor: Markdown

Revision: e3f38c6

Backup: 1.5.1
Freehand Drawing: 4.3.0
Zotero Link: 2.2.0

Sync target

S3

Editor

Markdown Editor

What issue do you have?

As an OpenRouter user, I am used to getting a Markdown and a JSON export of my chats (which I used to save inside Joplin). I would like to have the same kind of control with the AI chat inside Joplin, but I haven't found in the docs info about where to find the files corresponding to the AI output. Or is it saved inside Joplin's database? In any case, can it be backed up, exported and imported in some way?

I was just using AI chat and somehow I closed the conversation, and could not recover it. For this kind of situation it would be interesting to know where the chat history is stored and if it can be restored

I've created an issue about it here:

Thanks Laurent, will follow up on GitHub!