create_offer_rule
Create an upsell/cross-sell offer rule as draft. Specify trigger type, conditions, and suggested products with optional discounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Rule name | |
| type | Yes | Rule type: upsell, cross_sell, bundle, or post_purchase | |
| products | No | Products to suggest with optional discounts | |
| description | No | Rule description | |
| triggerType | Yes | When the offer triggers | |
| triggerConfig | No | Trigger-specific configuration |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool result payload — shape varies per tool, see the tool description | |
| summary | Yes | One-line human-readable summary of the action | |
| renderType | Yes | UI rendering hint for the result |