What a workflow contains
A workflow is the main reusable work object in PromptPlan. Each workflow contains:
- metadata such as title, summary, category, visibility, and status
- workflow inputs
- ordered steps
- model policy per step
- saved runs
- final outputs and step-by-step outputs
Workflow inputs
Inputs are the structured fields a user fills before running the workflow.
Supported input types in the MVP:
textlong_textnumberbooleanselectjson
Each input can include:
- key
- label
- required flag
- default value
- help text
- placeholder
- sort order
Workflow steps
Steps run in order and form the execution chain.
Supported step types:
inputtransformreasongeneratereviewexport
Each step can define:
- key
- title
- description
- prompt template
- output format
- provider
- model name
- temperature
- max tokens
- enabled or disabled state
Workflow runs
When a workflow runs, PromptPlan creates:
- a
WorkflowRun - a saved snapshot of the workflow definition
- a saved snapshot of run inputs
- a
WorkflowStepRunrecord for each executed step
This matters because old runs stay readable even after the workflow is edited later.
Final output rule
PromptPlan chooses the final output using this order:
- the last successful
exportstep - otherwise the last successful
generateorreviewstep - otherwise the last successful completed step
Visibility and ownership
Workflows are user-owned.
Current workflow visibility values:
private: owner-onlyunlisted: accessible by direct link for signed-in users when not archivedpublic: model exists in the schema, but public discovery is not yet the main surface
What the current MVP does not do
The current workflow system is intentionally constrained:
- linear execution only
- no branching
- no loops
- no autonomous hidden planning layer
- no local/Ollama private execution yet
Those constraints make runs easier to understand, debug, and improve.