> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# AI से केस ब्लूप्रिंट ड्राफ्ट API

> Didit के साथ प्रॉम्प्ट से बिना सेव किया गया केस ब्लूप्रिंट प्रस्ताव बनाएं, चरण और केस प्रकार देखें, फिर अपनी नीति सेटिंग्स अलग से सेव करें।

Didit का blueprint AI-draft API एक नीति विवरण को ऐसे समीक्षा-नीति प्रस्ताव में बदलता है जिसे अभी सहेजा नहीं गया है।
एप्लिकेशन के लिए `x-api-key` और `write:cases` अनुमति के साथ प्रमाणित करें।

## प्रस्ताव तैयार करें और उसकी समीक्षा करें

`prompt` के लिए एक ऐसा मान भेजें जो खाली न हो और अधिकतम 4000 अक्षरों का हो। रिस्पॉन्स `200` होता है और उसमें `draft` ऑब्जेक्ट होता है, सहेजा गया ब्लूप्रिंट या UUID नहीं।

```json theme={null}
{"prompt": "Draft an AML review policy with triage and evidence review stages."}
```

प्रस्ताव में `name`, `description`, `applies_to`, `content_config`, `require_resolution_note`, `assignment_method`, `max_active_cases` और `default_deadline_hours` शामिल हो सकते हैं। कुछ फ़ील्ड मौजूद न हों, इसलिए उपयोग से पहले रिस्पॉन्स की समीक्षा करें। शीर्ष-स्तरीय प्रस्ताव में असाइनी सूचियाँ, अनुमोदन सेटिंग्स और रूटिंग संदर्भ शामिल नहीं होते।

सेव करने से पहले असाइनी, टीमें, अनुमोदन और रूटिंग स्वयं चुनें। यदि किसी जेनरेट किए गए चरण में `worked_by` है, तो एप्लिकेशन में उसे सक्रिय समीक्षा टीम के UUID के रूप में सत्यापित किया जाता है। प्रस्ताव को स्वीकृत असाइनमेंट न मानें।

समीक्षा के बाद [केस ब्लूप्रिंट बनाएँ](https://docs.didit.me/hi/management-api/case-blueprints/create.md) का उपयोग करें, जिसमें आवश्यक `name` और खाली न होने वाला `assignee_pool` शामिल है। प्रस्ताव जेनरेट करने से न तो ड्राफ़्ट नीति सहेजी जाती है, न कोई नीति प्रकाशित होती है, और न ही मौजूदा केस बदलते हैं। [सहेजे गए ड्राफ़्ट और प्रकाशन का जीवनचक्र](https://docs.didit.me/hi/console/case-management/blueprints.md#नीति-बदलाव-सहेजना-और-प्रकाशित-करना) इससे अलग है।

## Errors

| Status | Meaning |
| - | - |
| `400` | प्रॉम्प्ट गायब, खाली या बहुत लंबा है |
| `401` / `403` | प्रमाणीकरण या अनुमति गायब है |
| `404` | एप्लिकेशन नहीं मिला |
| `503` | जनरेशन विफल रहा या ऐसा प्रस्ताव लौटाया जो सत्यापन में पास नहीं हुआ; बाद में पुनः प्रयास करें |

जनरेशन विफल होने पर यह लौटता है:

```json theme={null}
{"detail": "A blueprint draft could not be generated. Please try again."}
```

## संबंधित

* [केस ब्लूप्रिंट की सूची देखें](https://docs.didit.me/hi/management-api/case-blueprints/list.md)
* [ब्लूप्रिंट सेटिंग्स और समीक्षा नीतियाँ](https://docs.didit.me/hi/console/case-management/blueprints.md)


## OpenAPI

````yaml hi/openapi-25.json POST /v3/organization/{organization_id}/application/{application_id}/cases/blueprints/ai-draft/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: पहचान सत्यापन API। x-api-key हेडर के साथ प्रमाणीकृत करें।
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/organization/{organization_id}/application/{application_id}/cases/blueprints/ai-draft/:
    post:
      tags:
        - Case Blueprints
      summary: AI से केस का ड्राफ़्ट ब्लूप्रिंट बनाएँ
      description: >-
        बिना सहेजा गया blueprint प्रस्ताव जनरेट करें। write:cases की आवश्यकता
        है। यह एक draft object लौटाता है, blueprint UUID नहीं; कोई blueprint या
        सहेजा गया नीति draft नहीं बनता। प्रस्ताव की समीक्षा करें, assignees और
        किसी भी teams, approvals या routing को चुनें, फिर blueprint अलग से बनाएँ
        या अपडेट करें। अमान्य जनरेट की गई सामग्री या जनरेशन विफल होने पर 503
        लौटता है। देखें [blueprint AI
        drafts](/hi/management-api/case-blueprints/ai-draft)।
      operationId: draft_case_blueprint
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: संगठन UUID।
        - name: application_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: एप्लिकेशन UUID।
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CaseBlueprintAiDraftRequest'
            example:
              prompt: >-
                Draft an AML review policy with triage and evidence review
                stages.
      responses:
        '200':
          description: अनसेव्ड प्रस्ताव। कोई स्थिति नहीं बदली गई।
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CaseBlueprintAiDraftResponse'
              example:
                draft:
                  name: AML review
                  applies_to:
                    - AML
                  require_resolution_note: true
                  content_config:
                    stages:
                      items:
                        - key: triage
                          label: Triage
                          sla_hours: 24
        '400':
          description: prompt गायब है, खाली है या 4000 अक्षरों से लंबा है।
        '401':
          description: प्रमाणीकरण आवश्यक है।
        '403':
          description: write:cases अनुमति आवश्यक है।
        '404':
          description: एप्लिकेशन नहीं मिला।
        '503':
          description: जनरेशन विफल हुआ या अमान्य प्रस्ताव बना। बाद में पुनः प्रयास करें।
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    type: string
              example:
                detail: A blueprint draft could not be generated. Please try again.
      security:
        - ApiKeyAuth: []
      x-codeSamples: []
components:
  schemas:
    CaseBlueprintAiDraftRequest:
      type: object
      required:
        - prompt
      properties:
        prompt:
          type: string
          minLength: 1
          maxLength: 4000
          description: प्रस्तावित समीक्षा नीति का खाली न होने वाला विवरण।
          example: Draft an AML review policy with triage and evidence review stages.
    CaseBlueprintAiDraftResponse:
      type: object
      required:
        - draft
      properties:
        draft:
          $ref: '#/components/schemas/CaseBlueprintAiDraft'
    CaseBlueprintAiDraft:
      type: object
      additionalProperties: false
      description: >-
        अनसेव्ड, मान्य प्रस्ताव। फ़ील्ड वैकल्पिक हैं; परिणाम की समीक्षा करें और
        सेव करने से पहले असाइनी, टीम और रूटिंग चुनें।
      properties:
        name:
          type: string
          maxLength: 24
          description: अधिकतम 24 वर्ण, उदाहरण के लिए "AML investigation"।
        description:
          type: string
          nullable: true
        content_config:
          $ref: '#/components/schemas/CaseContentConfig'
        require_resolution_note:
          type: boolean
        assignment_method:
          type: string
          enum:
            - MANUAL
            - AUTOMATIC
        max_active_cases:
          type: integer
          nullable: true
          minimum: 1
          description: >-
            स्वचालित-मोड थ्रेशोल्ड: "इस ब्लूप्रिंट के N से कम केस असाइन किए गए
            हैं"।
        default_deadline_hours:
          type: integer
          nullable: true
          minimum: 1
          maximum: 8760
          description: >-
            नए खोले गए केस के लिए डिफ़ॉल्ट समय-सीमा। मौजूदा केस की समय-सीमा
            अपरिवर्तित रहती है।
        applies_to:
          $ref: '#/components/schemas/CaseBlueprintAppliesTo'
    CaseContentConfig:
      type: object
      description: >-
        केस कंटेंट के खंड और वैकल्पिक समीक्षा चरण। अज्ञात खंड या कुंजियाँ
        अस्वीकार की जाती हैं। केस खोले जाने पर स्वीकार किया गया नीति स्नैपशॉट
        केस में बना रहता है; बाद के ब्लूप्रिंट संपादन उसे नहीं बदलते।
      properties:
        checklist:
          type: object
          properties:
            enabled:
              type: boolean
            optional:
              type: boolean
              description: >-
                true होने पर, किसी केस को अधूरी चेकलिस्ट मदों के साथ भी हल किया
                जा सकता है।
            items:
              type: array
              items:
                type: object
                properties:
                  label:
                    type: string
                    maxLength: 255
                  order:
                    type: integer
        aml_control:
          type: object
          properties:
            enabled:
              type: boolean
            financial:
              type: boolean
            identity:
              type: boolean
        identity:
          type: object
          properties:
            enabled:
              type: boolean
            personal_information:
              type: boolean
            applicant_tags:
              type: boolean
            contact_information:
              type: boolean
            risk_overview:
              type: boolean
            poi_documents:
              type: boolean
            poa_documents:
              type: boolean
        verifications:
          type: object
          properties:
            enabled:
              type: boolean
            summary:
              type: boolean
        reporting:
          type: object
          properties:
            enabled:
              type: boolean
            fiu_reports:
              type: boolean
        financial:
          type: object
          properties:
            enabled:
              type: boolean
            payment_methods:
              type: boolean
            transactions:
              type: boolean
        stages:
          type: object
          additionalProperties: false
          description: >-
            क्रमबद्ध समीक्षा चरण। छोड़ने पर या खाली होने पर डिफ़ॉल्ट चरण Triage,
            Evidence review और Decision उपयोग होते हैं।
          properties:
            items:
              type: array
              maxItems: 10
              items:
                $ref: '#/components/schemas/CaseBlueprintStage'
              description: >-
                अधिकतम दस चरण, जिनकी कुंजियाँ अलग-अलग हों। केस को सुलझाना एक
                स्थिति परिवर्तन है, चरण नहीं।
    CaseBlueprintAppliesTo:
      type: array
      maxItems: 6
      items:
        type: string
        enum:
          - GENERAL
          - VERIFICATION_REVIEW
          - BUSINESS_REVIEW
          - AML
          - TRANSACTION_MONITORING
          - DUPLICATES
      description: >-
        इस ब्लूप्रिंट में वर्णित केस प्रकार। बनाते और अपडेट करते समय वैकल्पिक;
        नए ब्लूप्रिंट में डिफ़ॉल्ट रूप से खाली सूची होती है। स्वीकृत केस नीति
        स्नैपशॉट में सहेजा जाता है।
      example:
        - AML
    CaseBlueprintStage:
      type: object
      additionalProperties: false
      required:
        - label
      properties:
        key:
          type: string
          pattern: ^[a-z0-9_]{1,64}$
          description: >-
            नीति के भीतर अद्वितीय। छोड़ने पर लेबल से निकाला जाता है। हल की गई
            कुंजी आरक्षित है।
          example: triage
        label:
          type: string
          minLength: 1
          maxLength: 64
          description: खाली न होने वाला चरण लेबल।
          example: Triage
        sla_hours:
          type: integer
          minimum: 1
          maximum: 8760
          nullable: true
          description: चरण SLA घंटों में, या कोई SLA न होने पर null।
          example: 24
        worked_by:
          type: string
          format: uuid
          nullable: true
          description: >-
            वैकल्पिक समीक्षा-टीम UUID। गैर-null मान इसी एप्लिकेशन की सक्रिय टीम
            की पहचान करना चाहिए। कोई चरण टीम न हो तो छोड़ें या null दें।
          example: a0000000-0000-4000-8000-000000000001
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        आपकी एप्लिकेशन की API कुंजी, Business Console में Developers -> API keys
        से। प्राथमिक कुंजी के पास पूर्ण एक्सेस होता है। एक नामित कुंजी को स्कोप
        किया जा सकता है: प्रति संसाधन none, read या write, कुछ वर्कफ़्लो या
        स्वीकृत सत्रों तक सीमित, IP पतों की सूची तक सीमित, और समाप्ति तिथि तक
        सीमित। 401 का अर्थ है कि कुंजी गलत है, निरस्त कर दी गई है या उसकी
        समय-सीमा समाप्त हो गई है; 403 का अर्थ है कि कोई कुंजी नहीं भेजी गई थी,
        कुंजी के पास इस संसाधन या कार्रवाई का एक्सेस नहीं है, या अनुरोध उसकी IP
        सूची से बाहर के पते से आया था; सत्र रूट पर 404 का अर्थ है कि सत्र कुंजी
        के वर्कफ़्लो या स्थितियों से बाहर है। मीडिया एक्सेस के बिना एक कुंजी को
        छवि, वीडियो और PDF URL null के रूप में प्राप्त होते हैं, और सत्र write
        के बिना एक कुंजी को सत्र लिंक और token null के रूप में प्राप्त होते हैं।
        देखें https://docs.didit.me/console/api-keys।

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.