Sync ICP website visitors from Leadfeeder to HubSpot daily

By General Input

Every morning at 8am, push yesterday's ICP-fit website visitors into HubSpot so your reps see warm accounts in CRM the same day they show intent.

Integrations

  • Leadfeeder
  • HubSpot

Type

Agentic Task

Categories

  • Sales
  • Operations

Every weekday at 8am, sync yesterday's ICP-fit website visitors from Leadfeeder into HubSpot so sales sees them in CRM the same day they showed intent. Build this as an agent-based workflow because the dedupe-versus-update decision and the note synthesis from visit history need judgement.

Trigger: cron at 8am on weekdays.

Steps the agent should run each fire:

1. Call Leadfeeder's List Custom Feeds to find the feed named "ICP Target Accounts" (configurable) and grab its id.

2. Call Leadfeeder's List Leads against that custom_feed_id for yesterday's date range (start_date and end_date both set to yesterday).

3. For each lead, skip it if the company's domain matches our own domain or any domain in a configurable excluded-domains list (competitors, partners, ourselves).

4. For each remaining lead, call Leadfeeder's List Visits For Lead to pull yesterday's session-level visits so the agent can synthesize a short summary (visit count, page count, top pages by views).

5. Call HubSpot's Search Companies with a filter on the domain property equal to the lead's domain. If zero results, call Create Company with name, domain, industry, country, and a custom property (default name: leadfeeder_visit_summary) holding the synthesized summary plus a last_website_visit property set to yesterday. If one or more results, take the first match and call Update Company on that id to refresh last_website_visit to yesterday, then call Create Note associated with that company id containing the new visit summary. Never create a duplicate company.

6. Resolve the company owner: read the hubspot_owner_id from the company record. If set, the task should be assigned to that owner; otherwise the task is created unassigned.

7. Call HubSpot's Create Task associated with the company, with subject "Warm visitor: <Company name> hit <top page path>", due date set to today, status NOT_STARTED, priority MEDIUM, and hubspot_owner_id from step 6 when present.

8. At the end of the run, log a one-line summary: leads pulled, new companies created, existing companies updated, tasks created, and how many leads were skipped (split by reason: excluded domain vs. no usable domain).

Configuration to expose at the top of the workflow:

- Leadfeeder feed name (default: "ICP Target Accounts")

- Excluded domains list (our own domain plus known competitor domains)

- HubSpot custom property name for the visit summary (default: leadfeeder_visit_summary)

- HubSpot property name for last visit date (default: last_website_visit)

- Task subject template and default priority

Use the Leadfeeder integration (API token) and the HubSpot integration (OAuth).

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