# crewAI flow documentation

**URL:** https://community.crewai.com/t/crewai-flow-documentation/3753
**Category:** Crews
**Tags:** crewai, flows
**Created:** [February 11, 2025, 10:57pm UTC](https://community.crewai.com/t/crewai-flow-documentation/3753 "2025-02-11T22:57:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Priti\_Solanki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/priti_solanki/32/1238_2.png) [@Priti\_Solanki](https://community.crewai.com/u/Priti_Solanki)
#### Post date: [February 11, 2025, 10:57pm UTC](https://community.crewai.com/t/crewai-flow-documentation/3753/1 "2025-02-11T22:57:04Z")

</div>

Hi Team,

Referring - [Flows - CrewAI](https://docs.crewai.com/concepts/flows#retrieving-the-final-output)

Where does the flow fit in the framework?

Do I add the code of flow in main.py or crew.py? In the documentation it’s not clear. I have defined agent and task and defined the crew how to incorporate the flow concept.
