Back to Integrations
integrationWebhook node
integrationSendGrid node

Webhook and SendGrid integration

Save yourself the work of writing custom integrations for Webhook and SendGrid and use n8n instead. Build adaptable and scalable Development, Core Nodes, Marketing, and Communication workflows that work with your technology stack. All within a building experience you will love.

How to connect Webhook and SendGrid

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Webhook and SendGrid integration: Create a new workflow and add the first step

Step 2: Add and configure Webhook and SendGrid nodes

You can find Webhook and SendGrid in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Webhook and SendGrid nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Webhook and SendGrid integration: Add and configure Webhook and SendGrid nodes

Step 3: Connect Webhook and SendGrid

A connection establishes a link between Webhook and SendGrid (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Webhook and SendGrid integration: Connect Webhook and SendGrid

Step 4: Customize and extend your Webhook and SendGrid integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Webhook and SendGrid with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Webhook and SendGrid integration: Customize and extend your Webhook and SendGrid integration

Step 5: Test and activate your Webhook and SendGrid workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Webhook to SendGrid or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Webhook and SendGrid integration: Test and activate your Webhook and SendGrid workflow

Automate B2B lead generation & email campaigns with Google Maps, SendGrid & AI

📌 Overview
This n8n-powered workflow automates the entire lifecycle of lead generation and email workflows/campaign. It combines six specialized workflows into one seamless system that scrapes fresh leads, sends personalized emails, tracks engagements, detects replies, classifies responses, handles follow-ups, and keeps a live CRM updated — all in one loop.
Designed for B2B cold outreach and follow-up nurturing, this system integrates with Apify, Google Sheets, SendGrid, Gmail, and OpenAI for AI summarization and real-time alerts.

🧠 What It Does
This workflow automates the entire lifecycle of B2B cold campaign. It:
Scrapes targeted leads directly from Google Maps (via Apify).
Extracts verified emails from business websites with anti-blocking safeguards.
Stores everything in a centralized Google Sheets CRM.
Sends personalized emails via SendGrid, with unique embedded IDs for tracking.
Tracks delivery, opens, clicks, and bounces in real time through webhook events.
Detects replies from Gmail, matches them to the right campaign stage, and updates the CRM.
Uses AI classification to label replies (Interested, Not Interested, Miscellaneous).
Routes qualified replies directly to your sales team or Slack/Telegram channel.
Automates follow-up emails (5-day & 10-day intervals) for non-responders.
Provides light analytics & reporting in Google Sheets for quick insights (with deeper logs available in SendGrid).

💡 Why This Workflow
All-in-One Solution**: Instead of juggling multiple tools, this workflow handles lead gen, outreach, tracking, and CRM updates in one place.
Smart Reply Handling**: Never lose a lead — every reply is tracked, classified, and routed intelligently.
Scalable & Modular**: Each workflow (lead gen, email sending, webhook, replies, routing, follow-ups) can run independently or as part of the full system.
Time-Saving: Reduces manual lead collection, email follow-up, and CRM updating by 90%+.
Client-Ready
: Built with reliability in mind — randomized delays, duplicate prevention, priority logic for status updates, and AI-powered classification.

👤 Who It’s For
This workflow is ideal for:
Agencies** running cold campaigns for clients.
B2B Businesses** looking to automate lead generation and follow-ups.
Freelancers / Consultants** who need a plug-and-play outreach system without expensive SaaS subscriptions.
Sales Teams** that want structured, real-time leads routed directly to their inbox or Slack.
Startups** who want a scalable, low-cost alternative to tools like Apollo, Firecrawl, Bright Data or Reply.io.

⚙️ How It Works
🧩 1. Lead Generation Workflow
🎯 Purpose
Scrape fresh B2B leads from Google Maps, crawl their websites to extract verified email addresses, and upload structured, clean lead data into a Google Sheets CRM.
🛠 How It Works

  1. User Input via Form Trigger
    The workflow begins with a form asking for:
    Business keyword (e.g. "Dentist")
    Location (e.g. "Florida")
    Lead limit (e.g. 50)

  2. Scrape Google Maps via Apify
    Calls the Apify Google Maps Scraper Actor
    Extracts structured business data like:
    Business Name, Website, Phone, Category, Rating, Address.

  3. Website Filtering & Normalization
    Filters out businesses with no website
    Cleans up URLs

  4. Website Email Extraction
    Sends direct HTTP GET requests to the homepage of each business
    Parses the raw HTML for public-facing email addresses using regex
    Implements anti-blocking techniques:
    Random delays between requests
    Custom headers / User-Agent spoofing
    Graceful skip on failures

  5. Final Filtering & Data Structuring
    Keeps only businesses with a valid email address
    Constructs lead objects with:
    Business Name, Category, Email, Website, Phone, Rating, Location.

  6. Upload to Google Sheets CRM
    Pushes leads to a connected Google Sheet that acts as the system’s central CRM
    This CRM becomes the source for the email sending workflow

🧩 2. Send an Email Workflow
🎯 Purpose
Automatically sends personalized emails to verified leads using rotating templates, embedded ID tracking, and campaign-stage tagging.
🛠 How It Works

  1. Pull Active Leads from CRM
    Retrieves fresh leads from the Google Sheet where

  2. Select a Random Template
    Pulls from a template library stored in a separate Google Sheet
    Injects lead-specific variables into placeholders like:
    [Business Name], [Category], [Location], etc.

  3. Embed Unique Tracking ID
    Appends an embedded ID token to the email. This enables accurate reply source tracking across all email stages

  4. Send Email via SendGrid
    Sends the message using SendGrid's transactional API
    Emails are tagged internally according to email type.

🧩 3. Webhook Event Workflow
🎯 Purpose
Processes SendGrid webhook events (e.g., delivered, opened, clicked, bounced) and updates the CRM with prioritized delivery status and engagement tracking — using clean classification and smart update logic.
🛠 How It Works

  1. Receive Events via Webhook Trigger
    Listens for real-time webhook events from SendGrid, including:
    delivered, bounce, deferred, processed, open, click, unsubscribe, spamreport, etc.

  2. Classify Each Event Type
    A custom code node adds a route label:
    status: delivery-level events
    engagement: recipient interaction events
    others: uncategorized or unsupported

  3. Switch-Based Routing
    Status Events**:
    Applies priority logic
    If multiple status events are received for the same lead, only the highest-priority event is stored
    Updates corresponding CRM fields:
    Engagement Events**:
    Detects interactions like:
    Opened, Clicked, Unsubscribed, Spam Reported
    Updates CRM fields:
    Opened, Clicked, Unsubscribed, Spam Reported, Engaged At
    Preserve first-time interaction records and avoiding regressions
    Others Branch**:
    Logs or gracefully skips events not explicitly supported

  4. CRM Synchronization
    Merges event data with the correct lead by matching Email
    Ensures all updates are timestamped and consistent across systems

🧩 4. Reply Update Database Workflow
🎯 Purpose
Polls Gmail inbox, extracts replies, determines their source, and logs them in both the CRM and a message tracker sheet.
🛠 How It Works

  1. Poll Gmail for New Replies
    Uses Gmail API to fetch recent messages
    Filters out auto-replies, no-reply addresses, or irrelevant responses

  2. Prevent Duplicate Processing
    Checks each message against a "Processed Message IDs" Google Sheet
    Skips if the message has been handled before

  3. Extract Reply Metadata

  4. Match to Lead & Update CRM
    Determines the original email stage based on ID
    Updates necessary fields

🧩 5. Email Routing Workflow
🎯 Purpose
Uses AI to classify replies by intent (Interested, Not Interested, or Miscellaneous) and automatically routes, labels, and logs them accordingly.
🛠 How It Works

  1. Receive Cleaned Reply
    Triggered after a set time interval

  2. Classify Using AI (LangChain / OpenAI)
    The reply is analyzed and categorized as:
    Interested: wants to talk, asks for more info
    Not Interested: says no or unsubscribes
    Miscellaneous: unclear or unrelated response

  3. Gmail Label Assignment
    Adds Gmail label based on classification

  4. Handle “Interested” Replies
    If Interested:
    Adds label in Gmail
    Forwards message to a sales or response channel
    Updates Google Sheet CRM

🧩 6. Follow-Up Email Workflow
🎯 Purpose
Automatically sends up to two follow-up emails to leads who showed interest (opened or clicked) but haven’t replied yet.
🛠 How It Works

  1. Scheduled Execution
    Runs daily or at set intervals

  2. Filter Leads for Follow-Up
    Checks that desired conditions are met:
    Required number of days have passed:
    5 days → Follow-Up 1
    10 days → Follow-Up 2

  3. Choose and Personalize Template
    Injects lead-specific data
    Embeds corresponding for reply tracking

  4. Send via SendGrid
    Message is tagged by stage
    Sent using the same logic as the original email

  5. Update CRM
    Increments:
    Follow-Up Sent flag
    Follow-Up Count
    Follow-Up Time field

✅ Setup Requirements (Before You Start)
Prepare these items to avoid interruptions during setup:
🌍 Domain DNS Access**
You’ll need to add TXT/CNAME records in your registrar (GoDaddy, Namecheap, Cloudflare, etc.) to authenticate your domain with SendGrid.
📧 Domain Email Address or Single Sender Authentication (e.g., [email protected])**
Needed for SendGrid domain authentication (don’t use Gmail/Yahoo).
This step ensures emails are not flagged as spam.
Tip: If you don’t own a domain, you can use a single sender email to test, but for production you MUST authenticate a domain.
🔑 API Keys / Credentials**
Apify API Key → for Google Maps scraping.
SendGrid API Key → for sending emails + webhook events.
Google Sheets OAuth Credentials → for CRM integration.
Gmail API Credentials → for reply detection.
OpenAI API Key → for AI-based reply classification.
📊 Google Sheet (CRM)**
Add desired columns: Business Name, Email, Website, Phone, Category, Status, Reply, Follow-Up Count.
🌐 n8n Environment (Cloud or Self-Hosted)**
Must allow Apify node installation.

🛠 How to Set It Up
Open n8n (Cloud or Self-Hosted).
Install Apify node before importing.
Search Apify → click Install.
Import the provided .json workflow file into your n8n editor.
Set up the required credentials:
🔑 Apify API Key,
🔑 SendGrid API Key,
🔑 Google Sheets OAuth,
🔑 Gmail API,
🔑 OpenAI API Key.
Prepare your Google Sheet (CRM).
Verify column names match your workflow fields.
Adjust “Get Desired Fields” node in n8n “Lead generation workflow” if you add/remove columns.
Enable SendGrid Webhook Events.
Go to SendGrid → Settings → Mail Settings → Event Webhook.
Paste the webhook URL from your n8n “Webhook Event Workflow”.
Select: Delivered, Opened, Clicked, Bounced, Unsubscribed, Spam Report.
Run a test.
Trigger the Lead Generation workflow → check Google Sheets for leads.
Send a test email → verify delivery + engagement updates in CRM.
Reply from a test inbox → confirm Gmail polling + AI classification.

📂 Additional Provided Resources.
To help you get started faster, you’ll also receive:
SendGrid Setup and Troubleshooting document.
Two ready-to-use Google Sheets example templates** which can be modified to suit your business needs:
Email Workflow DB CRM
Includes:
Leads Tab → structured space for scraped businesses and contact details.
Email Templates Tab → pre-written templates for the main email, 1st follow-up, and 2nd follow-up (with placeholders for personalization).
Analytics Tab → light reporting on sends, opens, clicks, and replies to give quick campaign insights.
Processed Gmails IDs
A simpler sheet designed for Gmail reply handling.
Useful for tracking processed messages and avoiding duplicates while you familiarize yourself with how reply updates work.

🎨 Customization Tips
Templates**: Update the Google Sheets Templates tab with your own outreach copy. Use placeholders like [Business Name], [Location], [Category] so each email feels personalized.
CRM Fields: Add or remove CRM columns depending on your business needs (e.g., Industry, Revenue, Sales Owner, Notes). Just make sure the field names match in n8n’s “Grab Desired Fields” nodes in the Lead generation workflow.
Follow-Up Logic: Adjust the timing for follow-ups. Default is 5 days (Follow-Up 1) and 10 days (Follow-Up 2), but you can easily change this to 3/7/14 days or any schedule your sales process requires.
Reply Routing
: Customize how AI classification works. For example, rename labels (“Hot Lead”, “Not Interested”, “Out of Scope”) and route replies differently (e.g., forward “Interested” to your sales inbox, Slack channel, or Telegram bot).
Analytics & Reporting
: Expand the Google Sheets reporting tab. You can add pivot tables for deeper campaign insights.
For more advanced analytics, SendGrid also keeps full logs.*
Scalability**:
Add proxy handling for higher-volume scraping.
Switch to a database (Postgres, Supabase, MongoDB) instead of Google Sheets if managing thousands of leads.
Use multiple SendGrid accounts or IP warm-up strategies for large-scale sending.
Scraping Alternatives**:
If you prefer not to use direct HTTP requests for email extraction, you can integrate with external scrapers like:
Firecrawl – lightweight scraper for web/email extraction.
Bright Data – residential proxies + scraping tools.
Apify Website Scrapers – customizable actors for deep site scraping.
These can plug into the workflow instead of (or alongside) the built-in email scraper.

✨ Predefined Templates vs. AI-Generated Emails
By default, this workflow uses predefined templates stored in Google Sheets. This design choice was intentional, and here’s why:
✅ Reliability: Alway work, no prompt issues.
✅ Cost Savings: no API token usage.
✅ Total Control, Consistent & Customizable: You control tone and can tweak anytime.

⚡ That said, you can absolutely swap out the template system for AI-based generation if you prefer dynamic messaging. The workflow is flexible — just keep in mind the trade-offs in cost, reliability, and control.
⚡ Best approach: start with templates for stability, then add AI if you want more variety.

Nodes used in this workflow

Popular Webhook and SendGrid workflows

+4

Recover Shopify Abandoned Carts with Email, SMS, WhatsApp & Facebook Retargeting

This workflow is a complete, production-ready solution for recovering abandoned carts in Shopify stores using a multi-channel, multi-touch approach. It automates personalized follow-ups via Email, SMS, and WhatsApp, tracks every customer interaction for multi-touch attribution, and enables advanced retargeting and analytics. Key features: Multi-step, timed recovery sequence (Email → SMS → Email → WhatsApp) Customer segmentation (new, returning, VIP) and A/B testing Dynamic discounting and personalized messaging Touchpoint logging to Google Sheets for attribution analysis Facebook Custom Audience retargeting for unrecovered carts Slack notifications for high-value cart recoveries What does this workflow do? Listens for abandoned cart events from Shopify (or any e-commerce platform) via webhook. Normalizes and enriches cart data by fetching full cart details and customer purchase history. Predicts the likely reason for abandonment (e.g., price sensitivity, checkout complexity, technical issues) using rule-based logic. Segments the customer (new, returning, VIP), assigns an A/B test group, and generates a personalized discount and checkout URL. Runs a timed, multi-channel recovery sequence: 1 hour after abandonment: Checks if the order is completed. If not, sends a personalized Email #1 and logs the touchpoint. 4 hours after abandonment: Checks again. If not recovered, sends an SMS with a discount code and logs the touchpoint. 24 hours after abandonment: Checks again. If not recovered, sends Email #2 (with social proof/urgency) and logs the touchpoint. 48 hours after abandonment: Final check. If not recovered, sends a WhatsApp reminder and logs the touchpoint. If the cart is still not recovered: Hashes customer identifiers and adds them to a Facebook Custom Audience for retargeting. Logs every touchpoint (email, SMS, WhatsApp) to a Google Sheet for multi-touch attribution analysis. Sends a Slack notification if a high-value cart is recovered. Why is this workflow useful? Boosts recovery rates:** By using multiple channels and personalized timing, you maximize the chance of recovering lost sales. Improves attribution:** Every customer interaction is logged, so you can analyze which channels and messages drive conversions. Enables advanced retargeting:** Unrecovered carts are automatically added to a Facebook Custom Audience for paid retargeting. Saves time:** Fully automated, with easy configuration for your store, messaging, and analytics. Scalable and extensible:** Easily adapt the sequence, add more channels, or integrate with other tools. How to install and configure Prerequisites n8n instance (v2.0.2+ recommended) Shopify store with API access Accounts and API credentials for: SendGrid (email) Twilio (SMS) WhatsApp Business API Google Sheets (service account) Facebook Graph API (for Custom Audiences) Slack (for notifications) Setup steps Import the workflow into your n8n instance. Configure the “Workflow Configuration” node: Set your Shopify domain, API URLs, Google Sheets ID, and high-value threshold. Connect all required credentials in the respective nodes: Shopify, SendGrid, Twilio, WhatsApp, Google Sheets, Facebook Graph API, Slack. Create a Google Sheet named “Touchpoints” with columns: cart_id, customer_id, touchpoint_type, timestamp, channel, ab_group. Set up the webhook in your Shopify store (or e-commerce platform) to trigger the workflow on cart abandonment. Test the workflow with a sample abandoned cart event to ensure emails, SMS, WhatsApp, and logging work as expected. Enable the workflow in n8n for live operation. Node-by-node breakdown Abandoned Cart Webhook:** Receives abandoned cart events. Workflow Configuration:** Stores global settings (API URLs, Shopify domain, Google Sheets ID, high-value threshold). Normalize Cart Data:** Cleans and standardizes incoming cart data. Fetch Cart Details / Fetch Customer History:** Enriches data with full cart and customer info. Predict Abandonment Reason:** Uses business logic to guess why the cart was abandoned. Personalization Engine:** Segments the customer, assigns A/B group, calculates discount, and builds checkout URL. Customer Segment Check / Device Type Check:** Applies routing logic for personalized messaging. Wait / Check Order Status / Generate & Send Messages:** Timed sequence for Email, SMS, and WhatsApp, with order status checks at each step. Log Touchpoint (Google Sheets):** Records every message sent for attribution. Attribution Merge:** Combines all touchpoints into a single journey for analysis. Hash Customer Data for Facebook / Add to Retargeting Audience:** Adds unrecovered carts to a Facebook Custom Audience. Check Cart Value Threshold / Notify High-Value Recovery:** Sends Slack alerts for high-value recoveries. Customization tips Adjust wait times and message content to fit your brand and audience. Add or remove channels (e.g., push notifications, phone calls) as needed. Expand the Google Sheet for deeper analytics (e.g., add UTM parameters, campaign IDs). Integrate with your CRM or analytics platform for end-to-end tracking. Troubleshooting Make sure all API credentials are set and tested. Check Google Sheets permissions for the service account. Test each channel (email, SMS, WhatsApp) individually before going live. Review the workflow execution logs in n8n for errors or failed steps.
+2

Auto-Schedule Demos for High-Intent Leads with Clearbit, Slack, and Calendly

This workflow automatically captures, enriches, scores, and routes website leads in real-time, scheduling high-intent prospects for demos within minutes instead of hours—dramatically improving conversion rates by eliminating response delays. What Makes This Different: Real-Time Lead Processing** - Captures and processes leads instantly from website forms with zero delay Intelligent Fit Scoring** - Automatically scores leads 0-100 based on company size, seniority, and revenue Dual-Track Routing** - High-intent leads (60+) get fast-track treatment, others follow standard nurture Live Calendar Integration** - Shows actual available Calendly slots, not fake placeholders Automated Sales Alerts** - Posts rich lead details to Slack with booking links instantly Smart Follow-Up** - Sends fallback email if sales team doesn't respond within 10 minutes Complete CRM Automation** - Creates HubSpot contacts and deals automatically with enriched data Full Audit Trail** - Logs everything to Google Sheets for analytics and reporting Key Benefits of Instant Lead Response: Speed** - Minutes from form submission to scheduled demo, not hours or days Conversion** - Respond while leads are hot, dramatically improving booking rates Automation** - Zero manual work—enrichment, scoring, routing, and follow-up all automatic Intelligence** - Data-driven scoring ensures sales focuses on best-fit prospects Accountability** - Complete logging shows response times and follow-up actions Scalability** - Handles unlimited lead volume without adding sales admin work Who's it for This template is designed for B2B SaaS companies, sales teams, and revenue operations professionals who need to convert website leads faster. It's perfect for organizations that lose deals due to slow response times, want to prioritize high-intent prospects, need to automate CRM data entry, or want to ensure no hot lead falls through the cracks while sales is busy. How it works / What it does This workflow creates an end-to-end lead-to-meeting pipeline that automatically processes inbound leads and schedules high-intent prospects for demos. The system: Receives lead submissions via webhook from website forms or chat widgets Normalizes data from different form providers into a standard format Enriches contact information using Clearbit to get company size, revenue, job title, and industry Calculates fit score (0-100) based on company metrics: size (40 pts), seniority (30 pts), revenue (30 pts) Routes intelligently - High-intent leads (60+) → fast track | Standard leads → nurture channel Creates CRM records - Automatically creates/updates HubSpot contact and deal with enriched data Fetches real availability - Gets actual available Calendly demo slots via API (next 7 days) Alerts sales team - Posts formatted message to Slack with lead details and booking links Monitors response - Waits 10 minutes and checks if sales replied in Slack thread Sends fallback email - Automatically emails lead with self-service booking link if no response Logs everything - Records all data to Google Sheets for reporting and analytics Key Innovation: Smart Follow-Up Automation - Unlike basic lead capture workflows, this system ensures accountability by automatically following up with leads if the sales team is unavailable, preventing lost opportunities while maintaining a professional response time. How to set up Configure API Credentials Add the following credentials in n8n: Clearbit (Lead Enrichment) Create account at clearbit.com Generate API key from Settings → API Add as "Clearbit API" credential in n8n HubSpot (CRM Integration) Create private app in HubSpot Settings → Integrations → Private Apps Grant scopes: crm.objects.contacts.write, crm.objects.deals.write Copy app token Add as "HubSpot App Token" credential in n8n Calendly (Calendar Availability) Create OAuth app at calendly.com/integrations/api_webhooks Configure OAuth2 credentials in n8n Set environment variable: CALENDLY_USER_URI with your user URI Get this from: https://api.calendly.com/users/me (returns your user URI) Slack (Team Notifications) Create Slack app at api.slack.com/apps Add Bot Token Scopes: channels:read, chat:write, channels:history Install app to workspace and copy Bot User OAuth Token Add as "Slack API" credential in n8n Update channel names in nodes: change "hot-leads" and "leads" to your actual channel names SendGrid (Email Fallback) Create account at sendgrid.com Generate API key from Settings → API Keys Verify sender email address Add as "SendGrid API" credential in n8n Update "from" email in "Send Fallback Email" node Google Sheets (Activity Logging) Create Google Cloud project and enable Sheets API Configure OAuth2 credentials in n8n Create a Google Sheet with columns matching the workflow Replace YOUR_GOOGLE_SHEET_ID in "Log to Google Sheets" node with your actual sheet ID Customize Fit Scoring Logic Edit the "Calculate Fit Score" node to match your ideal customer profile: Default Scoring: Company size 50-5,000 employees = 40 points Executive/Director seniority = 30 points Annual revenue ≥ $1M = 30 points Total possible:* 100 points | High-intent threshold:* 60+ points To Customize: Adjust company size ranges based on your target market Change seniority requirements (C-level, VP, Manager, etc.) Modify revenue thresholds Update the 60-point threshold for high-intent routing Set Up Webhook Endpoint Get Webhook URL: Activate the workflow Copy webhook URL from "Lead Form Webhook" node URL format: https://your-n8n-instance.com/webhook/demo-request Configure Form Provider: Point your website form POST request to the webhook URL Send JSON body with fields: email, name, company, phone, utm_source, utm_campaign, page_url, message Or map your existing form fields to these names in "Normalize Lead Data" node Example Form Integration: // HTML Form fetch('https://your-n8n.com/webhook/demo-request', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ email: '[email protected]', name: 'John Doe', company: 'Acme Inc', phone: '+1234567890', utm_source: 'google', page_url: window.location.href }) }) Test the Workflow Initial Test: Activate the workflow Submit test lead via webhook (use Postman or curl) Verify Clearbit enrichment returns data Check HubSpot for created contact and deal Confirm Slack notification appears in correct channel Verify Google Sheet receives log entry Response Test: Wait 10 minutes after Slack notification Check if "Check Slack Replies" detects no response Verify fallback email sends via SendGrid Confirm lead receives booking email with Calendly link Calendly Test: Verify "Get Calendly Event Types" finds your Demo event Check "Get Available Demo Slots" returns actual time slots Confirm booking URLs work and pre-fill time selection Monitor and Optimize Key Metrics to Track: Time from form submission to Slack notification (target: <30 seconds) Sales response rate within 10 minutes Fallback email send rate (lower is better) High-intent lead conversion rate (booked → closed) Average fit score of closed deals Optimization Tips: Adjust fit score weights based on actual conversion data Tune the 60-point threshold for high-intent routing Customize Slack message format for your team's workflow Modify wait time (10 minutes) based on team availability Add custom fields to Google Sheet for additional tracking Requirements n8n Instance: n8n Cloud or self-hosted (v1.0+) Code node execution enabled Webhook functionality active External Services: Clearbit** - Enrichment API (paid service, free trial available) HubSpot** - CRM with API access (free tier available) Calendly** - Scheduling platform with API access (paid plans) Slack** - Workspace with bot integration capability SendGrid** - Email API (free tier: 100 emails/day) Google Sheets** - Google account with Sheets API enabled Technical Requirements: Public webhook endpoint (HTTPS) Environment variable support for sensitive data OAuth2 authentication capability Minimum 256MB RAM for code node execution Data Privacy: Ensure GDPR/CCPA compliance for lead data storage Review data retention policies for all connected services Configure appropriate data handling in Google Sheets Add privacy policy link to email templates Tips and best practices Fit Scoring: Start with default scoring, then optimize based on actual conversion data Review monthly: which scores convert best? Adjust weights accordingly Consider adding industry filters for vertical-specific targeting Test different thresholds (50, 60, 70) to find optimal balance Lead Response: Keep 10-minute wait time during business hours Consider longer wait for after-hours leads (use schedule trigger) Customize Slack urgency based on fit score (🔥 for 80+, ⚡ for 60-79) Add @mentions in Slack for specific team members based on lead attributes Calendar Management: Use dedicated "Demo" event type in Calendly for consistent detection Ensure event name includes "demo" (case-insensitive) for workflow to find it Set appropriate buffer times between meetings in Calendly settings Review availability regularly to maintain high slot count Error Handling: All critical nodes have onError: continueRegularOutput to prevent workflow stops Monitor execution logs daily for failed enrichments or CRM errors Set up n8n error workflow to alert on consistent failures Keep fallback booking URL updated in case Calendly API fails Performance: Webhook responds immediately (within 2 seconds) even while processing continues Clearbit enrichment can take 3-5 seconds—this is expected Consider batching Google Sheets updates if processing >100 leads/day Monitor n8n resource usage; Code nodes can be memory-intensive Privacy and Compliance: Add unsubscribe link to fallback emails Include data handling disclosure in form Set Google Sheet permissions appropriately (team only) Review Clearbit's data sources for compliance requirements Configure data retention in HubSpot to match your policy Customization Ideas: Add SMS notification for ultra-high fit scores (90+) Integrate with territory routing (route to specific sales rep by region) Add lead source scoring (paid > organic > referral) Create separate tracks for different product lines Build competitor mention detection in form messages Add qualification questions that influence fit score

Share time-limited preview links with UploadToURL, SendGrid, and Google Sheets

Stop sending sensitive agency drafts as permanent email attachments. This workflow creates a "self-destructing" delivery system that hosts files via UploadToURL, sends branded previews via SendGrid, and automatically expires access after a set duration while logging the entire lifecycle in Google Sheets. 🎯 What This Workflow Does Turns any sensitive file into a professional, time-limited client preview: 📝 Captures Delivery Request - Receives the file (binary or URL), recipient info, and desired expiry duration (e.g., 24 hours) via Webhook. ☁️ Instant CDN Hosting - UploadToURL hosts the asset and returns a high-speed public link. 🔑 Secure Token Generation - Generates a unique hex token and calculates the exact UTC expiry timestamp. 📊 Real-time Logging - Records the link in Google Sheets as active with all metadata before the email is sent. 📧 Branded Delivery - Sends a professional HTML email via SendGrid featuring your branding, a secure "View File" button, and a clear expiry notice. ⏳ Automated Expiration - Pauses execution for the specified duration using the Wait node, then updates the sheet to expired and notifies both the client and the agency. ✨ Key Features UploadToURL Integration**: Native community node hosting ensures your files are web-ready instantly without manual cloud storage setup. Dynamic "Burner" Logic**: The link stays active only as long as you specify (from 1 to 168 hours). Dual-Phase Notifications**: Clients get a polite notice when the link is active and a second one when it has officially expired. Lifecycle Tracking**: A centralized Google Sheet acts as your "Delivery Command Center," tracking tokens, sent times, and expiry statuses. Agency Audit Trail**: The agency receives a final summary email once a link's lifecycle is complete, providing a full record for project management. 💼 Perfect For Creative Agencies**: Sharing draft designs, videos, or proposals that shouldn't live in a client's inbox forever. Legal & Finance**: Providing temporary access to sensitive documents or statements. Freelancers**: Delivering final assets that require a "preview-only" window before final payment. HR Teams**: Sending temporary access to employee handbooks or internal policy drafts. 🔧 What You'll Need Required Integrations UploadToURL** - To host assets and provide secure CDN links. n8n Community Node** - n8n-nodes-uploadtourl must be installed. SendGrid** - To send the branded preview and expiry emails. Google Sheets** - To act as the database for link tracking. Configuration Variables GSHEET_SPREADSHEET_ID: The ID of your tracking sheet. DEFAULT_EXPIRY_HOURS: Default time (e.g., 24) if not specified in the webhook. AGENCY_NAME & AGENCY_EMAIL: For branding the automated emails. 🚀 Quick Start Import Template - Copy the JSON and import it into your n8n canvas. Install Node - Ensure the UploadToURL community node is installed. Set Credentials - Link your UploadToURL, SendGrid, and Google Sheets accounts. Prepare Sheet - Create a sheet named BurnerLinks with columns: Token, Recipient Email, Status, Sent At, Expires At, and CDN URL. Define Variables - Update the n8n variables with your Sheet ID and Agency details. Deploy - Activate the workflow and start sending secure, timed previews. 🎨 Customization Options Branding**: Edit the Generate Link Record code node to update the HTML/CSS for the email templates to match your brand colors. Extended Wait**: For links lasting weeks, ensure your n8n instance is configured to persist executions across restarts. Slack Alerts**: Add a Slack node to notify your team the moment a client clicks the link (requires a redirect/tracking layer). Password Protection**: Integrate an additional layer that requires a password (sent via a separate channel) to view the UploadToURL link. 📈 Expected Results Enhanced Security**: Sensitive files no longer float around indefinitely in client inboxes. Professional Impression**: Clients receive branded, structured previews that emphasize security and professionalism. Zero Manual Cleanup**: No need to manually delete files or remember to "turn off" links. Complete Transparency**: Always know exactly which links are active and when they were accessed. 🏆 Use Cases Pitch Deck Delivery Send your high-stakes pitch deck with a 48-hour window. The urgency encourages the client to review it promptly while protecting your IP. Contract Previews Share a draft agreement for a quick 24-hour review. Once the window closes, the client is prompted to contact you for the final version. Limited-Time Portfolio Share a custom portfolio or "lookbook" with a lead, giving them 7 days of access to create a "limited time" feel to your availability. 💡 Pro Tips Wait Node Execution**: Each link runs as a separate execution. If you send 100 links, you will see 100 "Waiting" executions in your history. File Types**: The workflow includes validation for PDF, JPG, PNG, DOCX, and MP4. You can expand this in the Validate Payload code node. BCC Records**: The workflow automatically BCCs the agency on the first email so you have a copy in your own sent folder. Ready to secure your deliveries? Import this template and connect UploadToURL to start sending professional "burner" links today. Questions about the Google Sheet setup? The workflow includes a detailed sticky note explaining the exact column headers needed for the database sync.

Automate B2B Lead Generation using Google Places API & SendGrid with Dashboard

This n8n workflow automates the entire lead generation pipeline from discovery to outreach: Location Grid Generation and Management Generates precise lat/lng grid points covering major US cities (New York, Texas, New Jersey, Atlanta, Miami) Uses 1.5km radius searches for optimal coverage Tracks searched locations to prevent duplicates Processes 50 points per day (customizable based on API quota) Automated Lead Discovery Daily scheduled searches using Google Places Nearby API Extracts business details: name, address, rating, status, place ID Fetches additional data via Google Places Details API (phone, website, hours) Smart filtering to focus only on businesses with websites Contact Information Extraction Scrapes business websites to find email addresses Advanced email filtering removes fake/placeholder emails Deduplicates by domain to ensure quality leads Tracks all discovered emails per business Intelligent Cold Email Outreach Two alternating email templates for variety and testing Personalized with business name, industry, and first name Rate-limited sending (30-second delays) to avoid spam flags Automated via SendGrid integration Marks sent emails in the database Real-Time Lead Dashboard Webhook-powered reporting endpoint Displays all discovered leads with full details Filters out fake/invalid emails automatically Clean, accessible data format for analysis What You Get: Automated daily lead collection from Google Places Email extraction from business websites Personalized cold email campaigns with A/B testing Lead tracking database in Google Sheets Real-time reporting dashboard via webhook Complete deduplication to maintain data quality Setup Requirements: Google Cloud Platform account (for Places API key) SendGrid account (for email sending) Google Sheets (2 templates provided) Basic n8n knowledge for configuration Included Templates: Location Grid Google Sheet - Tracks searched coordinates Leads Database Google Sheet - Stores all discovered leads Dashboard Webpage - Real-time lead reporting interface Customizable Features: Target locations (currently covers 5 major US cities) Daily batch size (default: 50 searches/day) Email templates and personalization Search radius (default: 1.5km) Industry filters and targeting Perfect For: Marketing agencies building client lead lists B2B sales teams prospecting locally Service providers finding new customers Anyone needing automated local business outreach Need help setting this up or want custom modifications? 📧 Connect with me on LinkedIn: Gilbert Onyebuchi 🌐 View live dashboard demo: Click here
+5

YouTube Video Optimization & Cross-Platform Distribution with GPT-4o

This workflow automates the post-publish process for YouTube videos, combining advanced SEO optimization, cross-platform promotion, and analytics reporting. It is designed for creators, marketers, and agencies who want to maximize the reach and performance of their YouTube content with minimal manual effort. Features SEO Automation** Fetches video metadata and analyzes competitor and trending data. Uses AI to generate SEO-optimized titles, descriptions, and tags. Calculates an SEO score and applies A/B testing logic to select the best title. Updates the video metadata on YouTube automatically. Cross-Platform Promotion** Generates platform-specific promotional content (LinkedIn, X/Twitter, Instagram, Facebook, etc.) using AI. Publishes posts to each connected social channel. Extracts video clips and analyzes thumbnails for enhanced promotion. Engagement Monitoring & Analytics** Monitors YouTube comments, detects negative sentiment, and drafts AI-powered replies. Logs all key data (videos, comments, analytics) to Google Sheets for tracking and reporting. Runs a weekly analytics job to aggregate performance, calculate engagement/viral indicators, and email a detailed report. Notifications & Alerts** Sends Slack alerts when a new video is published or when viral potential/negative comments are detected. How It Works Trigger The workflow starts automatically when a new YouTube video is published (via webhook) or on a weekly schedule for analytics. Video Intake & SEO Fetches video details (title, description, tags, stats). Gathers competitor and trending topic data. Uses AI to generate improved SEO assets and calculates an SEO score. Selects the best title (A/B test) and updates the video metadata. Clip & Thumbnail Processing If the video is long enough, runs thumbnail analysis and extracts short clips for social media. Cross-Platform Promotion Generates and formats promotional posts for each social platform. Publishes automatically to enabled channels. Engagement & Comment Monitoring Fetches comments, detects negative sentiment, and drafts AI-powered replies. Logs comments and responses to Google Sheets. Analytics & Reporting Aggregates weekly analytics, calculates engagement and viral indicators. Logs insights and sends a weekly report via email. Notifications Sends Slack alerts for new video publications and viral/negative comment detection. Setup Instructions Connect YouTube Set up YouTube API credentials and required IDs in the Workflow Configuration node. Connect OpenAI Add your OpenAI credentials for AI-powered content generation. Connect Slack Configure Slack credentials and specify alert channels. Connect Google Sheets Set up service account credentials for logging video, comment, and analytics data. Configure Social Platforms Add credentials for LinkedIn, Twitter (X), Instagram, and Facebook as needed. Test the Workflow Publish a test video and verify that metadata updates, social posts, logging, and weekly reports are working as expected. Use Cases YouTube Creators:** Automate SEO, promotion, and analytics to grow your channel faster. Marketing Teams:** Streamline multi-channel video campaigns and reporting. Agencies:** Deliver consistent, data-driven YouTube growth for multiple clients. Requirements YouTube API credentials OpenAI API key Slack API token Google Sheets service account (Optional) LinkedIn, Twitter, Instagram, Facebook API credentials Limitations Requires valid API credentials for all connected services. AI-powered features depend on OpenAI API access. Social posting is limited to platforms with available n8n nodes and valid credentials. Tip: You can easily customize prompts, scoring logic, and enabled platforms to fit your channel’s unique needs.

Email Newsletter System with SendGrid, Google Sheets & Freemium Rate Limiting

A complete email campaign automation system featuring dual-mode access control (Demo/Pro), usage tracking, and professional email delivery. Perfect for SaaS products, marketing agencies, or anyone building newsletter tools with freemium models. WHAT IT DOES This workflow manages email newsletter campaigns with built-in rate limiting for free users and unlimited access for premium users. It automatically tracks daily usage, manages user data in Google Sheets, delivers emails via SendGrid, and sends real-time notifications through Telegram. KEY FEATURES Dual-Mode System: Demo mode (5 emails/day) and Pro mode (unlimited) Smart Rate Limiting: Automatic daily counter reset User Management: Automatic new user registration and tracking Google Sheets Integration: Stores user data, send counts, and usage history Professional Email Delivery: SendGrid integration for reliable sending Real-Time Monitoring: Telegram notifications for every send Ready-to-Use Templates: 4 professional email designs included (Modern, Professional, Promotional, Newsletter) Live Preview: See exactly how emails look before sending HTML Export: Copy email HTML for use in any platform HOW IT WORKS User accesses the Email Newsletter Builder web form Designs email using one of 4 professional templates Chooses Demo or Pro mode Webhook receives the email data and configuration Workflow checks mode (Demo/Pro) For Demo mode: Queries Google Sheets for user email Checks if user exists and validates daily limit (<5 sends) If new user: Creates database entry If existing user + under limit: Increments counter If limit reached: Returns error message For Pro mode: Sends immediately without limits SendGrid delivers the email Google Sheets updates with new send count and timestamp Telegram notification sent to admin Success/error response returned to user SETUP REQUIREMENTS Google Sheets account (free) SendGrid account (free tier: 100 emails/day) Telegram account + bot (free) n8n instance (self-hosted or cloud) SUPPORT & FEEDBACK Questions or issues? Connect with me on LinkedIn Want to see it in action? Try the live demo: Click here ⭐ If you find this workflow helpful, please give it a rating and share your feedback!

Build your own Webhook and SendGrid integration

Create custom Webhook and SendGrid workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

SendGrid supported actions

Create or Update
Create a new contact, or update the current one if it already exists (upsert)
Delete
Delete a contact
Get
Get a contact by ID
Get Many
Get many contacts
Create
Create a list
Delete
Delete a list
Get
Get a list
Get Many
Get many lists
Update
Update a list
Send
Send an email

Webhook and SendGrid integration details

integrationWebhook node
Webhook

Webhooks are automatic notifications that apps send when something occurs. They are sent to a certain URL, which is effectively the app's phone number or address, and contain a message or payload. Polling is nearly never quicker than webhooks, and it takes less effort from you.

Use case

Save engineering resources

Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.

Learn more
Use case

Automate lead management

Using too many marketing tools? n8n lets you orchestrate all your apps into one cohesive, automated workflow.

Learn more

FAQs

  • Can Webhook connect with SendGrid?

  • Can I use Webhook’s API with n8n?

  • Can I use SendGrid’s API with n8n?

  • Is n8n secure for integrating Webhook and SendGrid?

  • How to get started with Webhook and SendGrid integration in n8n.io?

Need help setting up your Webhook and SendGrid integration?

Discover our latest community's recommendations and join the discussions about Webhook and SendGrid integration.
Benjamin Hatton
Albert Ashkhatoyan
Víctor González
Salomão
sg tech

Looking to integrate Webhook and SendGrid in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Webhook with SendGrid

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon