Score LinkedIn comments and draft replies with Azure OpenAI and Google Sheets

Go to Workflow
30 views
Built by Rahul Joshi Rahul Joshi
Created on March 09, 2026

Description

πŸ“Š Description
Automate LinkedIn comment monitoring and turn conversations into qualified sales opportunities using AI πŸ€–. This intelligent agent continuously scans LinkedIn posts mentioning your brand, analyzes every comment for buyer intent and sentiment, and drafts context-aware replies automatically. High-intent leads are scored and organized in Google Sheets, while your media team receives structured email reports πŸ“§ for fast action. Perfect for brands that want real-time social listening, lead intelligence, and AI-powered engagement without manual monitoring.

What This Template Does
⏰ Triggers every 15 minutes to monitor LinkedIn brand mentions automatically.
πŸ” Searches LinkedIn posts via SerpAPI based on your defined keywords.
πŸ’¬ Fetches all post comments using ConnectSafely LinkedIn API.
🧠 Uses an AI Intent Detection Agent (Azure OpenAI) to score buyer intent and sentiment.
πŸ“Š Saves structured lead data (intent score + label) into Google Sheets.
✍️ Generates AI-powered reply drafts tailored to comment sentiment.
πŸ“§ Sends a formatted email report to your media team for approval and publishing.

Key Benefits
βœ… Fully automated LinkedIn comment monitoring
βœ… AI-powered buyer intent detection and scoring
βœ… Zero manual scraping or tracking required
βœ… Context-aware reply generation for higher engagement
βœ… Centralized lead tracking inside Google Sheets
βœ… Real-time reporting for faster sales follow-ups

Features
Cron-based automated social listening
LinkedIn post discovery via SerpAPI
Comment extraction using ConnectSafely
AI sentiment & intent classification (Azure OpenAI GPT-4o-mini)
Automated reply drafting agent
Google Sheets logging & workflow triggers
Gmail-based HTML reporting system
Multi-stage automation architecture (Scrape β†’ Analyze β†’ Reply β†’ Report)

Requirements
SerpAPI API key
ConnectSafely LinkedIn API credentials
Azure OpenAI API credentials
Google Sheets OAuth2 connection
Gmail OAuth2 connection
A configured Google Sheet for storing comments and leads

Target Audience
🎯 B2B founders building authority on LinkedIn
πŸ“ˆ Social media & growth teams managing brand engagement
πŸ’Ό Sales teams looking for warm inbound intent signals
πŸ€– Automation agencies building AI-powered social listening systems

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Sheets
n8n-nodes-base.googleSheets