Skip to main content

Personalized LinkedIn responses with OpenAI GPT & Notion-based routing

Workflow preview

Workflow preview
100%
Personalized LinkedIn responses with OpenAI GPT & Notion-based routing preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? This workflow is for professionals and teams who want to automate LinkedIn message replies with intelligent, human like responses — without losing control over tone or accuracy. Id...

Best for

  • Lead Nurturing automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.executeworkflowtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.notion

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Personalized LinkedIn responses with OpenAI GPT & Notion-based routing
Workflow name
Personalized LinkedIn responses with OpenAI GPT & Notion-based routing

Who is this for?

This workflow is for professionals and teams who want to automate LinkedIn message replies with intelligent, human-like responses — without losing control over tone or accuracy. Ideal for founders, sales teams, DevRel, or community managers handling high-volume inbound messages.

What problem is this workflow solving?

Responding to every LinkedIn message manually is slow and inconsistent. Basic AI bots generate replies without context or nuance. This subworkflow solves both problems by using structured message routing from Notion and profile insights from UniPile to craft smart, context-aware responses.

What this workflow does

This workflow takes the sender’s message and profile (from LinkedIn Auto Message Router with Request Detection) and references your centralized Notion database of message types. It uses that to either match the message to a known response or generate a new one using OpenAI's GPT model — all while following professional tone guidelines.

This is the third workflow in a 3-part automation system:

Example Use Case

If a message comes from someone with low reach (e.g., under 1,000 followers), the AI politely deflects a meeting request. If an influencer reaches out, the AI immediately offers a booking link. Your team controls this logic by updating the Notion database — no edits to the workflow required.

Setup

  1. Connect this workflow as a subworkflow in your router or Slack approval flow

  2. Store your Notion API key and database ID in n8n

  3. Provide the following parent inputs:

    • message – The LinkedIn message text
    • sender – Name of the sender
    • chatid – Session ID (optional for memory)
    • linkedinprofile – Enriched array with LinkedIn context (follower count, connection info, etc.)
  4. Add your preferred AI model credentials (supports OpenAI, Gemini, or Ollama)

  5. Optional: Customize system prompt to better match your brand voice

How to customize this workflow to your needs

  • Update the Notion schema to include industry-specific categories or actions
  • Change the AI tone (e.g., humorous, more corporate, etc.)
  • Add conditional logic for auto-sending messages without Slack approval
  • Extend to support multiple platforms (e.g., email, X/Twitter, Instagram DMs)

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 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 2 - AI Agent

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

Block 3 - Simple Memory

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

Block 4 - OpenAI Chat Model

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

Block 5 - Structured Output Parser

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

Block 6 - Sticky Note3

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

Block 7 - Isolate parent workflow data for AI

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Get Request Router Directory Database

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

Block 9 - Format DB data for AI Context

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Aggregate DB objects into one item

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

Block 11 - Sticky Note9

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

3. Summary Table

Workflow Personalized LinkedIn responses with OpenAI GPT & Notion-based routing
Complexity intermediate
Nodes 11
Categories Lead Nurturing, Multimodal AI
Author Angel Menendez
Published 12 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4891/4891.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 Personalized LinkedIn responses with OpenAI GPT & Notion-based routing do?

Who is this for? This workflow is for professionals and teams who want to automate LinkedIn message replies with intelligent, human like responses — without losing control over tone or accuracy. Id...

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 Lead Nurturing, Multimodal AI use case.