register_trigger
Register a real-time trigger that watches a data source for a threshold condition. When the condition is met, the engine auto-runs the simulation template and optionally fires a webhook. Examples: 'alert me when monthly revenue drops below $80k', 'simulate expansion if Downtown revenue exceeds $200k'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable trigger name. | |
| condition | Yes | Threshold condition to watch. | |
| description | No | Human-readable description of what this trigger monitors. | |
| webhook_url | No | Optional HTTPS URL to POST results to when the trigger fires. | |
| auto_execute | No | When true, automatically dispatch the decision plan to execution_webhook_url after the trigger fires. | |
| simulation_template | Yes | SimulateRequest-compatible payload to run when trigger fires. | |
| execution_webhook_url | No | Optional HTTPS URL to POST the DecisionPlan execution payload to when auto_execute is enabled. |