Skip to content

Step 1: Generate a Recipe

Create a workflow that generates a dinner recipe from ingredients.

Goal

Build your first useful workflow: accept ingredients as input and generate a recipe.

The Workflow

Create recipe.yaml:

# yaml-language-server: $schema=../../schemas/workflow.schema.json
name: generate-recipe
description: Generate a dinner recipe from ingredients
inputs:
- name: ingredients
type: string
description: Comma-separated ingredients to use
steps:
- id: generate
type: llm
model: balanced
prompt: |
Generate a dinner recipe using these ingredients: {{.inputs.ingredients}}
Include:
- Recipe name
- Full ingredient list with quantities
- Step-by-step cooking instructions
- Prep and cook time
outputs:
- name: recipe
type: string
value: "{{.steps.generate.response}}"
format: markdown

Run It

Terminal window
# You'll be prompted for ingredients
conductor run recipe.yaml
# Or provide them directly
conductor run recipe.yaml -i ingredients="salmon, asparagus, lemon"

You’ll see a complete recipe tailored to your ingredients.

What You Learned

  • Workflows - YAML files with a name and steps
  • LLM steps - Use type: llm with a model and prompt
  • Model tiers - fast, balanced, or strategic (not specific model names)
  • Inputs - Accept parameters with -i name=value
  • Outputs - Return structured data from workflows
  • Template syntax - Use {{.inputs.name}} to reference inputs
  • Step references - Use {{.steps.id.response}} for step outputs

Next

Step 2: Meal Plan - Generate multiple recipes in parallel.