manage_opportunities
Add or change a lead's opportunities
Opportunities are what a lead might buy. action: add (lead_id and name, optionally an estimate), update (name, estimate, expected close date of an open opportunity), mark_quoted (a quote was sent), close_won, close_lost (with loss_reason).
An estimated value is an estimate: it is never counted as revenue and must never be reported as sales. Closing an opportunity as won does not record revenue either: call record_sale with the real amount and this opportunity_id. Use only values the person stated; do not invent an estimate. This tool does not change the lead's status (update_lead_status) and sends nothing. Opportunity ids are in get_lead. Pass request_key with add so a retry does not create a second one.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
action |
string | yes | What to do.One of: add, update, mark_quoted, close_won, close_lost |
lead_id |
string | no | For add: the lead the opportunity belongs to. |
opportunity_id |
string | no | For every action except add: the opportunity id from get_lead. |
name |
string | no | For add and update: what the lead might buy, for example "6 kW rooftop system". |
estimated_value_minor |
integer | no | For add and update: the estimated value in minor units. An estimate, never revenue. |
currency |
string | no | ISO 4217 currency of the estimate. Defaults to the workspace currency. |
clear_estimate |
boolean | no | For update: true to remove the estimate. |
expected_close_on |
string | no | For add and update: the day it is expected to close, YYYY-MM-DD. |
loss_reason |
string | no | For close_lost: why it was lost. Short, without personal details. |
request_key |
string | no | For add: any unique string. The same key returns the first result. |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.
How tools behave: confirmation, review links, errors and limits
In the same group
create_lead · create_status_link · get_crm_status · get_lead · import_leads · list_leads · record_refund · record_sale · revoke_status_link · update_lead · update_lead_status