Writing a Workflow via TypeScript DSL
Write workflows as async functions using the Fastn code editor model — ctx object, execution tiers, testing, and deployment patterns.
The workflow function
export default async function(ctx) {
const { input, headers } = ctx;
// Your workflow logic here
return { result: "done" };
}The ctx object
Property
Type
Description
Examples
Process incoming data
Conditional logic
Fetch external data
Batch processing
Workflow configuration
Setting
Options
Description
Execution tiers
Tier
Behavior
Use when
Testing in the editor
Testing locally
Connecting to triggers
Monitoring executions
Column
What to check
What you've learned
Last updated
Was this helpful?

