Create Deal
create_dealA deal needs a person or a company (or both). Link someone Sliq already knows by id (query_people / query_companies), or pass new_person / new_company to add them. If the person already has an open deal this refuses and names it — update that deal instead, unless the user wants a second one (then pass allow_duplicate=true). The created deal, same shape as a query_deals row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Deal name, e.g. "Acme - pilot". Usually the company name. | |
| notes | No | Free-text notes. | |
| stage | No | Pipeline stage by name or id (query_deals lists them). Default: the first stage. | |
| amount | No | Deal value as a plain number, e.g. 12000. | |
| person_id | No | The contact, as a query_people `id`. | |
| company_id | No | The company, as a query_companies `id`. | |
| new_person | No | A contact to add: name plus email or LinkedIn URL. Used instead of person_id. | |
| new_company | No | A company to add: name plus domain. Used instead of company_id. | |
| assignee_email | No | The owner, an active teammate's email from list_teammates (not an invited one). Default: the user. | |
| allow_duplicate | No | Create even if this person already has an open deal. | |
| expected_close_date | No | YYYY-MM-DD. |