See llms.txt for all machine-readable content.

Back to Templates

Score and route inbound B2B leads with Groq AI

Quick overview

This workflow receives inbound B2B leads via a webhook, uses Groq’s chat model to score and categorize them (hot/warm/cold) and draft a first reply, then routes the lead to a category-specific branch and returns the result as JSON.

How it works

  1. Receives a lead submission via an HTTP POST webhook.
  2. Sends the lead details (name, company, email, budget, message) to Groq Chat Model to extract a structured score, category, intent, reasoning, and reply draft.
  3. Shapes the extracted fields into a clean JSON payload for downstream routing.
  4. Routes the lead based on the AI-provided category into hot, warm, cold, or a fallback manual-review path.
  5. Adds a category-specific next-action note for the chosen route (placeholder for CRM, Slack, or email actions).
  6. Returns the routed lead payload (including score, category, and reply draft) as the webhook response.

Setup

  1. Create and select a Groq API credential in the Groq Chat Model node.
  2. Update the webhook path (and add authentication if needed) and configure your lead source to POST to the webhook URL.
  3. Customize the qualification rules in the Groq system prompt (for example, budget threshold and what counts as hot/warm/cold).
  4. Replace the placeholder branch steps with real actions (for example, Slack alerts, CRM creation, or sending the drafted email).