Encapsulating CrewAI Workflow within an API for Dynamic Execution

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.

It’s not clear what kind of help/support you are looking for here.

I am looking for a way to integrate CrewAI with my front-end application through an API. The goal is to enable seamless interaction between the front end and CrewAI, allowing the front-end application to receive responses dynamically when making requests. Instead of running a single command, I want to establish a more interactive and continuous exchange between the two systems.

Solution for the above usecase

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