Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Agentforce and Einstein Generative AI
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Revenue | Query Contract Document

          Revenue | Query Contract Document

          Finds and retrieves relevant information from a contract document based on the user's question. Answers questions related to contract documents, including terms, obligations, and clauses.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions with the Agentforce for Sales, Agentforce for Service, or Agentforce for Industries add-on, and Salesforce Foundations.
          User Permissions Needed
          To run this action:

          Data Cloud Admin

          AND

          CLM Admin User

          AND

          Contracts AI User

          See Common User Access for Standard Agent Actions.

          Action Details

          API Name QueryContractDocument
          Reference Action Type Prompt Template
          Reference Action clm_ai__AnswerWithContractDocument
          Does this action execute one or more prompt templates? Yes

          Query Contract Document and Prompt Template

          The Query Contract Document agent action uses Contract Q&A prompt template to answer questions about contract document content. The action uses the contract document currently in focus to process and return relevant information.

          The action passes two required, non-editable inputs to the chosen template:

          • Query – the user’s question.
          • Contract ID – the ID of the contract record to analyze.
          • Chunk Limit - the limit of the maximum number of chunks to be retrieved based on user query

          Customization options: You can modify your prompt template instructions to create a new custom version and activate it to customize the template. See Customize Prompt Template for Contract Search.

          Chain Actions Together

          You can combine Query Contract Document action with Draft or Revise Email action to streamline how users extract contract insights and communicate them. For instance, an AI agent can help a user locate terms and immediately turn that into an email for internal or external stakeholders. Users can either include both actions in a single instruction or run them in sequence.

          Single Request:

          I need to search and obtain contract records for Ursa Major Solar. They deal with the supply of paper packaging materials and are based in New Delhi, India. They're facing issues due to a paper shortage from their supplier, Cloud Kicks in China. Can you fetch the relevant contracts?

          Multiple Requests:

          Rep: What exactly does the delivery of paper packaging materials entail? Are there specifications or quality standards to adhere to for delivery?

          Agent: Scope of Services: Cloud Kicks is obligated to deliver paper packaging materials as per the terms of the agreement. Specific quality standards or material details are not mentioned, so these might need further clarification outside the contract. Delivery Timeline: Deliveries must be completed within three (3) days from the date of the agreement, subject to the conditions stated in the contract.

          Rep: What is the payment structure and method listed in the document -

          Agent: The total price for the delivery services is $1 million. Ursa Major Solar must make payment within thirty (30) days of receiving the invoice.

          Rep: What if Cloud Kicks fails to deliver in time and what is the mitigation for that?

          Agent: Force Majeure Impact: Both parties are excused from obligations if events beyond their control, such as severe weather, terrorism, or acts of God, prevent performance. The affected party must notify the other party promptly and provide an estimate of the delay's duration. Mitigating Delays: If a delay occurs due to force majeure, Cloud Kicks must take all reasonable measures to minimize the impact on delivery.

          Rep: What happens if Ursa Major Solar decides to file a litigation in case of any disputes due to failure of delivery?

          Agent: The agreement is governed by the laws of Texas, USA, which may influence interpretation and enforcement in legal disputes.

          Rep: Can you please compile and send all the details that we discussed above and send it to the legal attorney assigned for this account?

          Agent: Sure, let me show you the preview and then we can send it.

          Guidelines and Considerations

          Before using this action, make sure you’ve completed the Contract Search setup and understand any constraints. See Configure Contract Search and Contract Search Limitations.

           
          Loading
          Salesforce Help | Article