CrewAI Flows Question

I am fairly new to crewai flows and when I was going through the examples using crewbase and decorators it appears that you need to kickoff flow from the CLI but I want to create a UI app with backend and front end, how do I kick off the logic in the code not CLI? any examples would be appreciate it

You can kickoff the flow from anywhere in your code eg API if you inport the class and kickoff the flow

...
flow = MarketResearchFlow()
result = flow.kickoff(inputs={"product": "AI-powered chatbots"})

Have you gone through the docs, they have details on that Flows - CrewAI

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.