Skip to main content

Real-time lead response across social channels with Llama AI & Google Sheets

Workflow preview

Workflow preview
100%
Real-time lead response across social channels with Llama AI & Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How it works This workflow acts as an instant SDR that replies to new inbound leads across multiple channels in real time. It first captures and normalizes all incoming lead data into a unified str...

Best for

  • Lead Nurturing automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.set, n8n-nodes-base.switch, n8n-nodes-base.httprequest, n8n-nodes-base.gmail, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.webhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Real-time lead response across social channels with Llama AI & Google Sheets
Workflow name
Real-time lead response across social channels with Llama AI & Google Sheets

How it works

This workflow acts as an instant SDR that replies to new inbound leads across multiple channels in real time. It first captures and normalizes all incoming lead data into a unified structure. The workflow then evaluates IST working days and hours, generates a context-aware AI response, and routes the reply to the correct channel. Finally, it logs the full interaction, response status, and timing into Google Sheets.

Step-by-step

  • Step 1: Lead intake & normalization

    • Incomming Lead whatsapp1 – Receives new WhatsApp lead messages via webhook.
    • Incomming Lead facebook1 – Captures incoming Facebook lead messages.
    • Incomming Lead instagram1 – Listens for Instagram lead messages.
    • Incomming Lead linkdin1 – Captures LinkedIn lead messages.
    • Incomming Lead Website1 – Receives website form submissions.
    • Normalize Lead Data6 – Normalizes WhatsApp lead fields.
    • Normalize Lead Data7 – Normalizes Facebook lead fields.
    • Normalize Lead Data8 – Normalizes Instagram lead fields.
    • Normalize Lead Data9 – Normalizes LinkedIn lead fields.
    • Normalize Lead Data5 – Normalizes website lead data.
    • Switch2 – Merges all normalized leads into a single processing path.
  • Step 2: Working hours & AI response

    • Extract Day and Hours1 – Converts timestamps to IST and extracts day and time.
    • Is Working Day and Working Hour?1 – Determines whether the lead arrived during business hours.
    • Code in JavaScript3 – Builds the AI prompt using lead details and timing context.
    • Get Ai Response1 – Generates a short, human-like response.
  • Step 3: Send reply & log data

    • Code in JavaScript4 – Combines AI output with normalized lead data.
    • Switch3 – Routes the response based on the source channel.
    • Send message – Sends WhatsApp replies.
    • Send Instagram Message1 – Sends Instagram responses.
    • Send Facebook Messages1 – Sends Facebook replies.
    • Send Linkdin Messages1 – Sends LinkedIn responses.
    • Send a message1 – Sends email replies for website leads.
    • Code in JavaScript5 – Finalizes response status and metadata.
    • google-sheet-name – Appends or updates lead and response data in Google Sheets.

Why use this?

  • Replies instantly to leads across all major inbound channels
  • Keeps all lead data standardized and easy to manage
  • Automatically respects IST working days and hours
  • Reduces manual SDR workload without losing response quality
  • Maintains a complete response log for reporting and follow-up

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - google-sheet-name

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 2 - Normalize Lead Data5

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Switch2

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 4 - Switch3

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 5 - Send Instagram Message1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 6 - Send Facebook Messages1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - Send Linkdin Messages1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 8 - Send a message1

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 9 - Extract Day and Hours1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Is Working Day and Working Hour?1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 11 - Code in JavaScript3

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Code in JavaScript4

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Code in JavaScript5

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Incomming Lead whatsapp1

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 15 - Incomming Lead facebook1

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 16 - Incomming Lead instagram1

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 17 - Incomming Lead linkdin1

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 18 - Incomming Lead Website1

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 19 - Normalize Lead Data6

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Normalize Lead Data7

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Normalize Lead Data8

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Normalize Lead Data9

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 23 - Get Ai Response1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 24 - Send message

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1.1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Real-time lead response across social channels with Llama AI & Google Sheets
Complexity advanced
Nodes 28
Categories Lead Nurturing, AI Chatbot
Author Avkash Kakdiya
Published 24 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12094/12094.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Real-time lead response across social channels with Llama AI & Google Sheets do?

How it works This workflow acts as an instant SDR that replies to new inbound leads across multiple channels in real time. It first captures and normalizes all incoming lead data into a unified str...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing, AI Chatbot use case.