Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate Gmail and PDF Inbox Triage
15
Views
0
Downloads
39
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Operations
Automation Orchestrator
n8n
Integrations
Webhook
Slack
Pinecone
OpenAI
Gmail
Anthropic
Trigger Type
On app event
Webhook
Approx setup time ≈ 75 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate Gmail and PDF Inbox Triage?

Leon Petrou
FREE TEMPLATE
Automate Gmail and PDF Inbox Triage
15
Views
0
Downloads
39
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Operations
Automation Orchestrator
n8n
Integrations
Webhook
Slack
Pinecone
OpenAI
Gmail
Anthropic
Trigger Type
On app event
Webhook
Approximate setup time ≈ 75 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Turn your inbox and docs into a simple AI workspace. New emails get labeled by intent, your team can ask questions over a PDF library, and a chat agent can check calendar slots and book meetings. It is built for operations and support teams that want faster answers and fewer manual tasks.

Here is how it runs. A Gmail event pulls each new email and an AI model assigns labels like automation or music, then applies them in Gmail. A webhook path can also post details to a Slack channel for quick alerts. For document Q and A, the flow downloads a PDF, splits it into chunks, creates embeddings with an AI model, and stores them in Pinecone. A chat entry searches the vector store and answers with context using an AI chat model. A second chat agent uses another AI model with tools to read calendar availability, keep memory, and confirm a booking.

Setup needs API keys for OpenAI, Anthropic, and Pinecone, plus OAuth for Gmail and Slack. Expect less time on inbox triage, fast answers from long PDFs, and smoother meeting booking. Good fits include support triage, onboarding guides, sales whitepapers, and internal scheduling.

Copy link

Tools Required

Webhook
Sign up
Free: $0 / mo; API is public and free; 100 requests per URL; 7-day expiry
Slack
Sign up
Free plan: $0 / mo; limited to 10 apps (third-party or custom) and usable via Slack API
Pinecone
Sign up
Starter (Free): $0 / mo; includes 2 GB storage, 2M write units / mo, 1M read units / mo, up to 5 indexes; API access.
OpenAI
Sign up
Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens
n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Gmail
Sign up
No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)
Anthropic
Sign up
Pay-as-you-go: Claude 3 Haiku at $0.25 per 1M input tokens and $1.25 per 1M output tokens

What this workflow does?

  • Gmail trigger captures each new email and routes it to an AI labeler
  • OpenAI chat model decides the correct Gmail labels and applies them
  • Webhook to Slack path posts key fields to a chosen channel for quick alerts
  • PDF loader downloads files and splits text into chunks for better search
  • OpenAI embeddings write document vectors to Pinecone for fast retrieval
  • Chat trigger runs retrieval Q and A using a vector store retriever and GPT 4o
  • Anthropic chat agent uses tools to read calendar availability and book meetings with memory

What are the benefits?

  • Reduce inbox triage from 60 minutes a day to 10 minutes with automatic labels
  • Answer PDF questions in seconds without manual searching
  • Cut booking back and forth by auto checking availability and confirming times
  • Connect Gmail, Slack, OpenAI, Anthropic and Pinecone in one flow
  • Handle multiple chat requests at the same time with reliable responses

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail, Slack, OpenAI, Anthropic, Pinecone and Webhook. See the Tools Required section above for links to create accounts with these services.
  3. In n8n Cloud, open the Gmail trigger node. In the Credential to connect with dropdown, click Create new credential and follow the prompts to connect your Gmail account with OAuth2.
  4. Open the Slack Send message node. Create a new Slack OAuth2 credential, pick the target workspace, and select the channel listed in the node or choose another channel.
  5. Open the OpenAI nodes. Create a new API Key credential by pasting the key from the OpenAI API page. Name the credential clearly such as OpenAI Prod.
  6. Open the Anthropic chat model node. Create a new API Key credential with your key from the Anthropic account page.
  7. Open the Pinecone nodes. Create a new API Key credential using your Pinecone API key and environment. Confirm the index name matches the node settings.
  8. Check the PDF download node. Make sure the file_url field is present in the input items. If you use your own PDFs, update the URLs or input source.
  9. Validate the RAG path: run the PDF load section, then open your Pinecone dashboard to confirm vectors were created. Next, type a chat question and verify a sourced answer returns.
  10. Test Gmail triage: send a test email that matches one of the categories. Confirm the AI adds the correct Gmail label on the message.
  11. Test Slack alerts: send a GET or POST request to the webhook URL with a query parameter called email and confirm the message appears in the channel.
  12. Configure booking tools: open the calendar tool nodes and set any required endpoints or credentials used by your calendar system. Ask the chat agent for a meeting and verify it returns an available slot and a booked event.

Need help or want to customize this?

Similar Templates

n8n
Operations
Automate Gmail Flight Price Alerts
Get daily flight deal alerts sent straight to your inbox. It watches your route and only emails you when the ticket price is at or below your target. Ideal for travel coordinators, office managers, and anyone booking company trips. Each morning a schedule runs, loads your origin and destination, and fetches airline data from Amadeus to show real carrier names. A code step creates future dates to search, by default 7 and 14 days out. The system loops through each date and calls the Amadeus flight offers API, pausing briefly between calls to respect limits. Results are merged and cleaned, key fields like price, time, duration, and carriers are extracted, and only fares under your price move forward to Gmail for a clear, easy to read alert. Set your airports in the FromTo node, tweak the day offsets in Get Dates, and choose your price target in the Under Price filter. Expect to replace manual checks with one scheduled run and act quickly when good fares show up. Most teams save 20 to 30 minutes a day and avoid missing short lived price drops. Great for controlling travel costs without monitoring sites all day.
6 views
view
n8n
Operations
Automate Gmail to Todoist Task Management
Turn important emails into clear Todoist tasks without copy and paste. The flow watches your Gmail inbox, builds a task when a new or starred email appears, and adds a short summary with next steps and a draft reply. It also closes the task when you remove the star from the email, so your list stays clean. On a schedule or when new mail arrives, it reads unread and starred messages from Gmail. New unread items can be marked as read and starred to show they need action. The flow checks open Todoist tasks and matches them to email subjects. If no match exists, it pulls the full message, sends it to OpenAI to create structured fields content, description, actions, and answer, then creates a Todoist task with that detail. A guard step checks the AI output before creating the task. Another path detects emails that lost the star and closes the linked Todoist task. To run it, connect Gmail, your email IMAP inbox, Todoist, and an OpenAI key. Pick the Todoist project where new tasks should go and adjust the optional read and star actions if you prefer different inbox rules. Teams that triage support or sales email will cut manual entry and miss fewer follow ups, often saving an hour a day.
11 views
view
n8n
Operations
Automate Gmail Spam Cleanup Alerts
Keep your Gmail inbox clean without constant manual sorting. The flow reviews older messages, removes marketing and spam, and sends you quick updates in Telegram. It suits busy teams and solo users who get too much promo mail and want less noise. It runs on demand from n8n. Emails are pulled from Gmail in 14 day chunks using a smart date filter, so large inboxes are handled in manageable windows. Google Gemini scores each email with decimal confidence for unwanted, marketing, and spam, and returns a short reason plus the email ID and sender. If the scores signal unwanted content, the message is deleted and a Telegram alert shows the sender and reason. If it looks safe, a keep label is added in Gmail and you receive a skip notice. AI errors are also posted to Telegram, so you always know what happened. You need Gmail access, a Telegram bot, and a Google Gemini API key. Set your Telegram chat ID and tune the confidence thresholds to match your risk level. Expect weekly inbox cleanup time to drop from hours to minutes while staying in control through clear alerts. You can add a schedule later with a Cron trigger to run this clean up daily.
0 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.