Specialized agent logs

  • Updated

You can view and download a log of a specialized agent's execution in Optimizely Opal. Use the logs to help you debug the agent and see how your agent is performing. 

Access your agents

  1. Go to home.optimizely.com
  2. Select your organization.
  3. Select Opal.

    Click Opal
  4. Click Agents

  5. Select the Your Agents tab.

View specialized agent logs

To access the Logs of a specialized agent, complete the following steps:

  1. Follow the steps in the Access your agents section.
  2. Click the agent for which you want to view its logs or click More (...) > Edit Agent.
  3. Select the Logs tab.

  4. 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:

  1. Status – Displays Started as the agent is running.
  2. Stop Execution – Click to stop the agent.
  3. Close – Close the execution details.
  4. Version information – The version number and timestamp of when the agent was started.
  5. Agent Name – The name of the agent invoked. Click Copy to copy the name to your clipboard.
  6. 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.
  7. Execution Time – The timestamp of when the agent was started.
  8. Triggered By – The name of the user who started the agent.
  9. Input Variables – The variables that were used in the execution. Click Copy to copy the variables to your clipboard to easily reference and debug agent runs.
  10. 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 executions:

  1. Status – If the agent is Completed or Failed.
  2. Version information – The version number and timestamp of when the agent was started
  3. Open in Test Run – Click to open the execution as a test run with the same variables from the execution already entered.
  4. Close – Close the execution details.
  5. Agent Name – The name of the agent invoked. Click Copy to copy the name to your clipboard.
  6. 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.
  7. Execution Time – The timestamp of when the agent was started.
  8. Triggered By – The name of the user who started the agent.
  9. Duration – The total time of how long the agent took to run.
  10. (Optional) Evaluation Score – The quality score for the execution, along with a Pass or Fail image. Only displays if you added preferred output examples for the agent.
  11. Credits – Approximate credit usage for this execution. Final usage may vary slightly. See Optimizely Opal credits.
  12. Input Variables – The variables that were used in the execution. Click Copy to copy the variables to your clipboard to easily reference and debug agent runs.
  13. (Optional) Artifacts – A link to the canvas output if one was created during the execution's run. 
  14. Output – The agent response from Opal including any error messages.
  15. Rerun – Click to rerun the agent with the same variables as the execution.
  16. Execution Memory – The memory chunks the agent transversed during its execution.
  17. (Optional) Evaluation Score – The quality score for the execution, along with a Pass or Fail image. Only displays if you added preferred output examples for the agent.

Export a specialized agent execution logs

Download a record of your specialized agent's execution history as a CSV or Excel file to track usage, review inputs and outputs, and measure ROI.

  1. Follow the steps in the Access your agents section.
  2. Click the agent for which you want to view its logs or click More (...) > Edit Agent.
  3. Click More (...) > Export logs.

  4. Select the columns you want to include. See Available columns.
    • Click Deselect all to clear all selections.
  5. Select your format, CSV or Excel, from the Format drop-down list. See Export formats.

  6. Click Export.

Available columns

  • Execution InfoAgent 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

  • 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 very long outputs gracefully.

Things to know

  • 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

You can set a specific specialized agent execution as a preferred output that Opal can use to evaluate its responses against. The preferred output is used to create an Evaluation Score. You can add up to five preferred outputs and you should add at least three diverse outputs. See Add Output Evals for more information.

To set an execution as an Output Eval, complete the following:

  1. Follow the steps in the Access your agents section.
  2. Click your specialized agent or click More (...) > Edit Agent.
  3. Select the Logs tab.
  4. Click More (...) for an execution and select Link as Output Eval.

This 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 run of an agent. You might need it for the following reasons:

  • Tracking and monitoring – It lets you track the progress and status of a long-running agent execution.
  • Retrieving results – If an agent's execution is asynchronous or takes time, you can use the Execution ID to retrieve the results once the agent has finished its work.
  • Debugging and auditing – In case of issues or unexpected outcomes, the Execution ID helps in tracing back the specific run, reviewing logs, and understanding what happened during that execution.
  • Referencing – It provides a concrete reference point when discussing a particular agent run with support teams or collaborators.

To access an agent's Execution ID, complete the following:

  1. Follow the steps in the View the agent logs section.
  2. Click the agent's run you want to retrieve its execution ID.
  3. Click Copy for the Execution ID.