> **Source:** https://knowledge.leegality.com/deal-collaboration/Contracts/ai-smart-extraction > **Site:** Leegality Knowledge Base — https://knowledge.leegality.com > **About:** Leegality is a document execution platform covering eSigning, stamps, NeSL, workflows, and REST API integration. > **Navigation:** Every article on this site has a plain-text version at `.txt` (this format). To get an index of all articles with their `.txt` links, read: https://knowledge.leegality.com/llms.txt > **AI Guide:** For instructions on how to navigate this knowledge base as an AI agent, read: https://knowledge.leegality.com/ai-readable.txt --- # AI Smart Etraction AI Smart Extraction automatically detects and extracts key data points from your contracts using artificial intelligence. This feature reduces manual data entry and ensures all critical contract metadata is centralised in a searchable repository. ## How Smart Extraction Works Smart Extraction uses AI to analyse your contracts and extract variables such as deal value, effective date, tenure, renewal date, counterparty details, and any custom variables configured in your account. You can use Smart Extraction in two ways: | Method | When to Use | | :---- | :---- | | **During Upload** | Extract variables from new contracts as you upload them | | **From Repository** | Extract variables from contracts already uploaded to your repository | For Smart Extraction during upload, refer to the [Uploading Contracts](https://knowledge.leegality.com/deal-collaboration/Contracts/upload-contracts) page. --- ## Smart Extraction from Repository Extract variables from contracts already in your repository without re-uploading them. This is particularly useful when: - You have legacy contracts that need variable extraction - You create new global variables and need historical data populated - You want to extract additional variables not selected during upload ### Access Smart Extraction #### Single Contract 1. Go to **Contracts** from the left. 2. Click on a contract to open its **Contract Details** page. 3. Click the **Extract** button displayed on the page. #### Multiple Contracts (Bulk Extraction) 1. Go to **Contracts** from the left. 2. Select multiple contracts using the checkboxes. Make sure you select contracts in the **Executed** stage. 3. Click the **Smart Extraction** button. > **Info — Note** > > The **Smart Extraction** button is always visible, even if the contract has been extracted before. Clicking it will initiate a re-extraction. ### Select Variables for Extraction When you initiate Smart Extraction, a popup appears with variable selection options. 1. Review the variable chips under **All Variables**. 2. Click the variables you want the AI to extract. 3. Selected variables move to the **Selected Variables** section. 4. Click **Proceed** to start extraction. > **Info — Note** > > Core variables such as counterparty name, deal name, and document name are skipped during extraction from the repository since they already exist in the system. ### Review and Confirm Extracted Values After extraction completes, a toast message confirms that the extraction is done and ready for review. To review the AI-extracted values for accuracy: 1. Go to the **Contract Details** page for the processed contract. 2. Click **Review** to go to the **Review Extraction** page. This page allows you to validate the information and resolve flagged issues. 3. Edit any values that need correction manually. 4. Click **Confirm** next to each variable to verify it. 5. Click **Add Variables to Contract**. This moves the contract from the Pending section to the Add to Contracts Queue section. > **Tip** > > Click **Confirm All** to confirm all variables the AI has extracted at once. > **Warning — Important** > > Unconfirmed variables (those with the AI icon) do not appear in filters or search results. Confirm all extracted values to enable full filtering capabilities. Once you confirm a variable, it is stored as a permanent data point in your repository and the AI icon is removed. > > Always confirm previously extracted variables before running a new extraction. If you re-run Smart Extraction without confirming existing values, the new batch will replace all previously extracted but unconfirmed values — even if you select different variables in the new batch. To learn more about the detailed review process, refer to [Contracts Processing Hub](https://knowledge.leegality.com/deal-collaboration/Contracts/Contracts%20Processing%20Hub/contracts-processing-hub). ### Re-extract Variables You can re-extract variables from any contract at any time. This is useful when: - You need to extract additional variables not selected initially - New custom variables have been added to your account - You want to refresh extracted values from the source document To re-extract: 1. Go to the **Contracts** page. 2. Open the contract — a banner displays "AI-generated values detected!" indicating the document has been extracted before. 3. Click **Re-extract** from the banner to repeat extraction. 4. Alternatively, click **Review** to see the details of the last extraction. > **Info — Note** > > There is no restriction on the number of times you can perform re-extraction. > **Warning — Important** > > Before re-extracting, make sure all previously extracted variables are confirmed. Running a new extraction will replace any unconfirmed values from previous batches, even if the new batch targets different variables. Always review and confirm extracted values before initiating another round of extraction. ## Processing Status After initiating extraction, contracts go through the following states: | Status | Description | | :---- | :---- | | **Pending** | Contract is queued for AI analysis | | **Ready for Review** | Extraction complete — review and confirm extracted values | | **Completed** | All variables confirmed and available in filters | Monitor bulk extraction progress in the [Contracts Processing Hub](https://knowledge.leegality.com/deal-collaboration/Contracts/Contracts%20Processing%20Hub/contracts-processing-hub). ## Version History To view the history of extractions performed on a contract: 1. Go to the **Contract Details** page of the selected contract. 2. Click the **Clock** icon next to any variable to view its history. 3. A popup opens displaying: - All actions performed on that variable - Who made the change and what value was set - The original extracted value - An AI icon alongside variables that are not yet confirmed