upsert_lead_profile
Create or update a HubSpot lead, upsert its company and contact records, and associate them. Duplicate-safe with error reporting.
Instructions
Create or update one lead in HubSpot: upserts the Company, upserts the Contact, and associates them. Creating and updating are ONE upsert, so calling this twice for the same lead is safe and does not duplicate. Returns the HubSpot ids. Bad data is recorded and reported as failed, never silently dropped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| phone | No | ||
| industry | No | ||
| job_title | No | ||
| company_id | Yes | ||
| employee_id | Yes | ||
| lead_ref_id | No | ||
| annual_revenue_m | No | ||
| decision_maker_flag | Yes | ||
| frequency_of_purchase | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||