# Find Contacts' Phone Numbers from Website

## **Use case**

Find phone numbers of CRM contacts on their company website

<details>

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

Goal → return the **direct mobile number** for <mark style="color:red;background-color:orange;">**Contact**</mark>

If none is found, output exactly:

"No direct mobile phone found for <mark style="color:red;background-color:orange;">**Contact**</mark>"

**STEPS (follow in order)**

**1. Search the website**

a. **Derive domain** → take everything after “@” in <mark style="color:red;background-color:orange;">**Email**</mark> to derive the {domain}

Root URL = https\://{domain}

b. **Locate profile pages** → crawl or query for URLs containing

team, people, about, staff, leadership, partners, contact, vcard.

Limit crawl depth to 2 and max 3 pages.

c. **Match the person** → fuzzy-match <mark style="color:red;background-color:orange;">**Contact**</mark> (ignore case, middle initials).

If several matches, prefer one whose surrounding text:

• contains a loose match to <mark style="color:red;background-color:orange;">**Title**</mark>, **or**

• shows an email local-part that matches before “@”.

d. **Extract mobiles** → within ± 30 lines of the name, grab numbers that match the same mobile regex above; prioritise ones beginning 07 or +44 7

e. **Pick the closest** to the name

**2. Validate & Return**

• Return **only** the phone number string (no labels, no extra text).

• If nothing found after step 2e, output the fallback line verbatim.

</details>

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

<figure><img src="/files/iI3Rg3F5ttraFIJf2I2C" 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/find-contacts-phone-numbers-from-website.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.
