Scrydon
Authoring: Process FlowsExamples

Example packs

How the example Scrydon Packs are built, imported, customised, and contributed. Browse the catalogue under Examples.

These are pre-authored Process Flows packaged as Scrydon Packs (.scrydon-pack.tar.gz). Each one groups a process flow alongside an ontology — download, inspect, then upload via /api/packs/import. Examples are not auto-installed; you opt in by importing the archive into your organization.

Each archive is built by packages/sdk-authoring/scripts/build-examples.ts from the manifest at packages/sdk-authoring/src/process-flows/examples/<slug>/index.ts, wrapped at build time into a pack. The archive is pure data — no executable code ever ships.

Browse the example packs

The example catalogue — each scenario, its full step-by-step walkthrough, sample data, and the .scrydon-pack.tar.gz download — lives in the Examples section. This page covers how those packs are built, imported from the command line, customised, and contributed.

How to import an example

Click a pack's download link in the Examples section. The archive is a small (≈ 4–6 KiB) gzip stream.

Verify the manifest before uploading.

bunx @scrydon/sdk-authoring pack inspect ~/Downloads/iso-quarterly-review-1.0.0.scrydon-pack.tar.gz

The inspector enforces the same caps the runtime applies — archive size, file count, allowed extensions, no symlinks, no path traversal — and runs the task DAG cycle check on the process-flow subdir.

POST the archive to your organization's pack import endpoint.

curl -X POST "$AGENTIC_URL/api/packs/import?organizationId=$ORG_ID" \
  -H "Cookie: $SESSION_COOKIE" \
  -F "file=@~/Downloads/iso-quarterly-review-1.0.0.scrydon-pack.tar.gz"

Once imported the template appears in the Process Flows marketplace inside your org. Click New from template to start a fresh instance.

Customising before upload

Most teams will want to tweak personas, due-offset days, or replace actionType: workflow entries with their own workflowIds. Three options:

  1. Edit the manifest, re-build. Clone the example source from packages/sdk-authoring/src/process-flows/examples/<slug>/index.ts, edit, then bun run --cwd packages/sdk-authoring build:examples to rebuild every pack. Or assemble a hand-authored pack directory and bunx @scrydon/sdk-authoring pack build path/to/pack.json --outDir dist.
  2. Fork the manifest in TypeScript. Author your own defineProcessFlow(...) in your repo, copy-pasting the example as a starting point. Recommended when the changes are non-trivial.
  3. Edit process-flow/manifest.json inside the archive. Extract → edit → re-pack with tar -czf. Quick for one-off tweaks; not recommended for ongoing maintenance.

The example manifests are versioned (package.version in both pack.json and the process-flow manifest) — bump that when you fork so your org tracks the divergence.

Adding a new example

To contribute a new example:

  1. Create packages/sdk-authoring/src/process-flows/examples/<your-slug>/index.ts exporting a defineProcessFlow(...) result.
  2. Append it to exampleTemplates in examples/index.ts.
  3. (Optional) If your example needs a real ontology, drop the ontology subdir under packages/sdk-authoring/src/packs/examples/<your-slug>/ontology/ and register it in ONTOLOGY_OVERRIDES inside scripts/build-examples.ts. Templates without an override get an empty ontology auto-generated at build time.
  4. Run bun run --cwd packages/sdk-authoring build:examples — the script auto-discovers and packages every entry.
  5. The archive lands at apps/docs/public/static/process-pack-examples/<slug>-<version>.scrydon-pack.tar.gz and is served by the docs site.
  6. Add the pack to the catalogue in the Examples section — a card on the examples index and a walkthrough page under content/docs/examples/.

The build script is fail-loud: if a manifest doesn't validate against its schema, the example is rejected and the build fails with the Zod path of the violation.

What's NOT in an example

Packs are pure data — they cannot include executable code. Custom logic is referenced by workflowId against system or organization-level workflows. The ISO examples reference compliance-quarterly-prefetch, compliance-monitoring-snapshot, compliance-evidence-sync, and compliance-vanta-final-check — these are planned system workflows. Until they ship, those workflow-typed actions degrade to manual checklists in the runtime UI.

On this page

On this page