{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":23008,"path":"intelligent-experiences/cm-contract-repository-ai-agent.md","title":"Contract repository AI agent","bundle":null,"doc_type":null,"release":"australia","body":"\n# Contract repository AI agent\n\nThis AI agent retrieves contract repository details for a specified record, including vendor information, contract model, and document attachment IDs. It also calculates the average lead time for similar contracts when vendor, supplier, or account data exists.\n\n## Workflow\n\nThe agent retrieves contract repository details and starts metadata and obligation extraction for a specified record. It also initiates asynchronous extraction of key metadata from contract documents, such as effective dates, renewal and termination notice periods, and auto-renewal clauses.\n\n1.  Retrieve the contract repository details for the specified record, including vendor, supplier, or account information, the contract model, and whether the obligations plugin is active.\n2.  Start metadata extraction for the contract document, such as effective date, end date, and renewal and termination notice periods, without waiting for it to finish, and continue even if it encounters an error.\n3.  If the obligations plugin is active, also start extraction of contractual obligations from the document without waiting for it to finish, and continue even if it encounters an error.\n4.  If vendor, supplier, or account information is available, calculate the average lead time for similar contracts.\n5.  Complete these steps automatically without asking the user for any input.\n\n<table><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nAllow third party to access this AI agent\n\n</td><td>\n\nWhen enabled, third-party AI agents can use this agent. This value is off \\(false\\) by default. This setting is defined in the AI Agent configs \\[sn\\_aia\\_agent\\_config\\] table on the External discoverable field.\n\n</td></tr><tr><td>\n\nAllow AI specialists to access this AI agent\n\n</td><td>\n\nWhen enabled, AI specialists can use this agent. This value is off \\(false\\) by default. When set to true, more configuration options for tools become available so that an AI specialist can map inputs and response templates to tool outputs. This setting is defined in the AI Agent configs \\[sn\\_aia\\_agent\\_config\\] table on the Specialist enabled field.\n\n</td></tr><tr><td>\n\nManage long-term memory\n\n</td><td>\n\nWhen enabled, all previous user interactions are used as context for the LLM. This value is off \\(false\\) by default. This setting is defined by the **sn\\_aia.ltm.enable\\_long\\_term\\_memory** system property. For more information, see [ServiceNow Otto AI agents reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/na-aia-reference.md).\n\n</td></tr><tr><td>\n\nTools\n\n</td><td>\n\n-   **Scripts**\n\nCalculate average lead time of similar contracts\n\nGet Contract repository details\n\nInitiate metadata extraction\n\nInitiate Obigation Extraction\n\n\n</td></tr><tr><td>\n\nAllowed user roles The specific user roles that can access this AI agent.\n\n</td><td>\n\nsn\\_cm\\_gen\\_ai.ai\\_contract\\_fulfiller\n\n</td></tr><tr><td>\n\nData access roles The specific user identity roles that determine which data the AI agent can access and what actions it can take.\n\n</td><td>\n\nsn\\_cm\\_gen\\_ai.ai\\_contract\\_fulfiller, sn\\_lg\\_ops.request\\_fulfiller, sn\\_cm\\_core.contract\\_fulfiller, contract\\_manager, sn\\_cm\\_obligation.obligation\\_fulfiller\n\n</td></tr><tr><td>\n\nTriggers\n\n</td><td>\n\nActivate the following business rules to trigger the agent.-   Agentic AI - Set reminders for contract\n-   Agentic AI Set reminders for Econtract\n\n business rule to trigger the agent.\n\n</td></tr><tr><td>\n\nChannels\n\n</td><td>\n\nEnable the AI agent for the ServiceNow Otto panel.\n\n</td></tr><tr><td>\n\nUsed in agentic workflows\n\n</td><td>\n\nRenewal notice period remainder\n\n</td></tr></tbody>\n</table>For more information, see [Contract Management Pro](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/employee-service-management/cncore-cmpro-landing-page.md).\n\n**Parent Topic:**[Contract Management Pro AI agents](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/cm-ai-agents-overview.md)\n\n"}}