Objective:
I aim to encapsulate the CrewAI workflow within an API, enabling seamless interaction with the front end.
Use Case:
The API should accept a POST request from the front end, with input data provided in the payload. Upon receiving the request, the API should initiate the CrewAI flow and return a response with the output from the first crew.
After this initial response, the user should have the flexibility to make adjustments or verify the output. Once the user confirms and decides to proceed, the API should execute the full CrewAI workflow and return data for each step. The response should be delivered via a websocket, webhook, or API, depending on the most efficient and scalable approach.
Expected Outcome:
Enable the CrewAI workflow to be triggered and controlled via an API, allowing dynamic execution of different steps as needed.