> For the complete documentation index, see [llms.txt](https://docs.zero.inc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zero.inc/features/ai-properties/ai-properties-examples/extract-details-from-attached-file.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
