AI Agents can be used inside Business Rules to evaluate data and make decisions when specific events occur in an application. This allows you to apply intelligent logic at the rule level instead of relying only on fixed conditions or scripts.
Business Rules execute at defined moments such as page load, field interaction, or button click. When an AI Agent is attached to a rule, the agent evaluates the data available at that moment and returns a decision that the rule can act on.
To use an AI Agent in Business Rules, follow these steps:
Once the rule details are defined, the next step is to configure the AI Agent associated with this rule.

After defining the rule details, move to the Configure Agent tab. Select Configure New Agent if you want to create a new agent for this rule.
In the Prompt Configuration section, define how the agent behaves.
If you do not want to create a new agent, you can reuse an existing one.

After configuring or selecting an agent, you must define how data is passed to the agent and how the agent’s result is used by the rule. This is done using Input Mapping and Output Mapping.
Input Mapping defines what data the Business Rule sends to the AI Agent when the rule is executed. Follow these steps to configure input mapping:

Output Mapping defines how the AI Agent’s decision is returned to the Business Rule. Follow these steps to configure output mapping:

Once input and output mapping are completed and saved, the AI Agent becomes part of the Business Rule and is automatically executed whenever the selected rule event occurs, such as page load, field interaction, or button click.