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.
The Official data layer Prisma schema has not been updated since Chainlit 2.0.0. If you are using Chainlit 2.1.0 or later, you need to manually add missing columns to the "Step" table. See the migration guides for 2.1.0, 2.3.0, and 2.9.4.
Custom element props are stored directly in PostgreSQL, not on cloud storage.