# Real-time lead response across social channels with Llama: n8n workflow

> Started by another system calling it, and works across Gmail, Google Sheets and WhatsApp. 24 steps, 3 branches: large, and worth reading before you trust it...

Source: https://millionrounds.com/workflow/real-time-lead-response-across-social-channels-with-llama (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# Real-time lead response across social channels with Llama

Started by another system calling it, and works across Gmail, Google Sheets and WhatsApp. 24 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freal-time-lead-response-across-social-channels-with-llama)

**24 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 5 Logic 12 Service 7

The steps in the order they run, from what starts it.

- 1 **Incomming Lead whatsapp1** Webhook *Starts it*
- 2 **Incomming Lead facebook1** Webhook *Starts it*
- 3 **Incomming Lead instagram1** Webhook *Starts it*
- 4 **Incomming Lead linkdin1** Webhook *Starts it*
- 5 **Incomming Lead Website1** Webhook *Starts it*
- 6 **Normalize Lead Data6** Set *Logic*
- 7 **Normalize Lead Data7** Set *Logic*
- 8 **Normalize Lead Data8** Set *Logic*
- 9 **Normalize Lead Data9** Set *Logic*
- 10 **Normalize Lead Data5** Set *Logic*
- 11 **Switch2** Switch *Logic*
- 12 **Extract Day and Hours1** Code *Logic*
- 13 **Is Working Day and Working Hour?1** If *Logic*
- 14 **Code in JavaScript3** Code *Logic*
- 15 **Get Ai Response1** Http Request *Service*
- 16 **Code in JavaScript4** Code *Logic*
- 17 **Switch3** Switch *Logic*
- 18 **Send message** Whats App *Service*
- 19 **Send Instagram Message1** Http Request *Service*
- 20 **Send Facebook Messages1** Http Request *Service*
- 21 **Send Linkdin Messages1** Http Request *Service*
- 22 **Send a message1** Gmail *Service*
- 23 **Code in JavaScript5** Code *Logic*
- 24 **google-sheet-name** Google Sheets *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 24, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, WhatsApp
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and WhatsApp accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 24 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 24 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freal-time-lead-response-across-social-channels-with-llama)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Capture website leads to HubSpot or Google Sheets with Slack** 24 steps · Google Sheets, HubSpot](https://millionrounds.com/workflow/capture-website-leads-to-hubspot-or-google-sheets-with-slack)
- [**Generate and qualify LinkedIn leads with Apify and Clearbit** 24 steps · Airtable, Gmail](https://millionrounds.com/workflow/generate-and-qualify-linkedin-leads-with-apify-and-clearbit)
- [**Qualify Facebook leads with ElevenLabs and Supabase** 24 steps · Gmail, Slack](https://millionrounds.com/workflow/qualify-facebook-leads-with-elevenlabs-and-supabase)
- [**Scrape Google Maps businesses with ScraperCity** 24 steps · Gmail](https://millionrounds.com/workflow/scrape-google-maps-businesses-with-scrapercity)
- [**AI-powered Google Maps business scraper with OpenRouter** 24 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-powered-google-maps-business-scraper-with-openrouter)
- [**Automate lead enrichment & personalized outreach with HubSpot** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-lead-enrichment-and-personalized-outreach-with-hubs)
