Skip to main content
Resume conversations automatically by using the same session_id in your Agent’s memory configuration.

Quick Start

By default, passing session_id enables history=True automatically, which restores prior user and assistant turns from the session store into the new agent before it processes your next prompt.

With Database Persistence

For production apps, persist to a database:

Session ID Strategies

CLI Resume

Best Practices

Consistent IDs

Same session_id = same conversation thread

User Isolation

Include user_id in session_id for multi-user apps

Right Backend

JSON for dev, PostgreSQL for production

Meaningful Names

Use descriptive IDs: user-123-support-ticket

CLI equivalent

Use praisonai run --continue or praisonai run --session <id> for the same restore behaviour from the command line