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
S3 export
Periodically export data to AWS S3 buckets:- Logs: Export traces or spans in JSON Lines or Parquet format
- Custom queries: Use SQL to define exactly what data to export
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
Test automations
Before saving, test automations to verify configuration:- Alerts: Sends a test payload to your webhook or Slack channel
- S3 exports: Writes and deletes a test file to your S3 bucket
- Data retention: Previews which data would be deleted
Monitor automation runs
View execution history and status:- Go to Settings.
- Under Project, select Alerts or Data management.
- View run history, timing, and any errors
- Manually trigger exports with Run once
- Reset automation state to re-export all data