Library / Reports, Analytics & Dashboards
Reports, Analytics & Dashboards
Export AI Agent Chat Logs from Postgres to Sheets
When you run it or on a schedule, it reads conversations by session from Postgres and writes them into a fresh Google Sheets copy.
What it does
## Add a datetime column If not already done, add a created_at column to store the datetime of the message 👉 Ideally, do it before your first interaction, otherwise all your previous conversations will be set as the time of the execution of this node. 💡 Replace the name of your chat memory before executing the request The table schema will at least contain the following fields: session_id, message.content, message.type, and created_at
The steps
- When clicking ‘Test workflow’
- add create_at column
- Get conversations by sessionId
- Duplicate template sheet
- Clear Sheet Content
- Rename Sheet
- Schedule Trigger
- Set session_id
- Postgres - Get session ids
- Loop Over Session IDs
- Add conversations
Similar automations