createContractPrompt
createContractPromptSaves a reusable AI prompt for extracting contract data from raw text, enabling versioned instructions for parsing fields like dates, products, and pricing.
Instructions
Save a reusable AI extraction prompt that drives contract data extraction (used by extractContractFromRaw). Use this to create / update / version the instructions the AI follows when parsing raw contract text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_name | Yes | Identifier for this prompt template (e.g., 'Standard Contract Extraction', 'SaaS Subscription v2'). Used to look up / version-track the prompt. | |
| prompt_text | Yes | AI instructions that tell the model how to extract contract fields from raw text (e.g., what to do with dates, products, pricing tiers, billing cadence). This is the system/user prompt body the extractor will run against. | |
| prompt_schema | No | Optional schema name pinning the expected output shape (e.g., 'billing_schema', 'subscription_schema'). Null lets the AI infer. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow |