मुख्य सामग्री पर जाएँ

AI Lead Qualifier

Claude की मदद से हर आने वाली पूछताछ को स्कोर किए गए, CRM-तैयार JSON में बदलें।

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

स्क्रीनशॉट

7 में से स्क्रीनशॉट 1: शीर्षक कार्ड: "AI Lead Qualifier — Python सोर्स कोड", साथ में एक कोड विंडो जिसमें एक योग्य लीड JSON में दिखती है: इरादा sales_inquiry, कंपनी Greenleaf Organics, बजट लगभग $15,000, स्कोर 95, प्राथमिकता high और स्कोर के कारण।

शीर्षक कार्ड: "AI Lead Qualifier — Python सोर्स कोड", साथ में एक कोड विंडो जिसमें एक योग्य लीड JSON में दिखती है: इरादा sales_inquiry, कंपनी Greenleaf Organics, बजट लगभग $15,000, स्कोर 95, प्राथमिकता high और स्कोर के कारण।

एक बार का मूल्य

  • ₹1,499+ GST, चेकआउट पर
  • $29
  • भुगतान की पुष्टि होते ही इसे अपनी लाइब्रेरी से डाउनलोड करें।
  • इस प्रोजेक्ट का हर बाद वाला रिलीज़ बिना अतिरिक्त शुल्क के शामिल है।
नवीनतम रिलीज़
1.0.0 · 14 अक्टू॰ 2026
लाइसेंस
Source Code Licence

अवलोकन

Python और FastAPI पर बनी एक हल्की सेवा, जो छोटी बिक्री पूछताछ को Claude API को भेजती है और संरचित JSON लौटाती है: मुख्य विवरण, इरादा, प्राथमिकता और कारणों के साथ 0 से 100 तक का लीड स्कोर, एक छोटा सारांश और सुझाया गया उत्तर, जो सीधे आपके CRM में भेजा जा सकता है।

हाथ से पूछताछ छाँटना धीमा है, और जब कोई स्पैम पढ़ रहा होता है तब अच्छी लीड इंतज़ार करती रहती हैं। AI Lead Qualifier यह पहला काम आपके लिए करता है। एक पूछताछ को एक ही API endpoint पर भेजें और कुछ ही सेकंड में साफ़, संरचित JSON पाएँ।

Claude भेजने वाले का नाम, ईमेल, फ़ोन, कंपनी, पद, स्थान, बजट, समय-सीमा और आवश्यकताएँ ठीक वैसे ही निकालता है जैसे लिखी गई हैं। कुछ भी अनुमान से नहीं भरा जाता: जो संदेश में नहीं है, वह null के रूप में लौटता है। यह इरादे को बिक्री पूछताछ, सपोर्ट अनुरोध, साझेदारी, नौकरी आवेदन, विक्रेता प्रस्ताव, स्पैम या अन्य में वर्गीकृत करता है, एक-दो वाक्यों का सारांश लिखता है, और आपके व्यवसाय के नाम से हस्ताक्षरित एक उत्तर तैयार करता है, जिसे भेजने से पहले कोई व्यक्ति जाँचता है।

स्कोर मॉडल नहीं, बल्कि साधारण Python गणना करता है। एक पारदर्शी स्कोरकार्ड Claude द्वारा पहचाने गए संकेतों (बजट, तात्कालिकता, निर्णय लेने का अधिकार, स्पष्ट ज़रूरत, मीटिंग का अनुरोध) को 0 से 100 के स्कोर, high, medium या low प्राथमिकता और "+20 Budget mentioned" जैसे कारणों की सूची में बदलता है। स्कोर एकसमान, समझाने योग्य और आसानी से बदले जा सकने वाले हैं, और कोई भी संदेश बातों से high प्राथमिकता नहीं पा सकता। पूछताछ को हमेशा डेटा माना जाता है, निर्देश नहीं, इसलिए प्रॉम्प्ट-इंजेक्शन के प्रयासों को माना नहीं जाता, बल्कि वर्गीकृत किया जाता है।

यह प्रोडक्शन के लिए बना है। Claude के structured outputs के कारण परिणाम हमेशा स्कीमा से मेल खाते हैं। Claude API की हर समस्या request ID के साथ एक स्पष्ट HTTP स्टेटस (422, 502, 503 या 504) बन जाती है, और लॉग में इरादा, स्कोर, टोकन और समय दर्ज होते हैं, बिना किसी ग्राहक डेटा के। लागत कम रखने के लिए सिस्टम प्रॉम्प्ट कैश किया जाता है, और आप एक ही सेटिंग्स फ़ाइल में Claude मॉडल और effort स्तर बदल सकते हैं।

कोड छोटा, टाइप किया हुआ और पूरी तरह परखा हुआ है। 39 pytest टेस्ट एक नकली analyzer के साथ एक सेकंड से कम में चलते हैं, इसलिए वे कभी Claude को कॉल नहीं करते और कोई खर्च नहीं होता। अपने व्यवसाय के अनुसार प्रॉम्प्ट, निकाले जाने वाले फ़ील्ड या स्कोरकार्ड को साफ़ चिह्नित फ़ाइलों में बदलें।

जानना चाहते हैं कि इसे कैसे बनाया गया? मुफ़्त, चरण-दर-चरण ट्यूटोरियल सीरीज़ "Build an AI Lead Qualification Agent with Claude and Python" (अंग्रेज़ी में) इस प्रोजेक्ट की हर फ़ाइल समझाती है: https://devblogs.dewiride.com/series/claude-api/ai-lead-qualification-agent-claude-python (नए टैब में खुलता है)

मुफ़्त ट्यूटोरियल सीरीज़

Build an AI Lead Qualification Agent with Claude and Python

बनाते हुए सीखना पसंद है? हमारे ब्लॉग पर यह मुफ़्त, कदम-दर-कदम गाइड दिखाती है कि यह प्रोजेक्ट कैसे बनता है।

सीरीज़ पढ़ें (नए टैब में खुलता है)

आपको क्या मिलता है

संग्रह में जो कुछ है, एक नज़र में।

  • संस्करण 1.0.0 का पूरा Python सोर्स कोड
  • एक endpoint, POST /api/v1/leads/qualify, और एक health check वाला FastAPI ऐप
  • Pydantic मॉडलों पर आधारित Claude structured outputs
  • Python में गणना किया गया पारदर्शी 0–100 स्कोरकार्ड, प्राथमिकता और कारणों के साथ
  • हर प्रतिक्रिया में request ID के साथ स्पष्ट त्रुटि प्रतिक्रियाएँ (422, 502, 503, 504)
  • टोकन उपयोग वाले सुरक्षित लॉग, बिना ग्राहक डेटा के
  • कैश किया गया सिस्टम प्रॉम्प्ट, जिसे आप एक Markdown फ़ाइल में बदल सकते हैं
  • 39 ऑफ़लाइन pytest टेस्ट, जो कभी Claude API को कॉल नहीं करते
  • uv.lock, जिसमें परखे गए पैकेजों के सटीक संस्करण हैं
  • सेटअप, कॉन्फ़िगरेशन, API संदर्भ और कस्टमाइज़ेशन गाइड वाला README
  • हर सेटिंग के लिए .env.example टेम्पलेट

किससे बना है

जिन सटीक रनटाइम और संस्करणों पर इसे बनाया और परखा गया।

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

संग्रह में क्या है

खोलने पर आपको मिलने वाली फ़ाइलों की संरचना।

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

आपसे क्या चाहिए

जिन खातों और सेवाओं की इसे ज़रूरत है, ताकि कुछ भी अचानक सामने न आए।

  • uv, जो आपके लिए Python 3.14 इंस्टॉल करता है
  • क्रेडिट वाले Anthropic खाते पर Claude API कुंजी (API उपयोग का बिल Anthropic देता है)
  • टर्मिनल में कमांड चलाने की बुनियादी जानकारी
  • macOS, Windows या Linux

संस्करण

अब तक के सभी संस्करण, नए से पुराने क्रम में।

  1. 1.0.0नवीनतम

    पहला रिलीज़। किसी लीड का छोटा संदेश एक API endpoint पर भेजें और CRM-तैयार JSON पाएँ: उसमें बताए गए संपर्क विवरण, इरादा, सरल भाषा के कारणों और प्राथमिकता के साथ 0–100 लीड स्कोर, एक छोटा सारांश और सुझाया गया उत्तर। इसमें स्पष्ट त्रुटि प्रतिक्रियाएँ, request ID, बिना व्यक्तिगत डेटा वाले लॉग और Claude API को कॉल किए बिना चलने वाला पूरा टेस्ट सूट शामिल है।

Source Code Licence

आप इसका क्या कर सकते हैं

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

पूरा लाइसेंस पढ़ें
  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.