analyze_contract
Upload a contract document to extract text, split clauses, score clause risk, and get a verdict. Replace an existing contract via contract_id or create a new one with company details.
Instructions
Upload a contract document and run PAKT's pipeline on it: text extraction (OCR for scans), clause splitting, the risk of every clause and the verdict. Give contract_id to replace an existing contract's document, or company, title, contract_number, start_date and our_role to create a new contract. Waits for the analysis - usually a minute or two - and returns the same overview as get_contract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | For a new contract: its title. | |
| company | No | For a new contract: its company, by name (it must exist in PAKT). | |
| our_role | No | The party we are, as the contract names it, e.g. İcarəçi or Sifarişçi. Risk is scored from this side. | |
| file_path | Yes | The contract document on this computer: PDF, PNG or JPEG, at most 20 MB. | |
| start_date | No | For a new contract: its start date, YYYY-MM-DD. | |
| contract_id | No | An existing contract whose document this replaces. | |
| wait_seconds | No | How long to wait for the analysis. | |
| contract_number | No | For a new contract: its number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||