Skip to content

n8n Lead Generation Workflow: Social Leads to Sheets and Slack

An n8n lead generation workflow built on AyeWatch's signed webhook: intent searches on X, Reddit and LinkedIn in, a Google Sheets lead log and a Slack ping out, with the credit math.

By AyeWatch Team7 min read

Short answer: For an n8n lead generation workflow, let AyeWatch find posts on X, Reddit and LinkedIn where people ask for what you sell, and let n8n receive its signed webhook, drop repeats on update_id, log each lead in Google Sheets and ping Slack. You write every reply yourself. Webhooks need a paid AyeWatch plan.

A lead generation workflow in n8n is a chain of nodes that receives a possible lead, filters it, records it and tells a person to act. In this recipe the lead is a public post where someone asks for a service, found by an AyeWatch monitor and delivered to n8n as signed JSON.

Why n8n should not do the searching

n8n is good at moving data between tools. It is a poor place to search social media. Its X node can search posts, but only with your own X API credits, and X bills every post the API returns. Its Reddit node can search posts, but it needs a Reddit OAuth app, and n8n's own credential page says Reddit now approves new apps by hand. Its LinkedIn node has one operation: creating a post. It cannot read or search anything.

So split the job. AyeWatch reads the posts on a schedule, keeps only the ones that match your rule, and sends one JSON object per new post to your n8n Webhook node. n8n then does what it is good at: checking, logging and routing. The same setup works for any service you sell. More plays are on the automation builders page.

Three lead monitors to copy

The example sells bookkeeping to small businesses. Swap in your own service and phrases, or build the searches with the buying intent search builder.

  • X search: ("looking for" OR "can anyone recommend" OR "need a") (bookkeeper OR accountant) -hiring lang:en
  • Reddit search: "recommend a bookkeeper" OR "need a bookkeeper" OR "bookkeeping service"
  • LinkedIn post search: "looking for a bookkeeper" OR "recommend an accountant"

Give each one the same "Only alert me about" filter: Only posts where a person or a small business asks for a bookkeeper or accountant to hire. Skip job ads, people offering their own services, students and jokes. The filter is what keeps the sheet from filling with freelancers advertising to each other.

The workflow, node by node

The first four nodes are the same in every recipe in this series. The n8n webhook setup guide walks through them; here is the short version.

  1. Webhook: HTTP Method POST, Respond set to Immediately, and Raw Body turned on under Options. Its Production URL goes into AyeWatch's webhook settings.
  2. Crypto: Action Hmac, Binary File on with Binary Property Name data, Type SHA256, Property Name signature, Encoding HEX. Your AyeWatch signing secret goes into a Crypto credential as the Hmac Secret.
  3. Check signature: a Code node that compares sha256= plus that value with the x-ayewatch-signature header in constant time, drops the item if they differ, and passes on flat fields: topic_id, topic_name, update_id, headline, content, source_url (the first evidence link, when there is one) and created_at. The code is in the HMAC verification recipe.
  4. Remove Duplicates: Operation Remove Items Processed in Previous Executions, Keep Items Where Value Is New, Value to Dedupe On {{ $json.update_id }}. The reasons are in the dedupe recipe.

Then the lead nodes:

  1. Code, "Shape the lead": turns the alert into one sheet row and labels the platform from topic_id. The code is below.
  2. Google Sheets: Resource Sheet Within Document, Operation Append Row, Mapping Column Mode Map Automatically. Name the sheet's columns exactly like the fields: detected, platform, headline, summary, link, update_id, status.
  3. Slack: Resource Message, Operation Send, to a #leads channel. Text: New {{ $json.platform }} lead: {{ $json.headline }}, then {{ $json.summary }} and {{ $json.link }} on their own lines.
  4. HubSpot, optional: Resource Deal, Operation Create, with the deal named from the headline and the link in its description. Add it only once the sheet shows the leads are real.
// Code node "Shape the lead". Mode: Run Once for Each Item.
// Map each AyeWatch topic_id to the platform its monitor searches.
const SOURCES = { 6101: 'X', 6102: 'Reddit', 6103: 'LinkedIn' };
const text = $json.content || '';
return {
  json: {
    detected: $json.created_at,
    platform: SOURCES[$json.topic_id] || 'Other',
    headline: $json.headline,
    summary: text.length > 280 ? text.slice(0, 277) + '...' : text,
    link: $json.source_url,
    update_id: $json.update_id,
    status: 'New',
  },
};

Find your topic IDs in AyeWatch or in the first delivery under Executions, then replace 6101, 6102 and 6103.

What one lead looks like on arrival

A made-up delivery from the Reddit monitor, in the shape AyeWatch's webhook docs describe:

{
  "topic_id": 6102,
  "topic_name": "Bookkeeping leads on Reddit",
  "update_id": 118204,
  "headline": "Cafe owner asks for a bookkeeper who knows payroll",
  "content": "A cafe owner with 6 staff asks for a part-time bookkeeper who can run payroll and file quarterly sales tax. Budget is not stated. They want someone local to Leeds.",
  "created_at": "2026-12-01T08:14:00Z",
  "evidence": [
    { "quote": "need a bookkeeper who can handle payroll for 6 people", "source_url": "https://www.reddit.com/r/SmallCafeOwners/comments/abc123/" }
  ]
}

After the Code node, the sheet gets one row and Slack gets three lines: the headline, a summary cut to 280 characters and the link to the thread.

Reply like a person, never like a bot

n8n's X and Reddit nodes can post and comment. Do not wire them to this workflow. An automatic reply to a stranger's question reads as spam, breaks most subreddit rules and gets accounts suspended. AyeWatch sends alerts; it never posts or replies for you, and this workflow should not either.

Open the link, answer the question the person asked, and say who you are and what you do. If a subreddit bans self-promotion, answer without a pitch or skip the thread. No automated DMs. Update the status column to Replied, Won or Skipped by hand, which also tells you after a month which search earns its credits.

Credit budget and what this won't catch

Credits are credits per check times checks. A 30-day month on Pro (500 credits):

  • X search with filter, every 6 hours: 3 × 120 = 360
  • Reddit search with filter, daily: 2 × 30 = 60
  • LinkedIn post search without filter, daily: 2 × 30 = 60

Total 480. On Pro+ (1,500 credits) you can run the X and Reddit searches every 3 hours with filters (720 + 480) and the LinkedIn search twice a day with a filter (180), 1,380 in all. Speed matters for leads, so put the fastest pace on the search that brings the most replies. AyeWatch Pro is $9/mo with 50 topics and hourly checks; Pro+ is $19/mo with 200 topics and ASAP mode. Every plan starts with a 7-day free trial.

Limits. AyeWatch reads public posts, not the replies under them, so a request buried in a comment thread is missed. Facebook groups, Discord servers, private communities and DMs are not readable. LinkedIn posts shared only with connections stay hidden. Expect a handful of real leads a week from a well-tuned search, not a flood.

Build it in six steps

  1. Create the three monitors in AyeWatch with the searches and the filter above, and run each once to see what its first check finds.
  2. In n8n, create a workflow with the Webhook, Crypto, Check signature and Remove Duplicates nodes, then publish it.
  3. Paste the Production URL into Notification settings, Webhook and select Save Webhook. Copy the signing secret into the Crypto credential.
  4. Create the Google Sheet with the seven column headers, then add the Shape the lead Code node and the Google Sheets node.
  5. Add the Slack node and send one real alert through. Check the run under Executions.
  6. Review the sheet after a week. Tighten the filter on the search with the most skipped rows.
Sheet columnComes fromNote
detectedcreated_atISO 8601 time AyeWatch created the update
platformtopic_id, mapped in the Code nodeX, Reddit or LinkedIn
headlineheadlineFalls back to topic_name when missing
summarycontentCut to 280 characters for Slack
linkevidence[0].source_urlCan be empty on some alerts
update_idupdate_idStable across retries; use it to spot repeats
statusSet to NewChange by hand: Replied, Won, Skipped

Start a monitor in under a minute

Describe a topic or paste a URL. Cancel before the trial ends and you pay nothing.

Try it free for 7 days

The bottom line

Start with one search on the platform where your buyers already ask out loud, and let it fill the sheet for a week before you add Slack or HubSpot. The status column will tell you which search deserves a faster pace.

FAQ

Can n8n find leads on X, Reddit and LinkedIn by itself?

Only partly. n8n's X node needs paid X API credits, its Reddit node needs a Reddit app that Reddit must approve, and its LinkedIn node can only create posts. A monitoring service such as AyeWatch can do the reading and send each lead to n8n by webhook.

Which n8n node receives AyeWatch leads?

The Webhook node, set to POST with Raw Body on. Check the X-AyeWatch-Signature header before any other step, then drop repeats on update_id.

Should n8n reply to the leads automatically?

No. Automatic replies read as spam and break most community rules. Use n8n to log and notify, then reply yourself, answer the question and say who you are.

How many credits does a lead workflow use?

It depends on platform and pace. An X search with a filter costs 3 credits a check, so every 6 hours it uses 360 a month. A Reddit search with a filter checked daily uses 60.

Does AyeWatch have a native n8n or HubSpot integration?

No. AyeWatch sends a signed webhook. n8n receives it, and n8n's own Google Sheets, Slack and HubSpot nodes do the rest.

n8n lead generation workflown8n lead generationsocial media leads to n8nn8n google sheets lead logbuying intent alerts webhook

Related articles