Calling a Sub-workflow
Configured with Execute Workflow, Execute Workflow Trigger, Filter, Gmail, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Web / API
- Routing
- Transform
- Code
- Subworkflow
- Messaging
- Data store
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| Get list of owners | Web / API | HTTP Request | See node parameters |
| Get list of clients for owner | Web / API | HTTP Request | POST |
| If | Routing | If | See node parameters |
| Edit | Transform | Edit Fields | See node parameters |
| Increment Page | Transform | Edit Fields | See node parameters |
| Split Out1 | Transform | Split Out | See node parameters |
| Merge al the entries | Code | Code | See node parameters |
| If linkedin url is empty | Routing | If | See node parameters |
| if new post | Routing | If | See node parameters |
| Get list of clients | Subworkflow | Execute Workflow | See node parameters |
| When Executed by Another Workflow | Trigger | Execute Workflow Trigger | See node parameters |
| Get last post | Subworkflow | Execute Workflow | See node parameters |
| Gmail | Messaging | Gmail | See node parameters |
| Search for user by link | Web / API | HTTP Request | See node parameters |
| Do nothing | Routing | No Op | See node parameters |
| Merge profileURL | Code | Code | See node parameters |
| Set last_post | Transform | Edit Fields | See node parameters |
| Set last_position | Transform | Edit Fields | See node parameters |
| if new position | Routing | If | See node parameters |
| Set data here | Transform | Edit Fields | See node parameters |
| Change this for testing | Routing | Filter | See node parameters |
| Create entry with email | Data store | Google Sheets | appendOrUpdate |
| Get rows from document | Data store | Google Sheets | See node parameters |
| Search for user profile by names | Web / API | HTTP Request | See node parameters |
| Profile URL not found? | Routing | If | See node parameters |
| Set the profile URL | Transform | Edit Fields | See node parameters |
| Set the profile URL1 | Transform | Edit Fields | See node parameters |
| Update last post | Data store | Google Sheets | appendOrUpdate |
| Updates last position | Data store | Google Sheets | appendOrUpdate |
| Set post_updated | Transform | Edit Fields | See node parameters |
| Set position_updated | Transform | Edit Fields | See node parameters |
| Generate the email text | Code | Code | See node parameters |
| Merge on email | Transform | Merge | See node parameters |
| Split Out owners | Transform | Split Out | See node parameters |
| Get current owner | Routing | Filter | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
gmailOAuth2googleSheetsOAuth2ApihttpHeaderAuthhubspotOAuth2Api
Workflow notes
Settings
Settings
- Set in "Set data here" the email you are registered with in Hubspot as an Owner, and the link of a Google sheet copied from this one
Search for user by link
Search by Name and company
Hubspot API
Hubspot API
Calls a Hubpot API endpoint to get the list of Owners You have to select "Predefined credential type" and choose "Hubspot Oauth2 API". Then folow the instructions here
Calling a Sub-workflow
Calling a Sub-workflow
For lisibility only
For testing
For testing
We recommend to filter a small number of clients here
Preparing the Google sheet
Preparing the Google sheet
- Create an entry for each client with his email
- Get rows for later comparison
Adding other tests
Adding other tests
Here you can set other tests like:
- New comments in LinkedIn
- Hubspot activities
- Hubspot updates etc.
Searching for the LinkedIn URL
Searching for the LinkedIn URL
- Set here you rapid API key
- If we find the URL, searches for more info about the client
Get all clients for this owner
Get all clients for this owner
As we are limited to 200 clients by the Hubsot API, we have to loop to get all of them
Contact me
Contact me
- If you need any modification to this workflow
- if you need some help with this workflow
- Or if you need any workflow in n8n, Make, or Langchain / Langgraph
Write to me: user@example.com
Calling a Sub-workflow
Calling a Sub-workflow
Purpose and structure
This folder contains the Calling a Sub-workflow workflow. Its executable nodes use code, executeWorkflow, executeWorkflowTrigger, filter, gmail, googleSheets, httpRequest, if, manualTrigger, merge, noOp, set, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When clicking ‘Test workflow’, When Executed by Another Workflow
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0915_Splitout_Code_Create_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Generating the alert email