subagent_conditional
Evaluate a condition using AI and execute different tasks based on the result, enabling dynamic workflow control.
Instructions
Execute conditional branching based on AI decision.
First calls AI to evaluate a condition, then executes either true_task or false_task based on the decision. Useful for dynamic workflow control.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition_task | Yes | JSON string of task to evaluate condition {provider, model, messages} AI should return "true" or "false" in response | |
| true_task | Yes | JSON string of task to execute if condition is true | |
| false_task | Yes | JSON string of task to execute if condition is false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |