Create and manage reports
Reports are the execution results of your workplans. Each time you run a workplan, it generates a new report with fresh analysis based on current data. This guide explains how to create, monitor, and retrieve reports from your workplans.
Running a workplan to generate a report
Once your workplan is ready, status == "READY", you can execute it to generate a new report.
Monitoring report generation
After starting a workplan execution, you can monitor the report’s progress.
Report status values
Reports can be in the following states during generation:
NOT_STARTED: The report generation hasn’t begun yetSTARTING: The workplan execution is being initializedRUNNING: The workplan is actively processing and generating resultsCOMPLETE: The report has been successfully generatedERROR: An error occurred during report generationCANCELLED: The report generation was stopped before completionNO_RESULTS_FOUND: The workplan completed but couldn’t find relevant resultsTOKEN_LIMIT: The workplan hit the token usage limit
Retrieving report output
Once a report is complete, you can retrieve the analysis results.
Report outputs can be of different types:
text: Plain text analysis and explanationstable: Structured data in tabular formatgraph: Visual representation of data as a line, bar, or pie chart
Example: Processing different output types
Reports can contain multiple types of outputs. Here’s how to handle each type:
Cancelling report generation
If you need to stop a report that’s currently being generated, there is an endpoint for that. Note that
Listing all your reports
Get an overview of all reports across all your workplans:
Example: Complete workplan execution
Here’s a complete example of creating and running a workplan to generate a report:
Next steps
Now that you understand how to create and manage reports, you can:
- Learn how to schedule and automate workplans to run on a custom schedule
- Learn how to monitor token usage efficiently build reports
- Explore using documents with your workplans
Each report execution consumes tokens and generates fresh analysis based on current data. Consider your token budget when running workplans frequently.
