Go to example tasks

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.

Try for free
n8n Workflow Generator - Prompt to Importable JSON
n8n Workflow Generator - Prompt to Importable JSONmediocre_interest/n8n-workflow-builder
Workflow
Valid
Nodes
Node types
+5 fields
Text
Number
Boolean
List
Object

Input

What should the workflow do?(required):When a new email arrives in Gmail, classify it with an AI text classifier into 'invoice', 'support' or 'other'. Invoices go to a Google Sheet, support emails are posted to Slack, others are ignored.

Output fields

Workflow
Valid
Nodes
Node types
Credentials to attach
Check before use
Errors
Download JSON
Prompt

How it works

Sign up on Apify01

Create your Apify account to access the n8n Workflow Generator - Prompt to Importable JSON.

Start the run02

The Actor will start running based on the input automatically.

Receive the output03

Monitor the progress in real-time. You will be notified as soon as your dataset is complete and ready for review.

Integrate into your workflow04

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow.

Image

Integrate Actor directly into your workflow

Choose from one of 100+ integration options we provide or integrate via API

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay