Automate LinkedIn Advice Contributions with n8n & AI

Struggling to keep up with LinkedIn advice articles and create unique contributions? This n8n workflow automates discovering fresh LinkedIn advice, extracts article content, generates AI-powered insights, and posts contributions to Slack and NocoDB automatically.
manualTrigger
nocoDb
set
+7
Workflow Identifier: 1848
NODES in Use: manualTrigger, nocoDb, set, httpRequest, code, splitOut, merge, html, openAi, slack

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow finds new LinkedIn advice articles every Monday at 8:00 AM.
It reads the articles, creates fresh, unique advice using AI, then shares posts in Slack and saves them in a database.
This saves you time and helps keep your LinkedIn presence active.


Tools and Services Used

  • Google Search: To find fresh LinkedIn advice articles.
  • n8n Automation Platform: Runs the workflow and connects all parts.
  • OpenAI GPT-4o-mini Model: Creates unique AI-generated advice.
  • NocoDB: Stores LinkedIn contributions with all details.
  • Slack API: Posts contributions to team channels.

Inputs, Processing, Outputs

Inputs

  • Search topic entered by user (e.g., Paid Advertising).
  • Existing stored contributions from NocoDB database.

Processing Steps

  • Search Google for LinkedIn advice articles matching topic.
  • Extract LinkedIn article URLs using code and regex.
  • Split URLs for individual processing.
  • Merge new URLs with stored ones to avoid duplicates.
  • Fetch HTML content from each unique article URL.
  • Extract article titles, main topics, and community advice using HTML selectors.
  • Use GPT-4o-mini model with prompt to generate unique advice for each topic.
  • Post the AI-generated advice to a Slack channel for team visibility.
  • Save advice and metadata as new rows in NocoDB for tracking.

Outputs

  • Slack messages showing new AI-written LinkedIn advice.
  • Database records holding advice, article info, and metadata.

Who Should Use This Workflow

Professionals wanting to keep LinkedIn profiles active without spending hours.
Users who want smart automation to find and post unique advice.
Teams needing to track and share LinkedIn engagement in Slack.


Beginner Step-by-Step: How to Use This Workflow in n8n

Importing the Workflow

  1. Download the workflow file using the Download button on this page.
  2. In the n8n editor, click “Import from File” and choose the downloaded file.
  3. The workflow loads into n8n, ready to use.

Configuring the Workflow

  1. Add required API Keys and credentials:
    • OpenAI API Key for the GPT model.
    • NocoDB API Key and Project/Table IDs.
    • Slack OAuth token and set Slack channel ID.
  2. Check and update any fixed IDs, emails, channels, tables, or URLs inside nodes.
  3. Review the code in the Code node for link extraction.
  4. Confirm the prompt text in the LangChain OpenAI node; copy and paste it if needed.

Testing and Activating

  1. Run the Manual Trigger to test the workflow. Watch for errors or missing steps.
  2. Fix any issues, then activate the Schedule Trigger to run every Monday at 8:00 AM.
  3. Optional: Use self-host n8n options for stable, server-based running.

Edge Cases & Failures to Watch For

  • Google search may sometimes return unexpected HTML, causing no links found.
  • Regex in the Code node might need adjusting if links are missed.
  • Slack posts fail if API tokens or channel IDs are incorrect.
  • OpenAI prompts may return low-quality output if prompt is incomplete.
  • NocoDB storage errors if API credentials or table names are wrong.

Customization Ideas

  • Adjust search topic in the Set node to explore new LinkedIn advice fields.
  • Change trigger schedule for different automation frequency (daily, weekly, monthly).
  • Switch database nodes from NocoDB to Airtable or Google Sheets.
  • Modify AI prompt in the LangChain OpenAI node to match your style or type of advice.

Example Code and Prompt Snippets

Regex in Code Node to Extract LinkedIn Article URLs

const text = $json.data;
const regexPattern = /https:\/\/www\.linkedin\.com\/advice\/[^%&\s"']+/g;
const matches = text.match(regexPattern);
return { matches: matches || [] };

This code looks inside Google search HTML and finds links starting with linkedIn.com/advice.

Google Search URL Template in HTTP Request Node

=https://www.google.com/search?q=site:linkedin.com/advice+{{ $json.Topic }}

This URL searches LinkedIn advice pages on the chosen topic.


Summary

✓ Finds fresh LinkedIn advice articles on your chosen topic weekly.
✓ Creates unique AI advice per article using OpenAI.
✓ Posts advice automatically to Slack channels.
✓ Stores everything neatly in NocoDB for tracking.
✓ Saves hours of manual research and content creation.


Frequently Asked Questions

Yes, Airtable can be used instead by swapping the database nodes with Airtable nodes configured properly.
It merges new article URLs with stored ones in the database to filter duplicates before processing.
Using a wrong regex pattern or Google search returning unexpected HTML can stop URL extraction.
After import, add API keys for OpenAI, NocoDB, and Slack. Update IDs, channels, tables, and check code or prompts as needed.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free