Automate Gmail Organization with AI-Powered Email Classification and Smart Labeling
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Wordpress and OpenAI Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch One WordPress Blog (Wordpress): get many
- Blog Tags Generator (Basic LLM Chain): sends a prompt to an LLM, with model: 4.1 mini; output parser: Structured Output Parser
- Split Out: splits a list into separate items
- Fetch All Tags (HTTP Request): calls an HTTP API
- Tagging Loop (Loop Over Items (Split in Batches)): loops over the items in batches
- Clean Data (Split Out): splits a list into separate items
- Switch: routes items into 2 branches
- Create New Tag (HTTP Request): calls an HTTP API (POST)
- Merge: merges the data from its input branches
- Merge: merges the data from its input branches
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Wordpress
n8n-nodes-base.wordpress - Manual Trigger
n8n-nodes-base.manualTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Switch
n8n-nodes-base.switch - Aggregate
n8n-nodes-base.aggregate - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge
From the author
📧 AI-Powered Gmail Auto-Labeling with Smart Classification This n8n workflow automatically organizes your Gmail inbox by intelligently categorizing incoming emails and applying custom labels using AI-powered sentiment analysis. Say goodbye to manual email…