Examples Index
This page provides an overview of all Flowcraft examples, including summaries and visualizations of each workflow.
You can clone the Flowcraft repository to run them all locally.
Basic Workflow
A basic, linear workflow that creates a greeting message. It demonstrates defining a workflow with createFlow, passing data between nodes, and executing with FlowRuntime.
Parallel Batch Translation
Demonstrates using Flowcraft's .batch() helper to translate a document into multiple languages concurrently, showcasing performance improvements for I/O-bound tasks.
Research Agent
A simple research agent that searches the web and answers questions using conditional branching and loops.
Dynamic AI Workflows from JSON Files
An in-memory runtime engine for executing declarative workflows defined as JSON files, with support for parallelism, branching, and subflows.
Distributed Dynamic Workflows
Implements the previous example, but in a distributed environment using BullMQ, with client-worker separation and awaitable workflows.
RAG Workflow for Document Analysis
A sophisticated RAG agent that implements a custom serializer, ingests documents, generates embeddings, performs vector searches, and synthesizes answers.