Zum Hauptinhalt springen

AI Lead Qualifier

Verwandeln Sie jede eingehende Anfrage mit Claude in bewertetes, CRM-fertiges JSON.

  • Python
  • FastAPI
  • Pydantic
  • Anthropic Python SDK
  • Uvicorn

Bildschirmfotos

Bildschirmfoto 1 von 7: Titelbild „AI Lead Qualifier — Python-Quellcode“ mit einem qualifizierten Lead als JSON: Absicht sales_inquiry, Greenleaf Organics, Budget rund 15.000 $, Score 95 und hohe Priorität.

Titelbild „AI Lead Qualifier — Python-Quellcode“ mit einem qualifizierten Lead als JSON: Absicht sales_inquiry, Greenleaf Organics, Budget rund 15.000 $, Score 95 und hohe Priorität.

Einmaliger Preis

  • 1.499 ₹zzgl. GST an der Kasse
  • 29 $
  • Laden Sie es aus Ihrer Bibliothek herunter, sobald Ihre Zahlung bestätigt ist.
  • Alle künftigen Releases dieses Projekts sind ohne Aufpreis enthalten.
Neuestes Release
1.0.0 · 14.10.2026

Überblick

Ein schlanker Dienst in Python und FastAPI, der eine kurze Vertriebsanfrage an die Claude API sendet und strukturiertes JSON zurückgibt: die wichtigsten Angaben, die Absicht, einen Lead-Score von 0 bis 100 mit Priorität und Begründung, eine kurze Zusammenfassung und einen Antwortvorschlag, bereit für Ihr CRM.

Anfragen von Hand zu sortieren ist langsam, und gute Leads warten, während jemand Spam liest. AI Lead Qualifier übernimmt diese erste Sichtung für Sie. Senden Sie eine Anfrage an einen einzigen API-Endpunkt und erhalten Sie in wenigen Sekunden sauberes, strukturiertes JSON.

Claude extrahiert Name, E-Mail, Telefon, Firma, Position, Standort, Budget, Zeitrahmen und Anforderungen des Absenders genau so, wie sie geschrieben wurden. Nichts wird geraten: Was die Nachricht nicht sagt, kommt als null zurück. Die Absicht wird als Vertriebsanfrage, Supportanfrage, Partnerschaft, Bewerbung, Lieferantenangebot, Spam oder Sonstiges eingeordnet. Dazu kommen eine Zusammenfassung in ein bis zwei Sätzen und ein Antwortentwurf mit Ihrem Firmennamen, den eine Person vor dem Versand prüft.

Der Score wird in Python berechnet, nicht vom Modell. Eine transparente Bewertungstabelle macht aus den Signalen, die Claude findet (Budget, Dringlichkeit, Entscheidungsbefugnis, konkreter Bedarf, Terminwunsch), einen Score von 0 bis 100, eine hohe, mittlere oder niedrige Priorität und eine Liste von Gründen wie "+20 Budget mentioned". Die Scores sind konsistent, nachvollziehbar und leicht anzupassen, und keine Nachricht kann sich eine hohe Priorität erschleichen. Anfragen werden als Daten behandelt, nie als Anweisungen, daher werden Prompt-Injection-Versuche eingeordnet statt befolgt.

Der Dienst ist für den Produktivbetrieb gebaut. Dank Claude Structured Outputs entsprechen die Ergebnisse immer dem Schema. Jedes Problem mit der Claude API wird zu einem klaren HTTP-Status (422, 502, 503 oder 504) mit Request-ID, und die Logs erfassen Absicht, Score, Tokens und Dauer, ohne Kundendaten. Der System-Prompt wird zwischengespeichert, um Kosten zu sparen, und Claude-Modell und Effort-Stufe lassen sich in einer einzigen Einstellungsdatei ändern.

Der Code ist kompakt, typisiert und vollständig getestet. 39 pytest-Tests laufen mit einem Fake-Analyzer in unter einer Sekunde, rufen Claude also nie auf und kosten nichts. Prompt, extrahierte Felder oder Bewertungstabelle passen Sie in klar gekennzeichneten Dateien an Ihr Geschäft an.

Möchten Sie sehen, wie es gebaut wurde? Die kostenlose Schritt-für-Schritt-Tutorialreihe "Build an AI Lead Qualification Agent with Claude and Python" (auf Englisch) erklärt jede Datei dieses Projekts: https://devblogs.dewiride.com/series/claude-api/ai-lead-qualification-agent-claude-python (öffnet in einem neuen Tab)

Kostenlose Tutorial-Reihe

Build an AI Lead Qualification Agent with Claude and Python

Sie lernen lieber beim Nachbauen? Diese kostenlose Schritt-für-Schritt-Anleitung in unserem Blog zeigt, wie das Projekt entsteht.

Reihe lesen (öffnet in einem neuen Tab)

Das bekommen Sie

Alles im Archiv, auf einen Blick.

  • Vollständiger Python-Quellcode der Version 1.0.0
  • Eine FastAPI-App mit einem Endpunkt, POST /api/v1/leads/qualify, und einem Health-Check
  • Claude Structured Outputs auf Basis von Pydantic-Modellen
  • Eine transparente Bewertung von 0 bis 100 mit Priorität und Gründen, berechnet in Python
  • Klare Fehlerantworten (422, 502, 503, 504) mit Request-ID in jeder Antwort
  • Sichere Logs mit Token-Verbrauch und ohne Kundendaten
  • Ein zwischengespeicherter System-Prompt, den Sie in einer Markdown-Datei bearbeiten
  • 39 Offline-pytest-Tests, die die Claude API nie aufrufen
  • uv.lock mit den exakten Paketversionen, mit denen getestet wurde
  • Ein README mit Einrichtung, Konfiguration, API-Referenz und Anpassungsleitfaden
  • Eine .env.example-Vorlage für jede Einstellung

Gebaut mit

Die genauen Laufzeitumgebungen und Versionen, mit denen gebaut und getestet wurde.

  • Python3.14
  • FastAPI0.143.0
  • Pydantic2.14.1
  • Anthropic Python SDK1.13.0
  • Uvicorn0.54.0
  • pytest9.1.1

Was im Archiv liegt

Der Dateibaum, den Sie nach dem Entpacken vor sich haben.

ai-lead-qualifier/

  • src/
    • lead_qualifier/
      • __init__.py
      • main.py
      • config.py
      • models.py
      • prompts.py
      • system_prompt.md
      • analyzer.py
      • scoring.py
      • logging_config.py
      • api/
        • __init__.py
        • health.py
        • leads.py
        • errors.py
        • middleware.py
  • tests/
    • conftest.py
    • test_api.py
    • test_models.py
    • test_prompts.py
    • test_scoring.py
    • data/
      • greenleaf-analysis.json
  • .env.example
  • .gitignore
  • .python-version
  • pyproject.toml
  • uv.lock
  • README.md

Was es von Ihnen braucht

Die Konten und Dienste, die es voraussetzt, damit Sie später nichts überrascht.

  • uv, das Python 3.14 für Sie installiert
  • Ein Claude-API-Schlüssel in einem Anthropic-Konto mit Guthaben (die API-Nutzung rechnet Anthropic ab)
  • Grundkenntnisse im Ausführen von Befehlen im Terminal
  • macOS, Windows oder Linux

Versionen

Alle bisherigen Versionen, die neueste zuerst.

  1. 1.0.0Neueste

    Erste Version. Senden Sie eine kurze Lead-Nachricht an einen API-Endpunkt und erhalten Sie CRM-fertiges JSON: die genannten Kontaktdaten, die Absicht, einen Lead-Score von 0 bis 100 mit Priorität und verständlichen Gründen, eine kurze Zusammenfassung und einen Antwortvorschlag. Enthalten sind klare Fehlerantworten, Request-IDs, Logs ohne personenbezogene Daten und eine vollständige Testsuite, die ohne Aufruf der Claude API läuft.

Source Code Licence

Was Sie damit tun dürfen

What you may and may not do with the source code you buy.

Vollständige Lizenz lesen
  1. What this licence covers

This licence governs every file included in a product you buy from Dewiride Store: source code, configuration, database scripts, sample data, documentation and any other file in the download. It takes effect when your payment is confirmed and applies to every release of that product that reaches your library. Files that reach your library through an annual updates membership are governed in exactly the same way.

It forms part of the Terms of Sale and Use. Where a product page states different or additional licence terms for that product, those terms prevail for that product. The membership page may likewise state different or additional licence terms for the files a membership carries, and those terms then prevail for those files.

  1. The licence we grant you

We grant you a perpetual, worldwide, non-exclusive, non-transferable licence to use, reproduce, adapt, translate and modify the files, and to include the result in your own work, on the conditions set out below.

Perpetual means it does not expire. Worldwide means it is not limited to any country. Non-exclusive means we license the same product to other customers. Non-transferable means you cannot pass it on to someone else.

The licence is granted to you — either you personally, or the organisation you identified when buying. Everyone working within that organisation may use the files for that organisation’s projects. Nobody outside it may.

  1. What you may do
  • Use and change the files in your own projects, commercial or otherwise, with no limit on the number of projects.
  • Build a product or a service on them and charge your own customers for it.
  • Deploy the result for a client, as part of work you are doing for that client.
  • Distribute the result in compiled, deployed or otherwise non-source form.
  • Keep as many back-up copies as you reasonably need.
  • Study, observe and test how the code works, and obtain the information you need to make it work with your own software.

The last two are yours by law under sections 52(1)(aa) to (ac) of the Indian Copyright Act, 1957, and nothing in this licence is intended to take them away.

  1. What you may not do
  • Resell, sublicense, redistribute or publish the files themselves, in whole or in substantial part, in source form.
  • Include them in a template, starter kit, course, tutorial repository or component library that you sell or give away, where the code is the thing being supplied.
  • Share your account, your download links or your invoices with anyone outside your organisation.
  • Publish the files in a public repository, or in any other place where they can be obtained without buying them.
  • Remove or obscure the copyright and attribution notices in the source files.
  • Use the files to build something whose main purpose is to compete with Dewiride Store as a supplier of the same code.

The distinction that matters is simple: you may sell what you build with the code; you may not sell the code.

  1. Third-party components

Our products depend on open-source libraries, frameworks and services that we did not write. Those remain under their own licences, which we do not and cannot change. Where a product includes or requires such a component, its licence is named in the product’s documentation, and complying with it is your responsibility.

  1. Releases

Every release of a product you own is covered by this same licence and appears in your library at no extra cost. A release you have already downloaded remains licensed to you even if we later stop publishing the product. A release that reached your library through an annual updates membership is licensed to you on these same terms, and stays licensed after the period that carried it has ended.

  1. Ownership

We keep ownership of the files and of the copyright in them. You own whatever you create with them: your changes, your additions and the product you build are yours.

  1. If this licence ends

This licence ends if you materially breach it and do not put the breach right within thirty days of us asking you to in writing. It also ends if your payment is reversed or refunded, because the purchase it depends on no longer stands. Where a membership period is refunded or reversed, the licence ends for the releases that period carried and for nothing else: anything you bought separately, or that another period carried, is unaffected.

If it ends, you must stop using the files and delete the copies you hold. Work you had already delivered to a client before that point may continue in use, so that ending this licence never breaks something your own customer relies on.

  1. No warranty beyond the description

The warranties and limits in section 19 and section 20 of the Terms of Sale and Use apply to this licence as well.

  1. Governing law

This licence is governed by the law of India, and section 24 of the Terms of Sale and Use applies to any dispute about it. If a translation and the English version differ in meaning, the English version governs.