hubspot_workflows_create
Create automation workflows in HubSpot for any CRM object type. Configure enrollment criteria and actions to automate processes.
Instructions
[BETA] Create a new automation workflow (flow) in HubSpot Automation v4 API. The "name" and "type" fields are required. All other fields are optional and can be configured after creation using hubspot_workflows_update. Complex fields like enrollmentCriteria use recursive filter branch structures — see the HubSpot Automation v4 BETA documentation for the full schema. Requires the "automation" OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the workflow. Required. | |
| type | Yes | The CRM object type this flow operates on. Use CONTACT_FLOW for contact-based workflows (most common), DEAL_FLOW for deal-based, etc. | |
| actions | No | Initial list of automation action nodes for the flow. Each action has a "type" field and type-specific "inputFields". See HubSpot Automation v4 BETA documentation. | |
| flowType | No | Architectural type. Defaults to WORKFLOW when omitted. | |
| isEnabled | No | Whether to activate the flow immediately after creation. Defaults to false. | |
| objectTypeId | No | HubSpot internal object type ID string (e.g., "0-1" for contacts). | |
| enrollmentCriteria | No | Defines when/how records enter the flow. Uses recursive OR/AND filter branch trees. See the HubSpot Automation v4 BETA documentation for the PublicOrFilterBranch schema. |