Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
- Recorder draft review panel with reorder/edit/skip controls before inserting recorded steps.
- Autopilot plan diagnostics: overall confidence score, node-level insights, and fallback template options.
- Contributor onboarding package: 10-minute tutorial, starter workflow file, and reusable docs templates.
- Real-world starter template pack (invoice approval, web scrape sync, CSV cleanup, email triage, health check alert).

### Changed
- CI now includes browser smoke validation (`Web E2E Smoke`).
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ Use these guided demos to evaluate the platform quickly:
- `docs/DEMOS.md#demo-3-document-understanding-and-clipboard-ai`
- `docs/DEMOS.md#demo-4-workflow-builder-mvp-controls`
- `docs/DEMOS.md#demo-5-recorder-draft-review-and-insert`
- `docs/DEMOS.md#demo-6-real-world-starter-pack`

## Production Starter Templates
Use built-in templates as a fast path from idea to first successful run:

- `invoice-intake-approval`: Parse invoice text, classify risk, branch to approval, and sync approved data.
- `web-scrape-api-sync`: Scrape table data from a page and push rows to an API endpoint.
- `csv-cleanup-validation`: Import CSV rows, normalize with AI, validate required fields, and branch bad records.
- `email-triage-ticket-create`: Classify inbound email priority, summarize content, then create a ticket.
- `scheduled-health-check-alert`: Run scheduled API checks, classify service state, and alert on degradation.

Create from UI:
1. Open `Templates` in the left sidebar.
2. Select a starter template.
3. Click `Create Workflow`.

## Contributor Onboarding
New contributors should start here:
Expand Down
13 changes: 9 additions & 4 deletions apps/server/src/lib/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@ import { getWorkflowTemplate, listWorkflowTemplates } from "./templates.js";

test("listWorkflowTemplates exposes curated templates", () => {
const templates = listWorkflowTemplates();
assert.equal(templates.length >= 7, true);
assert.equal(templates.length >= 12, true);
assert.equal(templates.some((template) => template.id === "invoice-intake-approval"), true);
assert.equal(templates.some((template) => template.id === "web-scrape-api-sync"), true);
assert.equal(templates.some((template) => template.id === "csv-cleanup-validation"), true);
assert.equal(templates.some((template) => template.id === "email-triage-ticket-create"), true);
assert.equal(templates.some((template) => template.id === "scheduled-health-check-alert"), true);
assert.equal(templates.some((template) => template.id === "web-form-submit"), true);
assert.equal(templates.some((template) => template.id === "web-table-scrape"), true);
assert.equal(templates.some((template) => template.id === "conditional-routing"), true);
assert.equal(templates.some((template) => template.id === "api-cleanup-sync"), true);
assert.equal(templates.some((template) => template.id === "batch-loop-sync"), true);
const sample = templates.find((template) => template.id === "api-cleanup-sync");
const sample = templates.find((template) => template.id === "invoice-intake-approval");
assert.equal(typeof sample?.difficulty, "string");
assert.equal(Array.isArray(sample?.tags), true);
});

test("getWorkflowTemplate returns full definition for known template", () => {
const template = getWorkflowTemplate("api-cleanup-sync");
const template = getWorkflowTemplate("web-scrape-api-sync");
assert.ok(template);
assert.equal(template?.name, "API Cleanup Sync");
assert.equal(template?.name, "Web Scrape -> API Sync");
assert.equal(Array.isArray((template?.definition as any).nodes), true);
});
Loading
Loading