Skip to main content

Triage LinkedIn notifications and InMails using Gmail, OpenAI, Notion, and Slack

Workflow preview

Workflow preview
100%
Triage LinkedIn notifications and InMails using Gmail, OpenAI, Notion, and Slack preview
Open on n8n.io

1. Workflow Overview

LinkedIn Inbox Triage (Gmail Label to Notion + Slack) This n8n template demonstrates how to use AI to triage LinkedIn emails in your Gmail inbox, so you only see the messages worth your time. It fi...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.scheduletrigger, n8n-nodes-base.gmail, n8n-nodes-base.filter, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.notion, n8n-nodes-base.slack

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Paul Karrmann.

Original n8n.io source

1.1 Workflow description

Title
Triage LinkedIn notifications and InMails using Gmail, OpenAI, Notion, and Slack
Workflow name
Triage LinkedIn notifications and InMails using Gmail, OpenAI, Notion, and Slack

LinkedIn Inbox Triage (Gmail Label to Notion + Slack)

This n8n template demonstrates how to use AI to triage LinkedIn emails in your Gmail inbox, so you only see the messages worth your time. It filters out automated noise, scores sales likelihood, drafts quick replies for real conversations, stores everything in Notion, and sends you a Slack DM for items you should answer quickly.

Good to know

  • This workflow sends email content to an LLM. Do not use it with sensitive mailboxes unless you are comfortable with that.
  • Cost depends on your model choice and token usage. The body is currently limited to 4000 characters to control spend.
  • If you want a shorter run window, adjust the receivedAfter filter.

How it works

  • Runs on a daily schedule.
  • Pulls emails from Gmail using a label you define (example: LinkedIn).
  • Applies two filters:
  • Keeps only invitations and messages
  • Removes common automated notifications
  • Fetches the full email body for better classification.
  • Sends the message to an AI agent that returns strict structured JSON:
  • action (reply_quick, review, ignore, block)
  • relevancy_score (0 to 100)
  • sales_likelihood (0 to 1)
  • summary
  • optional reply_draft
  • Applies a quality gate to keep high signal messages.
  • Writes the output to a Notion database as a ticket.
  • Sends a Slack DM only for items marked reply_quick.

How to use

  • Create a Gmail label that captures LinkedIn emails, then add the label id to the Gmail node.
  • Create a Notion database with fields matching the Notion node mapping.
  • Connect your OpenAI, Gmail, Notion, and Slack credentials in n8n.
  • Run once manually to verify mapping, then enable the workflow.

Requirements

  • Gmail account
  • OpenAI API credentials (or compatible model node)
  • Notion database
  • Slack account

Customising this workflow

  • Make it more aggressive by increasing the sales threshold or raising the relevancy cutoff.
  • Add more filter phrases for your own LinkedIn email language.
  • Swap Slack DM for a channel post, or send a daily digest instead of per message.
  • Add a redaction step before the AI node if you want to remove signatures or quoted replies.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 3 - Daily Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 4 - Pull Messages From with LinkedIn tags

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 5 - First Filter for non direct messages or invites

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.3

Block 6 - Second Filter for non direct messages or invites

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.3

Block 7 - Pull body of messages

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 8 - Open AI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 9 - LinkedIn Triage Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 10 - Filter out Irrelevant and Sales heavy requests

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.3

Block 11 - Put into Ticketing System

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 12 - Filter out reply quick tickets

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.3

Block 13 - Send Message to myself

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Triage LinkedIn notifications and InMails using Gmail, OpenAI, Notion, and Slack
Complexity advanced
Nodes 19
Categories Ticket Management, AI Summarization
Author Paul Karrmann
Published 30 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13121/13121.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Triage LinkedIn notifications and InMails using Gmail, OpenAI, Notion, and Slack do?

LinkedIn Inbox Triage (Gmail Label to Notion + Slack) This n8n template demonstrates how to use AI to triage LinkedIn emails in your Gmail inbox, so you only see the messages worth your time. It fi...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.