createHuman and reuse them across workflows.
- The output of
fetchDraftApplicationis injected intomanualReview(output.current) and delivered to the client throughpendingHuman.output. - The human response becomes the input of
finalizeDecision, which can also access the original data viacontext.initialInput.
Execution cycle
run.resumeWithHumanInput validates the response using the human step schema and resumes the workflow until completion.
Best practices
- Use stable identifiers for human steps—workflow resumes rely on them.
- Send rich metadata in
outputto simplify UI rendering (summaries, links, stats). - Record
step:human:*events in your observability platform to track turnaround times.