Automations trigger actions based on events in Braintrust. Stay informed about production issues, export data to external systems, and manage data retention automatically.Documentation Index
Fetch the complete documentation index at: https://braintrust.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Automation types
Braintrust supports three automation types:Alerts
Send notifications when events occur:- Log alerts: Notify when conditions are met on production logs
- Environment alerts: Notify when prompt environments are updated
- Webhooks: POST JSON payloads to custom endpoints
- Slack: Send messages to Slack channels
Cloud storage export
Periodically export project logs to an Amazon S3 or Google Cloud Storage bucket:- Logs: Export traces or spans in JSON Lines or Parquet format
- Custom queries: Use BTQL to define exactly what data to export
only available on the Enterprise plan.
Data retention
Automatically delete old data based on time-based policies:- Logs: Remove logs older than a specified period
- Experiments: Delete completed experiments after retention window
- Datasets: Remove dataset rows past their retention date
only available on the Enterprise plan.
Test automations
Before saving, test automations to verify configuration:- Alerts: Sends a test payload to your webhook or Slack channel
- Export automations: Writes and deletes a test file in your target bucket
- Data retention: Previews which data would be deleted
Monitor automation runs
View execution history and status:- Go to Settings > Alerts or Data management.
- View run history, timing, and any errors
- Open the Export status dialog and click Rewind… to re-export data from a specific point in time.
Next steps
Set up alerts
Configure webhooks and Slack notifications
Export to cloud storage
Periodically export project logs to AWS S3 or Google Cloud Storage
Configure data retention
Automatically delete old data to manage storage and comply with regulations