Send follow-up emails if appropriate
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
- Data store
- Transform
- Code
- Messaging
- Routing
- Trigger
- Subworkflow
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 |
|---|---|---|---|
| Update last contacted time | Data store | Google Sheets | update |
| Set message template | Transform | Edit Fields | See node parameters |
| Email sequence | Transform | Edit Fields | See node parameters |
| Fill message placeholders | Code | Code | See node parameters |
| Compose message | Transform | Edit Fields | See node parameters |
| Get previous message threads | Messaging | Gmail | thread |
| Get thread details | Messaging | Gmail | thread / get |
| Classify threads | Code | Code | See node parameters |
| Next message due? | Routing | Filter | See node parameters |
| Execute Workflow Trigger | Trigger | Execute Workflow Trigger | See node parameters |
| Replying? | Routing | If | See node parameters |
| Send new message | Messaging | Gmail | See node parameters |
| Call message send sub-workflow | Subworkflow | Execute Workflow | See node parameters |
| Prepare reply params | Transform | Edit Fields | See node parameters |
| Prepare first message params | Transform | Edit Fields | See node parameters |
| Call message send sub-workflow1 | Subworkflow | Execute Workflow | See node parameters |
| To email? | Routing | Filter | See node parameters |
| Decode messages | Code | Code | See node parameters |
| Decode placeholder values | Code | Code | See node parameters |
| Package placeholder values | Code | Code | See node parameters |
| Settings | Transform | Edit Fields | See node parameters |
| Reply to message | Messaging | Gmail | reply |
| Get emails | Data store | Google Sheets | See node parameters |
| Every hour | Trigger | Schedule Trigger | See node parameters |
| Don't email on weekends | 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
gmailOAuth2googleSheetsOAuth2Api
Workflow notes
Sticky Note2
Follow-up is due if:
- All the messages in the thread are automated (no-one has replied yet)
- Enough time has passed for the next message to be sent
Sticky Note4
Columns the sheet needs
- first_emailed (leave blank - will be filled in automatically)
- Other columns matching placeholders in email sequence
Sub-workflow for sending the emails
Sub-workflow for sending the emails
This is called by the sections above - you shouldn't need to touch it
Sticky Note3
If reply_message_id is set, will reply to that message.
Otherwise, will send a new message to the user in the 'email' field
Try me out
Try me out
- Clone this Google worksheet and update the 'Settings' node with its URL (plus change any other settings there you need to)
- Adjust the sequence of emails you want to send in the 'Email Sequence' node
Make sure you set how many days after the previous email to wait before sending, and note that the emails are in HTML format.
Send follow-up emails if appropriate
Send follow-up emails if appropriate
Purpose and structure
This folder contains the Send follow-up emails if appropriate workflow. Its executable nodes use code, executeWorkflow, executeWorkflowTrigger, filter, gmail, googleSheets, if, scheduleTrigger, set. 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
Execute Workflow Trigger, Every hour
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/Code/0437_Code_Filter_Create_Scheduled.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Send initial emails
- Send follow-up emails if appropriate