Actions252
- Api Keys Actions
- Attachments Actions
- Blocklists Actions
- Calendar Channel Event Associations Actions
- Find Many Calendar Channel Event Associations
- Create One Calendar Channel Event Association
- Create Many Calendar Channel Event Associations
- Find One Calendar Channel Event Association
- Delete One Calendar Channel Event Association
- Update One Calendar Channel Event Association
- Find Calendar Channel Event Association Duplicates
- Companies Actions
- Calendar Channels Actions
- Calendar Event Participants Actions
- Calendar Events Actions
- Connected Accounts Actions
- Favorite Folders Actions
- Favorites Actions
- Message Channel Message Associations Actions
- Find Many Message Channel Message Associations
- Create One Message Channel Message Association
- Create Many Message Channel Message Associations
- Find One Message Channel Message Association
- Delete One Message Channel Message Association
- Update One Message Channel Message Association
- Find Message Channel Message Association Duplicates
- Message Channels Actions
- Message Folders Actions
- View Fields Actions
- Message Participants Actions
- Messages Actions
- Message Threads Actions
- Notes Actions
- Note Targets Actions
- Opportunities Actions
- People Actions
- Tasks Actions
- Task Targets Actions
- Timeline Activities Actions
- View Filter Groups Actions
- View Filters Actions
- View Groups Actions
- Views Actions
- View Sorts Actions
- Webhooks Actions
- Workflow Automated Triggers Actions
- Workflow Runs Actions
- Workflows Actions
- Workflow Versions Actions
- Workspace Members Actions
Overview
This node allows you to create a new workflow record in the target system via an API. It is useful for automating the creation and management of workflows programmatically, such as setting up new automation sequences or processes without manual intervention. For example, you might use this node to dynamically generate workflows based on user input or external events, ensuring consistent setup and version control.
Properties
| Name | Meaning |
|---|---|
| Depth | Determines how much nested related data to include in the response: - 0: Only primary workflow information. - 1: Primary workflow plus directly related objects. - 2: Includes related objects of related objects. |
| Last Published Version Id | The identifier of the last published version of the workflow. |
| Name | The name assigned to the new workflow. |
| Created By | JSON object describing the creator of the workflow record. |
| Position | Numeric value indicating the position or order of the workflow record. |
| Statuses | JSON array representing the current statuses of the workflow versions. |
Output
The node outputs JSON data representing the newly created workflow record, including any nested related objects depending on the Depth property. This output typically contains identifiers, metadata, and status information about the workflow. There is no indication that binary data is produced by this node.
Dependencies
- Requires an API key credential to authenticate requests to the Twenty API.
- The base URL for API requests is configured from the provided credentials.
- The node uses the Twenty API OpenAPI specification internally to build request properties and handle communication.
Troubleshooting
- Invalid or missing API credentials: Ensure that the API key and domain are correctly set in the node credentials.
- Malformed JSON inputs: Properties like
Created ByandStatusesexpect valid JSON strings; invalid JSON will cause errors. - Incorrect property values: For example, setting
Depthoutside the allowed options (0, 1, 2) may result in unexpected responses. - Network or API errors: Check connectivity and API availability if requests fail.
- Empty required fields: Fields like
Nameshould not be empty when creating a workflow.
Links and References
- Twenty API Documentation (example placeholder, replace with actual API docs)
- n8n documentation on creating custom nodes