Compile an offer into negotiation rules
compile_offer_policyTurn a seller's offer, described in plain words, into negotiation RULES an AI agent cannot break.
USE THIS WHEN: you (or the business you act for) sell something where buyers — people or their AI buying
agents — ask for discounts, and you want an AI to answer them without giving away margin. Describe the offer:
the listed price, the lowest price you'd take for a plain deal, what you'd trade a discount for (financing with
you, a trade-in, a longer commitment, paying sooner, buying this week…), extras you can add and what they cost
you, and anything never on the table. Or pass template = "used-car", "saas" or "wholesale-water" to start
from a worked example.
Compiling a description runs a language model and needs an access_key (pilot businesses get one at
https://snhp.dev/#pilot); templates are free.
Returns {ok, policy, issues, summary}: policy is the machine-readable rule set (pass it to
draft_negotiation_reply), summary restates the floor, walk-away, what can be traded and the limits in plain
words, and issues lists what to fix before going live (e.g. a floor below cost).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | No | Instead of a description: 'used-car', 'saas' or 'wholesale-water' (free, no key). | |
| access_key | No | Your SNHP access key — needed to compile a description (it runs a language model). Pilot businesses get one at https://snhp.dev/#pilot. | |
| description | No | Your offer in plain words: listed price, the lowest you'd take for a plain deal, what you'd trade a discount for, extras you can add and their cost, what is never on the table. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| error | No | ||
| issues | No | ||
| policy | No | ||
| served | No | ||
| summary | No |