π¬ Personalized LinkedIn responses with OpenAI GPT & Notion-based routing
β‘ 3,391 views Β· π¬ Lead Nurturing & AI Sales Agents
π‘ Pro Tip β If youβre pulling LinkedIn data through HTTP requests or dealing with API restrictions, thereβs a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search β you just pass a URL and get structured data back.
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 textsenderβ Name of the senderchatidβ 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
Notion, Execute Workflow Trigger, AI Agent, OpenAI Chat Model, Simple Memory, Structured Output Parser
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File