Blueprints: save a pattern, run it with different inputs
A blueprint is a reusable template for work Cadreen does. You create one from a successful trace or from scratch, then run it whenever you need the same type of work done with different data.
What is a blueprint?
A blueprint captures the pattern of a successful piece of work — the intent, the plan, the tools it uses, the rules it respects — so you can repeat it with different inputs.
A blueprint is not a replay — it's a template that runs with different data each time
Create a blueprint from a trace
The easiest way to create a blueprint: find a trace where Cadreen did exactly what you wanted, and save it as a reusable template.
1. Go to /dashboard/traces
2. Find the trace you want to repeat
3. Click "Save as workflow"
4. Give it a name — doneCreate a blueprint from scratch
You can also create a blueprint manually. Define the name, description, and optional parameter schema — Cadreen builds the plan when you run it. The parameter schema is JSON Schema (draft 2020-12 unless it says another with $schema), up to 64 KiB. It can't refer to anything outside itself (a $ref to a file or a web address is refused), and format is a note, not a check. A schema Cadreen can't use is refused when you save the workflow, with a 400 parameter_schema_invalid.
curl -X POST https://api.cadreen.com/api/v1/cadreen/blueprints \
-H "Authorization: Bearer sk_cadreen_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Daily analytics report",
"description": "Generate and email the daily analytics dashboard",
"parameter_schema": {
"type": "object",
"properties": {
"date": { "type": "string", "format": "date" }
}
}
}'Run a blueprint
Running a blueprint creates a new execution. You pass parameters — the blueprint provides defaults for anything you omit.
1. Go to /dashboard/blueprints
2. Find the blueprint you want to run
3. Click the play button
4. Fill in parameters (or use defaults)
5. Run — see results in real timecurl -X POST https://api.cadreen.com/api/v1/cadreen/blueprints/9b2f6c1e-4a7d-4e2b-8c3f-1d5e7a9b0c21/runs \
-H "Authorization: Bearer sk_cadreen_..." \
-H "Content-Type: application/json" \
-d '{ "params": { "date": "2026-06-22" } }'Automate with schedules
Attach a schedule to a blueprint and it runs on that timetable — daily, weekly, or on a cron expression. No custom scheduler needed.
curl -X POST https://api.cadreen.com/api/v1/cadreen/schedules \
-H "Authorization: Bearer sk_cadreen_..." \
-H "Content-Type: application/json" \
-d '{
"blueprint_id": "9b2f6c1e-4a7d-4e2b-8c3f-1d5e7a9b0c21",
"name": "Weekday analytics report",
"trigger": { "type": "cron", "expression": "0 9 * * 1-5" },
"timezone": "America/New_York"
}'Schedule events are delivered via webhooks: schedule.run.created, schedule.run.completed, schedule.run.failed, schedule.run.needs_human. See Schedules & automation for the full reference.
List, inspect, and manage blueprints
A blueprint belongs to the workspace it was saved in. Seeing, changing, archiving, running or scheduling it needs a member of that workspace, or that workspace's API key; from another workspace it isn't found.