View and download execution logs for your specialized agents in Optimizely Opal. Logs record each execution's inputs, outputs, steps, timing, and credit usage. Use them to debug your agent, monitor performance, and evaluate output quality.
Access your agents
- Go to home.optimizely.com.
- Select your organization.
-
Click Opal.
-
Click Agents.
-
Click the Your Agents tab.
View specialized agent logs
Follow these steps to view the logs:
- Follow the steps in the Access your agents section.
- Click the agent for which you want to view its logs or click More (...) > Edit Agent.
-
Select the Logs tab.
- Click an execution to view its logs.
Specialized agent logs overview
Started
The specialized agent logs for executions still running display information like the following:
- Status – Displays Started as the agent is running.
- Stop Execution – Click to stop the agent.
- Close – Close the execution details.
- Version information – The version number and timestamp of when the agent was started.
- Agent Name – The name of the agent invoked. Click Copy to copy the name to your clipboard.
- Execution ID – The unique ID of the agent's execution. Use this ID to identify a specific agent run. Click Copy to copy the ID to your clipboard. See the Access a specialized agent's execution ID section for information.
- Execution Time – The timestamp of when the agent was started.
- Triggered By – The name of the user who started the agent.
- Input Variables – The variables that were used in the execution. Click Copy to copy the variables to your clipboard to reference and debug agent runs.
- Output – The agent response from Opal including any error messages. The output updates as the agent runs.
Completed and failed
The specialized agent logs display the following information for Completed and Failed executions:
- Status – If the agent is Completed or Failed.
- Version information – The version number and timestamp of when the agent was started.
- Open in Test Run – Click to open the execution as a Test a specialized agent with the same variables from the execution already entered.
- Close – Close the execution details.
- Agent Name – The name of the agent invoked. Click Copy to copy the name to your clipboard.
- Execution ID – The unique ID of the agent's execution. Use this ID to identify a specific agent run. Click Copy to copy the ID to your clipboard. See the Access a specialized agent's execution ID section for information.
- Execution Time – The timestamp of when the agent was started.
- Triggered By – The name of the user who started the agent.
- Duration – The total time the agent took to run.
- (Optional) Evaluation Score – The quality score for the execution, along with a Pass or Fail indicator. This field only displays if you added preferred output examples for the agent. It displays in two locations in the panel, see step 17.
- Credits – Approximate credit usage for this execution. Final usage may vary slightly. See Optimizely Opal credits.
- Input Variables – The variables that were used in the execution. Click Copy to copy the variables to your clipboard to reference and debug agent runs.
- (Optional) Artifacts – A link to the canvas output if one was created during the execution's run.
- Output – The agent response from Opal including any error messages.
- Rerun – Click to rerun the agent with the same variables as the execution.
- Execution Memory – The steps Opal took during the execution. For multi-turn agents, Opal organizes memory by turn, with each turn displaying the user input and agent response. For single-shot agents, memory shows the steps Opal took to form its response, including tool calls and intermediate outputs.
- (Optional) Evaluation Score – The quality score for the execution, along with a Pass or Fail indicator. This field only displays if you added preferred output examples for the agent. It displays in two locations in the panel, see step 10.
Export specialized agent execution logs
Download a record of your specialized agent's execution history as a comma-separated values (CSV) or Excel file. Use it to track usage, review inputs and outputs, and measure return on investment (ROI).
- Follow the steps in the Access your agents section.
- Click the agent for which you want to view its logs or click More (...) > Edit Agent.
-
Click More (...) > Export logs.
- Select the columns you want to include. See Available columns. To clear all selections, click Deselect all.
-
Select your format, CSV or Excel, from the Format drop-down list. See Export formats.
- Click Export.
Available columns
The following column groups are available for export:
- Execution Info – Agent Name, Execution ID, Execution Time, Triggered By, and Version.
-
Input & Output
- Variables – Each input parameter gets its own column.
- Output – The agent's response, one entry per execution.
- Performance – Status, Duration (seconds), and Evaluation Score (%).
Export formats
Choose from the following export formats:
- CSV – Plain text file that opens in any spreadsheet tool. Best for importing into other systems or doing programmatic analysis.
- Excel – Formatted workbook with bold headers and a text-wrapped output column. Best for handling long outputs gracefully.
Export limits and file details
Note the following constraints and naming conventions for exported files:
- Exports include up to 250 of the most recent executions. If your agent has more, the page displays the total count it exports.
- The file name matches your agent's name. For example,
My_Agent-executions.csv. - The Output column displays the error message for failed executions.
- The Triggered By column displays the full name of the user who ran the agent.
Set a specialized agent execution as an Output Eval
Set a specific specialized agent execution as a preferred output for Opal to evaluate its responses against. Opal uses the preferred output to create an Evaluation Score. Add up to five preferred outputs. Include at least three diverse outputs for the best results.
Follow these steps to set an execution as an output eval:
- Follow the steps in the Access your agents section.
- Click your specialized agent or click More (...) > Edit Agent.
- Select the Logs tab.
-
Click More (...) for an execution and select Link as Output Eval.
Linking as an output eval automatically adds the execution to the specialized agent's preferred outputs. After configuring your preferred outputs, ensure you set the baseline quality score. See Add Output Evals for steps and information on what different scores mean.
Access a specialized agent's execution ID
The Execution ID is a unique identifier for a specific agent run. Use it to reference a run in Optimizely Support requests, share it with collaborators, or monitor a long-running execution. Use the Execution ID for any of the following:
- Tracking and monitoring – Track the progress and status of a long-running agent execution.
- Retrieving results – Use the Execution ID to retrieve results when an asynchronous execution finishes.
- Debugging and auditing – Trace a specific run and review what happened. This is especially useful when diagnosing issues or unexpected outcomes.
- Sharing and support – Reference a specific agent run when working with support teams or collaborators.
Follow these steps to access an agent's Execution ID:
- Follow the steps in the View specialized agent logs section.
- Click the run whose execution ID you want to retrieve.
-
Click Copy for the Execution ID.
If you use Opti ID, administrators can turn off generative AI in the Opti ID Admin Center. See Turn generative AI off across Optimizely applications.
Article is closed for comments.