Tier new HubSpot companies with Ahrefs SEO authority
When a new company lands in HubSpot, pull its Ahrefs SEO authority, organic traffic, and best-ranking pages, then tier the lead before your first sales touch.
Build me an agent workflow that enriches every new HubSpot company with Ahrefs SEO authority signals so my sales team can tier the lead before first outreach.
Trigger: a HubSpot webhook for company.creation. When the webhook fires, the agent receives the new company event.
Step 1. Get the company's website domain. If the webhook payload carries the domain directly, use it. If it only carries a HubSpot company ID, call HubSpot Search Companies (or fetch the company by ID) to read the website property. Strip the scheme and any www. prefix down to a bare apex domain (e.g. example.com). If there is no usable website, log it and stop. Do not enrich companies without a domain.
Step 2. Call Ahrefs Get Domain Rating for the domain and capture the current Domain Rating value.
Step 3. Call Ahrefs Get Metrics for the same domain to get monthly organic traffic and organic traffic value in USD. Use mode=domain so subdomains are included.
Step 4. Call Ahrefs List Top Pages for the domain, limit to the top 5 by organic traffic, and read the page URL, top keyword, and traffic for each.
Step 5. The agent now synthesizes two things from the data:
• A one or two sentence SEO talking point a rep can use as an opener. Example: "Ranks #1 for 'enterprise payroll software' with 12k monthly visits. Lean into payroll efficiency in outreach." Make it concrete and reference the actual winning keyword or topic cluster, not generic praise.
• A tier label, one of Strategic, Mid, or SMB. Default thresholds: Strategic = Domain Rating >= 60 OR monthly organic traffic >= 100,000. Mid = Domain Rating 30 to 59 OR monthly organic traffic 10,000 to 99,999. SMB = everything else. Use the higher tier if the two signals disagree.
Step 6. Call HubSpot Update Company by company ID and write these five custom properties (the user is responsible for creating them in advance): ahrefs_domain_rating (number), ahrefs_monthly_traffic (number), ahrefs_traffic_value (number), ahrefs_talking_point (multi-line text), seo_tier (single-select with values Strategic, Mid, SMB).
Error handling: if Ahrefs returns no data for the domain (very new site, parked, blocked), still write seo_tier = SMB and a talking point that says no organic footprint detected. Skip silently on missing-website cases.
Keep it tight: one HubSpot read (only if the webhook lacks the domain), three Ahrefs calls, one HubSpot write. No Slack, no email, the CRM is the surface.
Additional information
What does this prompt do?
- Watches HubSpot for newly created companies and grabs the website domain off the record.
- Pulls the Ahrefs Domain Rating, monthly organic traffic, and estimated traffic value for that domain.
- Reads the company's top-ranking pages and writes a short talking point your reps can lead with, like which keyword they win and what topic to anchor outreach on.
- Saves a Strategic, Mid, or SMB tier label back onto the HubSpot company so sales knows exactly which queue the lead belongs in.
What do I need to use this?
- A HubSpot account with permission to read and update company records.
- An Ahrefs subscription that can create API keys (paid plan).
- Five custom properties on the HubSpot Company object, created in advance: Ahrefs Domain Rating, Monthly Organic Traffic, Organic Traffic Value, SEO Talking Point, and SEO Tier.
- About five minutes to connect both accounts the first time.
How can I customize it?
- Change the tier thresholds, for example move Strategic from Domain Rating 60 up to 70 if your team is overwhelmed.
- Swap the talking-point style: pick a longer paragraph for AEs, or a one-liner for SDR list views.
- Skip companies that match a deny-list of domains, like personal email providers or generic free-tool sites.
Frequently asked questions
What happens if the new company has no website on the record?
Do I have to create the custom HubSpot properties myself?
Will this fire on companies that already existed in HubSpot?
How long does each enrichment take?
Does it work for non-English domains?
Stop tiering new accounts by gut feel.
Connect HubSpot and Ahrefs once, and every new company shows up pre-scored with the SEO context your reps need to pick the right opener.