http request and get mailbox ids and split out
Configured with Email Read Imap, Filter, HTTP Request, Open Ai, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Web / API
- Transform
- Messaging
- AI & models
- Routing
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 |
|---|---|---|---|
| Session | Web / API | HTTP Request | See node parameters |
| Get Mailbox IDs | Web / API | HTTP Request | POST |
| Split Out | Transform | Split Out | See node parameters |
| Email Trigger (IMAP) | Messaging | Email Read Imap | See node parameters |
| Get fields from source email | Transform | Edit Fields | See node parameters |
| OpenAI | AI & models | Open Ai | See node parameters |
| Filter for drafts folder | Routing | Filter | See node parameters |
| upload draft email | Web / API | HTTP Request | POST |
| gather data for draft email | Transform | Edit Fields | 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
httpHeaderAuthimapopenAiApi
Workflow notes
Get Mailbox IDs
https://api.fastmail.com/.well-known/jmap
https://api.fastmail.com/jmap/session
Workflow Description:
Workflow Description:
This n8n workflow automates the drafting of email replies for Fastmail using OpenAI's GPT-4 model. Here’s the overall process:
- Email Monitoring: The workflow continuously monitors a specified IMAP inbox for new, unread emails.
- Email Data Extraction: When a new email is detected, it extracts relevant details such as the sender, subject, email body, and metadata.
- AI Response Generation: The extracted email content is sent to OpenAI's GPT-4, which generates a personalized draft response.
- Get Fastmail Session and Mailbox IDs: Connects to the Fastmail API to retrieve necessary session details and mailbox IDs.
- Draft Identification: Identifies the "Drafts" folder in the mailbox.
- Draft Preparation: Compiles all the necessary information to create the draft, including the generated response, original email details, and specified recipient.
- Draft Uploading: Uploads the prepared draft email to the "Drafts" folder in the Fastmail mailbox.
Prerequisites:
Prerequisites:
- IMAP Email Account: You need to configure an IMAP email account in n8n to monitor incoming emails.
- Fastmail API Credentials: A Fastmail account with JMAP API enabled. You should set up HTTP Header authentication in n8n with your Fastmail API credentials.
- OpenAI API Key: An API key from OpenAI to access GPT-4. Make sure to configure the OpenAI credentials in n8n.
http request and get mailbox ids and split out
http request and get mailbox ids and split out
Purpose and structure
This folder contains the http request and get mailbox ids and split out workflow. Its executable nodes use emailReadImap, filter, httpRequest, openAi, 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
Inspect connections; no recognized trigger.
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/0587_Splitout_Filter_Send_Webhook.json MIT; preserve source notices.