Skip to main content
Patterns surfaced by Topics are most useful when you act on them. This guide covers building evaluation datasets from classified logs, scoring logs based on topic classifications, assigning logs for human review, and sending a daily digest of new activity to Slack.

Build datasets from topics

Filter logs by topic to build targeted evaluation datasets.
  1. Go to Logs and click Filter.
  2. Select Topics and choose the topic you want to filter by. Alternately, click SQL and enter a filter clause. See the SQL reference for more query patterns.
  3. Select the logs you want to include.
  4. Click + Dataset and choose an existing dataset or create a new one.
Common use cases:
  • “Error investigation” tasks → test your error handling.
  • Negative sentiment interactions → improve responses.
  • “Pricing questions” → evaluate your pricing explanations.
See Promote traces from logs for more on curating datasets from production traces.

Score logs based on topics

Create scorers that flag logs with negative sentiment, penalize specific issue types, or alert when certain topics appear together. Example scorer that flags negative checkout experiences:
topic_scorer.ts
Save the code to a file and push it:
Then configure the automation:
  1. Go to Settings > Automations and click + Rule.
  2. Select your scorer, set Scope to Trace, configure the sampling rate, and click Create rule.
See Score online and Trace-level scorers for more details.

Assign topics for review

Assign logs matching specific topics for human review.
  1. Go to Logs and click Filter.
  2. Select Topics and choose the topic you want to filter by. Alternately, click SQL and enter a filter clause. See the SQL reference for more query patterns.
  3. Select the logs you want to assign.
  4. Select Assign and choose a team member.
Team members receive email notifications when rows are assigned to them.
See Add human feedback for more on human review.

Send a daily Slack digest

Beta — This feature is subject to change.
Send a daily digest of new Topics activity to Slack so your team stays ahead of emerging user intents, trending issues, and sentiment shifts as they develop in production. Each digest covers the previous 24 hours and includes:
  • Summary: How activity shifted, with a table of topic movements between the latest topic generations.
  • Biggest mover: The topic that changed the most since the last generation, with context on what’s driving it.
  • Highlights: Specific traces worth a closer look, tied to the biggest movements.
  • Takeaways: A clear, actionable recommendation when one is evident.
To configure the digest:
  1. Make sure the Slack integration is enabled for your organization.
  2. Go to Settings > Feature flags and turn on Topics digest.
  3. Go to Topics and expand Automation settings in the status panel.
  4. Turn on Topics digest.
  5. Select the Slack workspace and Slack channel to post to.
  6. Set the Send time. The digest is sent once a day at this local time.
  7. Click Save.
To send a digest immediately instead of waiting for the scheduled time, click Run now.

Next steps