Create opportunity
ghl_create_opportunityCreate a new opportunity in a pipeline stage. Retrieve pipeline and stage IDs with ghl_get_pipelines, then add deals with contact, value, and status.
Instructions
Create a new opportunity (deal) in a pipeline stage. Use ghl_get_pipelines first to obtain valid pipelineId and pipelineStageId values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Opportunity name/title. | |
| status | No | Initial status. | open |
| contactId | Yes | Contact this opportunity belongs to. | |
| assignedTo | No | User id to assign. | |
| locationId | No | GHL Location (sub-account) ID. Defaults to GHL_LOCATION_ID. | |
| pipelineId | Yes | Target pipeline id. | |
| monetaryValue | No | Deal value in account currency. | |
| pipelineStageId | Yes | Target stage id within the pipeline. |