To use the AI Agent Task in production, add the appropriate work item handler dependency (for Quarkus or Spring Boot) to your project and configure your Langflow credentials in `application.properties`. At runtime, the handler will execute the selected Langflow flow, passing in your mapped variables and returning results to your process variable.
Step-by-step runtime setup:
1. Add the correct work item handler (WIH) dependency to your project:
- For Quarkus: bamoe-ai-agent-task-work-item-handler-quarkus
- For Spring Boot: bamoe-ai-agent-task-work-item-handler-spring-boot
2. In your `application.properties` file, set the following properties with your Langflow details:
- bamoe.workflow.ai-agent-task.provider.langflow.base-url=<your-langflow-host>
- bamoe.workflow.ai-agent-task.provider.langflow.api-key=<api-key>
3. Deploy your business service as usual. When the workflow reaches the AI Agent Task node, the handler will connect to Langflow, send the input, and return the output to your process variables automatically.