Follow the steps in this repository to persist your conversations in 2 minutes:

Official Data Layer

Out-of-the-box data layer schema to store your threads, steps, feedback, etc.

Do not forget to have your Chainlit application point to the database you set up by adding the DATABASE_URL environment variable in your .env.

If you wish to store elements, the same goes for your files system configuration.

Custom element props are stored directly in PostgreSQL, not on cloud storage.