Personalized LinkedIn Responses with OpenAI GPT & Notion-based Routing

Go to Workflow
1,864 views
Built by Angel Menendez Angel Menendez
Created on June 06, 2026

Description

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:

Receives data from LinkedIn Auto Message Router with Request Detection
Uses UniPile LinkedIn Profile Lookup Subworkflow to enrich responses based on follower count or org data

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

Connect this workflow as a subworkflow in your router or Slack approval flow
Store your Notion API key and database ID in n8n
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.)

Add your preferred AI model credentials (supports OpenAI, Gemini, or Ollama)
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)

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Notion
n8n-nodes-base.notion
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured