Classify new Gmail messages with AI and route them
Generates an n8n workflow with a Gmail Trigger, an AI Text Classifier on an OpenAI chat model that labels each email invoice, support or other, a Google Sheets append for invoices and a Slack post for support emails. The classifier's categories and the branch wiring are set from n8n's own definitions. Attach Gmail, OpenAI, Google Sheets and Slack credentials after import.
Input
Output fields
Sign up on Apify or log in
The n8n Workflow Generator - Prompt to Importable JSON Actor is ready to run with the inputs already set for "Classify new Gmail messages with AI and route them". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Classify new Gmail messages with AI and route them" task
The n8n Workflow Generator - Prompt to Importable JSON Actor will start running based on the input automatically. You can also change all the input fields, like what should the workflow do?, to match your specific use case.
Receive the "Classify new Gmail messages with AI and route them" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as workflow, valid, nodes, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Classify new Gmail messages with AI and route them" task via API.

Integrate "Classify new Gmail messages with AI and route them" into your workflow
Connect "Classify new Gmail messages with AI and route them" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay