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.jsonname: generate-recipedescription: 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: markdownRun It
# You'll be prompted for ingredientsconductor run recipe.yaml
# Or provide them directlyconductor 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: llmwith amodelandprompt - Model tiers -
fast,balanced, orstrategic(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.