# Extract Details from Attached File

## **Use case**

Extract contract signee name, signed date and contract value from an attached contract file

<details>

<summary><strong>Prompt</strong></summary>

Search the attached files for SaaS contracts. Identify the document containing the signed SaaS contract and extract the following information:

1. **Contract Value**: The annual payment amount specified in the contract (e.g., ‘$10,000 annually’).
2. **Signed Date**: The date when the contract was signed.
3. **Signee Name**: The name of the person who signed the contract.

**Important requirements:**

1. **Search Scope:** Analyze only attached documents saved to the Company record. Ignore unrelated documents or general notes.
2. **Specific Information:** Focus on the payment or contract value section of the contract. Provide the amount and currency as specified.
3. **Concise Output Format:** Provide the results in the following format:

Contract Value: \[Value]

Signed Date: \[Date]

Signee Name: \[Name]

4. **Fallback for Missing Data:** If the contract value or any other field is not found, explicitly state: ‘No \[field] found in the contract.

</details>

<figure><img src="/files/Clu68sPM1uwBPZMs4iI8" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/u9QvV236vVNDkxUCKF9M" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/qlRXzzvueIdiDlYusz4N" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zero.inc/features/ai-properties/ai-properties-examples/extract-details-from-attached-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
