workflows.fit
Back to n8n workflows
n8n templateFreeBy Seb

Automate Gmail email categorization with GPT-4o AI and reasoning

An AI inbox labelling manager that has reasoning attached to the ChatGPT inbox manager within n8n. Super simple yet highly effective automation. How it works: • Monitors Gmail inbox → triggers workflow when a new unre...

CommunicationHITLAILangchainCore NodesGmailGmail TriggerTool Think
Loading interactive preview...

Template notes

An AI inbox labelling manager that has reasoning attached to the ChatGPT inbox manager within n8n. Super simple yet highly effective automation.

How it works:

• Monitors Gmail inbox → triggers workflow when a new unread email is received.

• Fetches email details including subject, body, and sender information.

• Sends email content to OpenAI → uses AI to determine the most relevant label based on predefined rules.

• AI uses a think tool → justifies why it selected that specific label.

• Retrieves Gmail label IDs → matches AI’s choice to correct Gmail label for that email.

• Adds the chosen label (e.g., Positive reply, priority email, etc) to the email automatically → optionally marks it as read/starred.