Create your first workplan
Alfa workplans are reusable analysis plans that define what analysis to perform. This guide explains how to create, monitor, and manage workplans. Once created, workplans can be executed multiple times to generate reports with fresh data.
Understanding Workplans vs Reports
- Workplan: An execution plan based on the user’s prompts to create reports.
- Report: A single execution of a workplan that generates a report.
A workplan can generate multiple reports. See the schedule and automate workplans guide for more details.
Creating your first workplan
Creating a workplan is simple - you just need to provide a clear prompt that describes what you want the workplan to do.
For complex analyses, you can include placeholders like {doc} in your prompt to reference custom documents. See our Custom Documents guide for details.
Example: Creating a workplan for comprehensive price target analysis
Monitoring workplan creation
After creating a workplan, it goes through a processing phase to build the execution plan. You can check its status to know when it’s ready.
The workplan can be in one of the following states during creation:
CREATING: The workplan is being created and processedREADY: The workplan is ready to be executedFAILED: The workplan creation failedCANCELLED: The workplan creation was cancelled
Once a workplan has its status set as READY, you can view the execution plan created from the user prompt.
Next steps
Now that you know how to create and manage workplans, you can:
- Learn how to edit and manage workplans to modify and improve existing workplans
- Learn how to create and manage reports to build reports with Alfa
- Learn how to schedule and automate workplans to run on a custom schedule
- Explore using documents with your workplans
For production systems, always implement proper error handling and consider using exponential backoff for status polling to avoid rate limiting.
