Skip to main content
AI support chatbots handle account data, refunds, order details, and emotionally charged conversations. Use the Events API to check each part of the conversation separately and keep a clear record of what was flagged.

What to Check

For a support chatbot, send Events for:
Use the same run_id for all Events in one conversation turn. Use distinct event_id values for the user message, tool result, and assistant reply.
Before using these examples, attach your Policies to an active Condition. Use an empty {} expression to match every Event, or add metadata to each Event to target specific user groups, regions, or workflow stages. Without a matching Condition, Events are processed without any Policies.

Basic Flow

  1. Check the user’s message when it arrives.
  2. If your assistant calls tools, check any sensitive tool outputs before using them.
  3. Check the assistant’s final response before sending it to the user.
  4. Store the returned internal_event_id values when you need to retrieve the exact results later.

Example: Check a User Message

Example: Check Tool Output

Example: Check Assistant Reply

Batch a Full Turn

You can send all Events for one turn in a single batch:
The response groups results into messages, tools, agents, and other typed buckets.

Next Steps

Check One Event

Learn the single Event request and response shape.

Check Multiple Events

Batch all Events for one support turn.

Get Event Results

Retrieve exact or latest Event results.

Risk Scoring

Use user metadata and Policy violations to inspect user risk.