You are helping me build the following AI agent workflow. ## Goal Sales Pipeline Lead Scoring: Captures new leads via webhook or schedule, enriches them with LinkedIn and Crunchbase data, scores fit using AI. ## Specification - What it does: Capture new leads instantly via webhook or schedule and automatically score their fit using AI. Enrich every profile with LinkedIn and Crunchbase data before routing qualified prospects to the right sales rep in HubSpot while updating your Google Sheets dashboard. - Trigger: Triggered by an event (Scheduled · periodic monitoring or Event · webhook on new lead) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - HubSpot: CRM integration and deal management - Google Sheets: Pipeline dashboard and data storage - Slack: Team notifications - ScrapeGraphAI: Lead intelligence and data enrichment ## Known pitfalls, handle each one explicitly in your implementation 1. ScrapeGraphAI may return inconsistent JSON structures, so add robust error handling and field validation before routing data. 2. LinkedIn enrichment often fails for private profiles, set a fallback strategy that uses available public data instead of failing silently. 3. Google Sheets cell references can break if columns are reordered, use named ranges or column headers dynamically in your code node. ## Reference implementation https://n8n.io/workflows/6432 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/automate-sales-pipeline-with-ai-lead-scoring/ via usecasesforagents.com