đź’¬ Reply to LinkedIn messages with OpenAI GPT and escalate complex cases to Discord

⚡ 23 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.

View All Scrapers

Description

Who it’s for

This workflow is for sales teams, growth agencies, and solo operators running LinkedIn outreach campaigns who want to automate prospect reply handling without losing the human touch on complex cases.

How it works

  1. A webhook receives incoming LinkedIn message events and filters out invalid entries — ensuring a LinkedIn URL is present and the message is not sent by the agent itself.
  2. The Unipile API resolves the contact’s public LinkedIn identifier, then fetches the full conversation history for that chat thread.
  3. An AI agent powered by OpenAI GPT analyzes the conversation and classifies the prospect (Meeting Request, Info Request, Not Interested, or Escalation), then drafts a contextual reply.
  4. A conditional branch evaluates the classification: if escalation is required, a formatted alert is posted to a Discord channel; otherwise, the workflow waits a randomized business-hours delay before posting the AI-generated reply back to LinkedIn via the Unipile API.

How to set up

Requirements

How to customize

đź”— Nodes Used

HTTP Request, Webhook, Discord, Filter, AI Agent, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup