Skip to main content

Score inbound B2B leads with OpenAI GPT-5.4 using Tally and Google Sheets

Workflow preview

Workflow preview
100%
Score inbound B2B leads with OpenAI GPT-5.4 using Tally and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Description This workflow automatically scores B2B leads by fetching and analyzing real company website data. It helps marketing and sales teams qualify inbound leads without manually researching e...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-tallyforms.tallytrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Score inbound B2B leads with OpenAI GPT-5.4 using Tally and Google Sheets
Workflow name
Score inbound B2B leads with OpenAI GPT-5.4 using Tally and Google Sheets

Description

This workflow automatically scores B2B leads by fetching and analyzing real company website data. It helps marketing and sales teams qualify inbound leads without manually researching each company.

Overview

A marketing employee submits a company name, LinkedIn URL, website URL, and scoring criteria through a Tally form. The workflow fetches the company's actual homepage, strips it to readable text, and runs it through a chain of three AI agents: one to normalize the input, one to extract intelligence from the real website content (tech stack, industry, company size signals), and one to score the lead against the submitted criteria. The scored, enriched lead is logged to a Google Sheet with a grade and recommended next action for the sales rep.

Tools Used

  • n8n: The automation platform that orchestrates the workflow.
  • Tally: Free form builder used as the input layer where marketing employees submit companies to research. Create forms at tally.so.
  • OpenAI (GPT-5.4): Powers three chained AI agents for data normalization, website content analysis, and lead scoring.
  • Google Sheets: Logs every scored lead with timestamp, company details, tech stack, score, grade, reasoning, and recommended action.

How it works

  1. A marketing employee fills out a Tally form with the company name, LinkedIn URL, website URL, and which scoring criteria matter (company size, industry fit, tech stack, geography, funding stage, hiring signals).
  2. The Tally Trigger fires and sends the raw submission to Agent 1, which normalizes the payload into clean structured fields.
  3. An HTTP Request node fetches the company's homepage HTML directly.
  4. A Code node strips the HTML down to plain readable text (removes scripts, styles, navigation, footers) and truncates to 6,000 characters.
  5. Agent 2 reads the actual homepage content and extracts structured intelligence: what the company does, their tech stack, company size signals, industry, and signals relevant to the buyer's criteria.
  6. Agent 3 scores the lead 1-10 against the submitted criteria using the real website intelligence, assigns a grade (A-D), and writes a recommended action for the sales rep.
  7. The enriched lead is appended to a Google Sheet.

How to Install

  1. Import the Workflow: Download the .json file and import it into your n8n instance.
  2. Configure Tally: Add your Tally API key in n8n credentials (get it from Tally > Settings > Integrations > API). Select your Tally form in the Tally Trigger dropdown.
  3. Configure OpenAI: Add your OpenAI API key in n8n credentials.
  4. Configure Google Sheets: Add Google Sheets OAuth2 credentials.
  5. Create a Tally Form: Create a lead scoring form in Tally with these fields:
  • Company Name (short text)
  • LinkedIn URL (URL field)
  • Company Website URL (URL field)
  • Scoring Criteria (checkboxes: Company Size, Industry Fit, Tech Stack Match, Geography, Funding Stage, Hiring Signals)
  • Additional Notes (long text, optional)
  1. Set Up Google Sheets: Create a spreadsheet with a tab named exactly leads and these column headers in Row 1 (all lowercase, copy-paste ready):
timestamp company website_url linkedin_url criteria company_summary tech_stack score grade reasoning recommended_action
  1. Connect the Sheet: Paste your spreadsheet ID into the Append Lead to Sheet node.
  2. Test: Submit a test entry through your Tally form to verify data flows through all stages.

Use Cases

  • Sales Teams: Qualify inbound leads instantly instead of spending 15 minutes researching each company manually.
  • SDRs and BDRs: Prioritize outreach by grade. Focus on A-leads first, batch-reject D-leads.
  • Marketing Ops: Score MQLs at the point of capture before they enter the CRM.
  • Partnership Teams: Evaluate potential partner companies against tech stack and industry fit criteria.
  • Agency New Business: Screen prospect companies submitted by account managers before investing in a pitch.

Notes

  • The HTTP Request fetches the company homepage with a 15-second timeout. If a site blocks the request, the workflow continues with whatever data is available.
  • Homepage text is truncated to 6,000 characters to keep AI costs predictable.
  • GPT-5.4 costs approximately $2.50 per million input tokens and $15 per million output tokens. A typical lead scoring run uses 3 API calls, costing approximately $0.02-0.05 per lead depending on homepage size.
  • To adjust scoring thresholds or add your own criteria weighting, edit the Score the Lead agent's system prompt.
  • The workflow scores against whatever criteria the user submits in the Tally form, so different team members can use different criteria without editing the workflow.
  • Tally's checkbox question type maps well to scoring criteria — each checked option arrives as a separate value in the API payload, making it easy for the AI to evaluate against specific dimensions.

Connect with Me

#n8n #automation #tally #openai #gpt5 #leadscoring #b2bsales #salesautomation #googlesheets #leadsqualification #aileadscoring #marketingautomation #n8nworkflow #workflow #nocode #salespipeline #prospecting #leadenrichment #techstack #tallyforms #inboundleads

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 - Normalise Tally Payload

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 2 - GPT-5.4 Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 3 - Map Lead Fields

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

Block 4 - Fetch Company Homepage

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

Block 5 - Strip HTML to Plain Text

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

Block 6 - Analyse Website Content

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 7 - GPT-5.4 Model 2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 8 - Map Website Analysis

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

Block 9 - Score the Lead

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 10 - GPT-5.4 Model 3

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 11 - Build Sheet Row

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

Block 12 - Tally Trigger

Type / Role
n8n-nodes-tallyforms.tallyTrigger - tallyTrigger
Config choices
Version 2

Block 13 - Sticky Note - Data Capture

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

Block 14 - Sticky Note - Research

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

Block 15 - Sticky Note - Scoring & Output

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

Block 16 - Sticky Note - Overview

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

Block 17 - Append Lead to Sheet

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

3. Summary Table

Workflow Score inbound B2B leads with OpenAI GPT-5.4 using Tally and Google Sheets
Complexity advanced
Nodes 17
Categories Lead Generation, AI Summarization
Author Yaron Been
Published 15 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15059/15059.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 Score inbound B2B leads with OpenAI GPT-5.4 using Tally and Google Sheets do?

Description This workflow automatically scores B2B leads by fetching and analyzing real company website data. It helps marketing and sales teams qualify inbound leads without manually researching e...

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