Procedural agents for automated analysis
Operator has a built-in system for post-conversation analysis through procedural agents. These are specialized agents that can be configured to automatically run after a conversation ends, using an LLM to extract insights and generate outputs that can be fetched programmatically or delivered via a webhook. Procedural agents are triggered automatically when a conversation reaches completion. They:- Receive the full conversation context including all messages, tool calls, and events
- Run a multi-step analysis prompts using an LLM, call tools connected to Operator
- Generate structured outputs (summaries, extracted data, classifications, etc.)
- Store results that can be retrieved via API or delivered via a webhook
Manual transcript assembly via API
For cases where you need custom processing or more control over the transcript assembly, you can manually fetch and process conversation data through the API. Note that this example focuses on assembling completed conversations for analysis. For rendering ongoing conversations with real-time message streaming, see our Real-time events example. When manually assembling conversation transcripts:- Focus on completed events: Use
agent.message.completed
andagent.tool_call.returned
rather than delta/streaming events for clean final content - The data format is SSE, with JSON inside: Either use an SSE client and parse the JSON payloads or manually parse out individual blocks and the
data:
lines that compose the JSON payload