Create and send an offer
create_offerTurn an HTML document (an offer you wrote) into a tracked offer page for ONE prospect and, with send=true, email the link from the workspace's mailboxes. The recipient opens a reader page; opens, reads and temperature are tracked and emitted as offer_* webhook events. The HTML is sanitised server-side (scripts and event handlers are removed), so use plain semantic HTML: headings, paragraphs, tables, lists, inline CSS. contact is the salesperson shown on the page (id from list_team). send=false only creates the link, which is the safe way to let the user review first. send=true emails a real person: show the user the subject, message and recipient and get approval before calling. 409 when the prospect is on the suppression list or no mailbox can send.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prospect_id": "<prospect_id>",
"html": "<html>"
},
"name": "create_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The offer document as HTML. | |
| send | No | Default true. false = create the link only, send nothing. | |
| contact | No | Salesperson id from list_team. | |
| message | No | Cover message in the email. {{first_name}} style fields work. Empty = the email is just the link. | |
| subject | No | Email subject. Required when send is true. | |
| email_gate | No | Ask the reader for their email before showing the offer (default false). | |
| prospect_id | Yes | Prospect id (uuid) from search_prospects or create_prospect. | |
| message_format | No |