I’'m looking for information where I have the following tasks:
- Task to extract text from a pdf file (using a custom tool)
- Task that creates a web search query based on the content from task 1.
- Task that should use the the web search query from task one using the DuckDuckGoSearchRun tool.
Question:
How can I use the output from task 2 as input for Task 3?
Thank you for your help.
Regards,
Stefan Stranger
1 Like
If you’re using the sequential process, then this is taken care of by CrewAI. As stated in the docs:
Sequential Process
This method mirrors dynamic team workflows, progressing through tasks in a thoughtful and systematic manner. Task execution follows the predefined order in the task list, with the output of one task serving as context for the next.
To customize task context, utilize the context
parameter in the Task
class to specify outputs that should be used as context for subsequent tasks.
1 Like