Learn how to create structured, event-driven workflows with precise control over execution.
CrewAI Framework Overview
main.py
filecrews
directorytools
directoryllm
to the provider you are using.
context
parameter in the review task creates a workflow where the reviewer has access to the writer’s output.
main.py
file:
@start()
decorator@listen()
decorator to establish event-driven relationships between steps.env
file in your project root with your API keys. See the LLM setup
guide for details on configuring a provider.
output
directory:
guide_outline.json
: Contains the structured outline of the guidecomplete_guide.md
: The comprehensive guide with all sections@listen
decorator to respond to events@router()
to create conditional branches in your flowsand_
and or_
functions for more complex parallel execution