Enrich B2B leads with Tavily search, Groq Llama 3.3, and Google Sheets
Needs changesWhat this workflow does
This AI workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Groq Chat Model and Google Sheets. It also calls api.tavily.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Company Details (Edit Fields (Set)): sets 2 fields: company, domain
- Post Company Info Search (HTTP Request): calls api.tavily.com (POST)
- Capture Company Information (Edit Fields (Set)): sets 3 fields: company_info, company, domain
- Post News Search (HTTP Request): calls api.tavily.com (POST)
- Capture Recent News Data (Edit Fields (Set)): sets 4 fields: recent_news, company_info, company…
- Post Key People Search (HTTP Request): calls api.tavily.com (POST)
- Capture Key People Data (Edit Fields (Set)): sets 5 fields: key_people, company_info, recent_news…
- AI Lead Analysis Agent (AI Agent): runs an AI agent, with model: Groq Language Model
- Flatten Response Data (Code): runs custom JavaScript code
- Check Parse Status (If): checks a condition and branches into true / false
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: api.tavily.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Lead Analysis Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Lead Analysis Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow receives a company name via webhook, runs three Tavily web searches (company info, recent news, and key people), uses Groq (Llama 3.3 70B) to synthesize a structured lead profile, optionally appends the results to Google Sheets,…