Introduction
The AI Agent Tool lets you integrate AI automation directly into a process by executing a predefined AI Agent during a process activity. This enables automated decision-making, content generation, or data processing based on the logic defined in the AI Agent — all as part of your Joget workflow.
Get started
To begin:
- Ensure you have already created an AI Agent in the AI Agent Builder.
- Design or modify a process in Process Builder.
- Add this tool to the appropriate process activity.
- Configure the tool to call your AI Agent.
Configure AI Agent properties
To set up the AI Agent Tool, configure the following property:
- AI Agent : Select an existing AI Agent to be executed during the process. This dropdown lists agents you’ve already created via the AI Agent Builder. This agent will be triggered automatically when the associated activity is reached in the workflow.
How it Works
When the process reaches the activity that includes this tool:
- The selected AI Agent is executed via AgentBuilder.runAgent(...).
- The WorkflowAssignment context is passed to the agent, so it can interact with form data, process variables, or perform actions.
- Any logic defined in the agent (e.g., prompts, tools, enhancers) will be processed as usual.
Example Use Cases
- Auto-respond to support tickets: Use an AI agent to generate a reply when a support ticket reaches a review stage.
- Process evaluation: Have an AI agent analyze inputs (e.g., application forms) and return decisions or summaries.
- Data enrichment: Use an agent to fetch or derive additional data from a JSON API or external source during processing.