Tier new HubSpot companies with Ahrefs SEO authority

By General Input

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.

Integrations

  • HubSpot
  • Ahrefs

Type

Agentic Task

Categories

  • Sales

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.

Related prompts

Explore more prompts
Turn Mailjet email clicks into ranked HubSpot follow-upsiMessage campaign console with pre-flight checks and delivery boardA searchable RFP answer library your bid team drafts fromSee which target accounts just started advertising on LinkedInAccount health board that puts product usage next to your CRMLook up a customer's full chat history mid conversationLusha prospecting workbench with credit-safe revealsWhich companies your LinkedIn ads reach, matched to your CRMLead response desk with a running clock on every new leadApprove Lusha enrichment field by field before HubSpot saves it