Chain three LLM steps: outline, draft, edit.
Level: LLM · Concept: Pipelines · Needs: a model API key (DEEPSEEK_API_KEY as written; any provider works)
flowchart LR
T([topic]) --> O[outline] --> D[draft] --> E[edit] --> R([article])
- Each step is a small component that builds a prompt and calls the model.
- The pipeline, not the steps, decides the order.
# Once, from the repository root
pnpm install && pnpm build
export DEEPSEEK_API_KEY=sk-...
pnpm --filter @astack-examples/workflow startThe full program is index.ts.
Next: Agent