Turn new HubSpot companies into sales-ready leads with website contacts

By General Input

When a company is created in HubSpot, pull real emails, phone, and LinkedIn from its website, add the best contacts, and brief sales in Slack.

Integrations

  • HubSpot
  • Website Contacts Scraper
  • Slack

Type

Agentic Task

Categories

  • Sales

Build me an agent workflow that fires whenever a new company is created in HubSpot and turns that bare company record into a sales-ready lead with real contacts attached. Trigger the workflow off a HubSpot webhook for the company.creation event.

When the workflow fires, the agent receives the new HubSpot company id. It should:

1. Read the company from HubSpot and grab its domain. If the domain is missing or empty, use the Website Contacts Scraper "Get Website URL by Keyword" operation with the company name to resolve the official domain. If neither the stored domain nor the name resolves to a domain, post a short note to the configured Slack channel saying we couldn't find a website for this company, and stop.

2. Call Website Contacts Scraper "Scrape Contacts" on that domain to pull emails, phone numbers, and social profile links from the company's website.

3. Reason about the results. Classify each email as either generic (anything that starts with info@, sales@, contact@, hello@, support@, admin@, press@, careers@, jobs@, marketing@, billing@, legal@, hr@, and similar role-mailbox patterns) or role-specific (a real human name in the local part). Pick the best one or two emails to actually reach out to, preferring role-specific over generic. If only generic emails exist, pick the single most likely decision-maker mailbox (sales@ over info@ over generic catch-alls) and flag it as generic in the Slack brief.

4. Write the company's main phone number and LinkedIn URL back to the HubSpot company record using HubSpot "Update Company". By default, only fill these fields when they are blank on the record. Do not overwrite values that already exist.

5. Use HubSpot "Batch Upsert Contacts" to create or update the one or two best contacts you picked, matched by email. For each contact, set the email and, when the local part looks like a person's name (e.g. jane.doe@acme.com), set first and last name. Associate each contact with the new HubSpot company so the SDR sees them attached to the record.

6. Post a Slack message to the configured sales channel using Slack "Send a Message". Summarize the company name and domain, list the two best contact emails (flag any generic ones), the main phone, the LinkedIn URL, and a single one-sentence outreach hook the rep can paste into their first message. Keep the whole brief to one screen of Slack.

Agent mode is the right choice here because the email-quality judgment and the outreach hook need reasoning, not a fixed mapping. Make the Slack channel id and the "fill blanks only vs always overwrite" behavior configurable inputs on the workflow so the user can tune them without editing the agent's instructions.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentWin back LiveChat visitors whose chats went unansweredTurn Mailjet email clicks into ranked HubSpot follow-upsiMessage campaign console with pre-flight checks and delivery boardChat quality review board for LiveChat support leadsA 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 reveals