receive schedule events and search airtable and gmail
Configured with Agent, Airtable, Edit Image, Execute Workflow, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Data store
- Messaging
- Subworkflow
- Transform
- Routing
- Code
- Integration
- AI & models
- Files / media
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 |
|---|---|---|---|
| Schedule Trigger | Trigger | Schedule Trigger | See node parameters |
| Search daily | Data store | Airtable | search |
| Search weekly | Data store | Airtable | search |
| confirmation email1 | Messaging | Gmail | See node parameters |
| Execute Workflow | Subworkflow | Execute Workflow | See node parameters |
| Create Event | Transform | Edit Fields | See node parameters |
| Execute Workflow Trigger | Trigger | Execute Workflow Trigger | See node parameters |
| Unsubscribe Form | Trigger | Form Trigger | See node parameters |
| Set Email Vars | Transform | Edit Fields | See node parameters |
| Log Last Sent | Data store | Airtable | update |
| Search surprise | Data store | Airtable | search |
| Should Send = True | Routing | Filter | See node parameters |
| Should Send? | Code | Code | See node parameters |
| Create Subscriber | Data store | Airtable | upsert |
| Update Subscriber | Data store | Airtable | update |
| Subscribe Form | Trigger | Form Trigger | See node parameters |
| Execution Data | Integration | Execution Data | See node parameters |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
| Wikipedia | Integration | Tool Wikipedia | See node parameters |
| Content Generation Agent | AI & models | Agent | See node parameters |
| Groq Chat Model | AI & models | LM Chat Groq | See node parameters |
| Generate Image | AI & models | Open Ai | image |
| Resize Image | Files / media | Edit Image | resize |
| Send Message | Messaging | Gmail | 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
airtableTokenApigmailOAuth2groqApiopenAiApi
Workflow notes
4. Using Subworkflows to run executions concurrently
4. Using Subworkflows to run executions concurrently
This configuration is desired when sequential execution is slow and unnecessary. Also if one email fails, it doesn't fail the execution for everyone else.
1. Subscribe flow
1. Subscribe flow
Use a form to allow users to subscribe to the service.
2. Unsubscribe flow
2. Unsubscribe flow
- Uses Form's pre-fill field feature to identify user
- Doesn't use "email" as identifier so you can't unsubscribe others
3. Scheduled Trigger
3. Scheduled Trigger
- Runs every day at 9am
- Handles all 3 frequency types
- Send emails concurrently
5. Use Execution Data to Filter Logs
5. Use Execution Data to Filter Logs
If you've registered for community+ or are on n8n cloud, best practice is to use execution node to allow filtering of execution logs.
6. Use AI to Generate Factoid and Image
6. Use AI to Generate Factoid and Image
Use an AI agent to automate the generation of factoids as requested by the user. This is a simple example but we recommend a adding a unique touch to stand out from the crowd!
7. Send Email to User
7. Send Email to User
Finally, send a message to the user with both text and image. Log the event in the Airtable for later analysis if required.
Try It Out!
Try It Out!
This n8n templates demonstrates how to build a simple subscriber service entirely in n8n using n8n forms as a frontend, n8n generally as the backend and Airtable as the storage layer.
This template in particular shows a fully automated service to send automated messages containing facts about a topic the user requested for.
How it works
- An n8n form is setup up to allow users to subscribe with a desired topic and interval of which to recieve messages via n8n forms which is then added to the Airtable.
- A scheduled trigger is executed every morning and searches for subscribers to send messages for based on their desired intervals.
- Once found, Subscribers are sent to a subworkflow which performs the text content generation via an AI agent and also uses a vision model to generate an image.
- Both are attached to an email which is sent to the subscriber. This email also includes an unsubscribe link.
- The unsubscribe flow works similarly via n8n form interface which when submitted disables further scheduled emails to the user.
How to use
- Make a copy of sample Airtable here: https://airtable.com/appL3dptT6ZTSzY9v/shrLukHafy5bwDRfD
- Make sure the workflow is "activated" and the forms are available and reachable by your audience.
Need Help?
Join the Discord or ask in the Forum!
Happy Hacking!
receive schedule events and search airtable and gmail
receive schedule events and search airtable and gmail
Purpose and structure
This folder contains the receive schedule events and search airtable and gmail workflow. Its executable nodes use agent, airtable, code, editImage, executeWorkflow, executeWorkflowTrigger, executionData, filter, formTrigger, gmail, lmChatGroq, memoryBufferWindow, openAi, scheduleTrigger, set, toolWikipedia. 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
Schedule Trigger, Execute Workflow Trigger, Unsubscribe Form, Subscribe Form
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/0658_Code_Schedule_Create_Scheduled.json MIT; preserve source notices.