Workflows· Sales & Outreach

    The Lead Relay

    Every new lead from a form is automatically scored on budget, need and timing and reaches the right salesperson within minutes, complete with a priority score and rationale.

    automatinganalytical

    Description

    Steps

    Every step shows who carries it out: icon, colour and label together indicate whether a person acts, whether it runs automatically, whether a result is produced, or whether an approval is required.

    01Person

    A form webhook delivers the incoming lead data, including budget, need and timing, to the workflow.

    02Automated

    03Automated

    04Automated

    05Result

    Key
    PersonAutomatedResultApproval

    Requirements and operations

    Requirements

    • Form tool A tool with a webhook trigger, for example Typeform or Google Forms.
    • CRM system HubSpot, Salesforce, Pipedrive or a comparable system for storing leads.
    • Scoring criteria Thresholds for budget, product fit and timing, defined before go live.
    • LLM access and team chat Access to a language model, for example from OpenAI, Anthropic or Google, plus a chat tool such as Slack or Teams for the sales notification.

    Testing

    • Test lead Submit a form with realistic data, including budget, need and timing.
    • Data mapping Check whether all form fields arrive completely in the workflow.
    • Scoring and CRM Check whether the score is plausible and the lead lands with the right status in the right stage.
    • Edge cases Test incomplete data, a duplicate case, a very small budget and recognizable spam.

    Go-live

    • Approve Activate the workflow only once scoring, CRM entry and routing run cleanly.
    • Cross check Manually review the first roughly twenty scored leads and sharpen the thresholds.
    • Routing Route leads by region, industry or budget to the right salesperson.
    • Expand Add enrichment, nurturing tracks for B and C leads, and intent analysis as needed.

    Common issues

    • Form fields not mapped Connect every placeholder in the prompt explicitly to the matching form field name.
    • No valid JSON Keep the instruction for pure JSON output in the prompt and add validation.
    • CRM required fields missing Set email address, last name and other required fields in the form as mandatory.
    • Scoring feels arbitrary Spell out the thresholds explicitly in the prompt and calibrate them against real deals.

    Builder Prompt

    GOAL
    Build a workflow that automatically scores new leads from forms on budget, need and timing, assigns an A to D score with a rationale, files the lead cleanly in the CRM, and notifies the responsible salesperson with a concrete recommended action.
    
    Adapt the structure to the concepts of your automation tool, for example nodes, steps, zaps or agent actions. While doing so, preserve the trigger logic, the sequence, the parallelism and the data flow.
    
    TRIGGER
    Type: form webhook, for example Typeform or Google Forms. Fires on every new submission.
    Requirement: required fields in the form for email, name, budget, need and timing, otherwise the CRM is missing required data.
    
    STEPS
    1. Optional, enrichment: add company size, industry and tech stack through Clearbit, Apollo or a comparable service.
    2. AI step: lead scoring. Use exactly the scoring prompt below. The output is a JSON with total_score, scoring_category, the three sub scores, qualification_status, recommended_action and summary.
    3. Duplicate check: search for the lead by email address or company in the CRM. Update an existing entry with the new score, instead of creating a duplicate.
    4. CRM: create or update the lead, with score, category, rationale and status in the right stage.
    5. Output: notify the responsible salesperson, with routing by region, industry or budget. The message contains the score, rationale and recommended action. A and B leads are reported immediately and prominently, C and D leads flow into nurturing.
    
    PROMPTS (use exactly and unchanged)
    Prompt 1, lead scoring:
    """
    You are an assistant for lead qualification. Analyze the following lead data and assess the lead quality:
    
    Lead information:
    - Name: [LEAD_NAME]
    - Company: [COMPANY_NAME]
    - Budget: [BUDGET_INFO]
    - Need/requirement: [NEED_DESCRIPTION]
    - Timing/timeframe: [TIMING_INFO]
    - Additional information: [ADDITIONAL_INFO]
    
    Your task:
    Assess the lead against the following criteria and assign an overall score.
    
    1. Budget fit (0 to 10 points): [BUDGET_CRITERIA]
    2. Need fit (0 to 10 points): [NEED_CRITERIA]
    3. Timing fit (0 to 10 points): [TIMING_CRITERIA]
    
    Scoring scheme:
    - A lead (25 to 30 points): high priority, immediate contact
    - B lead (18 to 24 points): good quality, contact within 24 hours
    - C lead (10 to 17 points): medium quality, nurturing required
    - D lead (0 to 9 points): low quality, automatic follow-up
    
    Respond exclusively in the following JSON format:
    {
      "total_score": [total points],
      "scoring_category": "[A/B/C/D]",
      "budget_points": [0 to 10],
      "need_points": [0 to 10],
      "timing_points": [0 to 10],
      "qualification_status": "[Qualified/Conditionally qualified/Not qualified]",
      "recommended_action": "[concrete recommended action]",
      "summary": "[2 to 3 sentences justifying the score]"
    }
    """
    
    DATA FLOW
    Trigger/step 1 to step 2: form fields to [LEAD_NAME], [COMPANY_NAME], [BUDGET_INFO], [NEED_DESCRIPTION], [TIMING_INFO]. Enrichment data to [ADDITIONAL_INFO].
    Step 2 to step 4: JSON fields to the CRM properties (score, category, status, rationale).
    Step 2 to step 5: scoring_category for routing and prioritization, recommended_action and summary.
    
    ERROR HANDLING
    Form fields not mapped: connect every placeholder explicitly to the form field name, instead of guessing.
    AI returns no valid JSON: keep the pure JSON output instruction, validate the output and repeat the step once. After that, file the lead unscored in the CRM and send a note to sales.
    Incomplete lead data: have missing information scored as "not provided", instead of guessing it.
    Spam or fake entries: treat these as a D lead, or filter them out through a plausibility check on the email domain.
    Duplicate found: update the existing entry, instead of creating a new one (step 3).
    Scoring feels arbitrary: fill in the three criteria placeholders concretely, calibrate them against real deals, and manually cross check the first twenty leads.
    
    PLACEHOLDER CONVENTION
    All placeholders in square brackets are variables. Mapped dynamically are [LEAD_NAME], [COMPANY_NAME], [BUDGET_INFO], [NEED_DESCRIPTION], [TIMING_INFO] and [ADDITIONAL_INFO], as described in the data flow. Not dynamic are [BUDGET_CRITERIA], [NEED_CRITERIA] and [TIMING_CRITERIA]. These are the company specific scoring criteria that you define manually before activation. The square brackets in the JSON format are format instructions to the language model and stay unchanged. List all placeholders that require manual configuration separately at the end.
    
    SELF CHECK BEFORE COMPLETION
    Check, before you report the workflow as finished:
    1. Are all steps connected correctly, including the duplicate check before the CRM entry?
    2. Is the scoring prompt inserted in full and unchanged, and are all form fields mapped to the placeholders?
    3. Is the JSON validated, and does the routing work (A and B immediately, C and D into nurturing)?
    4. Are all points listed that require manual configuration: the form webhook with required fields, CRM access with stage mapping, sales routing, [BUDGET_CRITERIA], [NEED_CRITERIA], [TIMING_CRITERIA] and the LLM access?

    Working prompts

    Lead scoring

    Used in step 2 to assess budget, need and timing of the incoming lead and assign an A to D score with a rationale.

    You are an assistant for lead qualification. Analyze the following lead data and assess the lead quality:
    
    Lead information:
    - Name: [LEAD_NAME]
    - Company: [COMPANY_NAME]
    - Budget: [BUDGET_INFO]
    - Need/requirement: [NEED_DESCRIPTION]
    - Timing/timeframe: [TIMING_INFO]
    - Additional information: [ADDITIONAL_INFO]
    
    Your task:
    Assess the lead against the following criteria and assign an overall score.
    
    1. Budget fit (0 to 10 points): [BUDGET_CRITERIA]
    2. Need fit (0 to 10 points): [NEED_CRITERIA]
    3. Timing fit (0 to 10 points): [TIMING_CRITERIA]
    
    Scoring scheme:
    - A lead (25 to 30 points): high priority, immediate contact
    - B lead (18 to 24 points): good quality, contact within 24 hours
    - C lead (10 to 17 points): medium quality, nurturing required
    - D lead (0 to 9 points): low quality, automatic follow-up
    
    Respond exclusively in the following JSON format:
    {
      "total_score": [total points],
      "scoring_category": "[A/B/C/D]",
      "budget_points": [0 to 10],
      "need_points": [0 to 10],
      "timing_points": [0 to 10],
      "qualification_status": "[Qualified/Conditionally qualified/Not qualified]",
      "recommended_action": "[concrete recommended action]",
      "summary": "[2 to 3 sentences justifying the score]"
    }

    JSON export

    Setup

    Two routes lead to the same result. Pick the one that fits your setup.

    Suitable when you want to build the workflow in your own automation tool.

    1. Open your workflow tool, for example n8n, Make, Zapier or Langdock.
    2. Create a new workflow and give it a name.
    3. Choose the AI-assisted build option if your tool offers one.
    4. Paste the builder prompt from above in full.
    5. Check the result against the step sequence in this document, then add your access credentials and channels.

    Suitable when you want to take the workflow over unchanged.

    1. Download the JSON file from the JSON export section.
    2. Open the workflow area of your tool and create a new workflow.
    3. Give it a name and confirm.
    4. Open the menu on the workflow name and choose to import a JSON file.
    5. Upload the file, then add your own access credentials.
    6. Run a test before you activate the workflow.

    Last reviewed:

    In the workshop this becomes your method.

    A single prompt becomes a repeatable method. We show that in the workshop From Prompt to Method.

    View workshops

    Related resources

    Browse all resources

    Conversation, not pitch

    Understand first, then decide. We take time for an initial conversation, without sales pressure, without obligation.

    Schedule a call