Skip to main content

Qualify web leads and send replies with Groq, Gmail, Sheets and Slack

Workflow preview

Workflow preview
100%
Qualify web leads and send replies with Groq, Gmail, Sheets and Slack preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow receives new lead form submissions via webhook, uses Groq (OpenAI compatible Chat Completions) to score and draft a reply, then sends the email via Gmail, logs the lead...

Best for

  • Lead Nurturing automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.gmail, n8n-nodes-base.googlesheets, n8n-nodes-base.slack, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Qualify web leads and send replies with Groq, Gmail, Sheets and Slack
Workflow name
Qualify web leads and send replies with Groq, Gmail, Sheets and Slack

Quick Overview

This workflow receives new lead form submissions via webhook, uses Groq (OpenAI-compatible Chat Completions) to score and draft a reply, then sends the email via Gmail, logs the lead to Google Sheets as a lightweight CRM, and posts a lead alert to Slack.

How it works

  1. Receives a POST request from your lead/contact form via a webhook.
  2. Extracts and normalizes common form fields (name, email, message, service interest, phone, company) and stops if no email is provided.
  3. Sends the lead details to Groq’s Chat Completions API to generate a lead score/tier, intent summary, urgency, a drafted reply email, and a Slack note.
  4. Parses the Groq JSON response and flags leads as “hot” when the score is 8 or higher.
  5. Sends the drafted reply to the lead using Gmail.
  6. Appends the lead details and AI outputs to a Google Sheets “Leads-CRM” sheet and posts a formatted alert to a Slack channel.
  7. Returns a JSON confirmation response to the original webhook request.

Setup

  1. Configure your form provider to POST submissions to the workflow’s webhook URL (path: /new-lead).
  2. Add an HTTP Header Auth credential containing your Groq API key for the Groq Chat Completions request.
  3. Connect Gmail OAuth2 credentials and set the desired Reply-To address (default is [email protected]).
  4. Connect Google Sheets OAuth2 credentials and update the target spreadsheet and sheet to match your CRM columns.
  5. Connect Slack credentials and choose the destination channel (default: #leads).

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 - Lead Form Webhook

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

Block 2 - Parse Form Fields

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

Block 3 - Groq — Qualify & Draft Reply

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

Block 4 - Parse Groq Response

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

Block 5 - Send Reply Email

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

Block 6 - Create CRM Record (Google Sheets)

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

Block 7 - Slack Team Alert

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

Block 8 - Webhook Response

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

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Qualify web leads and send replies with Groq, Gmail, Sheets and Slack
Complexity intermediate
Nodes 12
Categories Lead Nurturing, AI Summarization
Author Salman Sikandar
Published 15 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16355/16355.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 Qualify web leads and send replies with Groq, Gmail, Sheets and Slack do?

Quick Overview This workflow receives new lead form submissions via webhook, uses Groq (OpenAI compatible Chat Completions) to score and draft a reply, then sends the email via Gmail, logs the lead...

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 Summarization use case.