Sort new emails in Gmail with AI and add the right labels without manual work. Great for teams that get many messages and need fast routing for partnership requests, inquiries, and routine notifications.
Here is how it runs end to end. A Gmail trigger watches for new messages on a schedule. The message body is pulled and sent to an AI step that chooses labels from a list you define. The AI output is parsed into clean JSON, then mapped to fields. The flow fetches your Gmail label catalog, matches the AI label names to real label IDs, builds one list of IDs, and applies them back to the email. This creates consistent labeling and a clean inbox with reliable rules.
Setup is simple. Create the same labels in Gmail and in the AI prompt and JSON schema so names match exactly. Connect Gmail and OpenAI credentials in n8n Cloud. Adjust the polling interval to fit your volume. Expect faster triage, less context switching, and fewer missed messages from partners or prospects. Teams in sales ops, marketing ops, or shared inbox owners can use it to route work to the right person in minutes.