Find Contacts' Phone Numbers from Website

Use case

Find phone numbers of CRM contacts on their company website

Prompt

Goal → return the direct mobile number for Contact

If none is found, output exactly:

"No direct mobile phone found for Contact"

STEPS (follow in order)

1. Search the website

a. Derive domain → take everything after “@” in Email 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 Contact (ignore case, middle initials).

If several matches, prefer one whose surrounding text:

• contains a loose match to Title, 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.

Last updated