Brief new HubSpot companies with country macro context

By General Input

When a new company is added to HubSpot, attach a short briefing on its country's market size, growth, and inflation so the account owner walks in informed.

Integrations

  • HubSpot
  • World Bank

Type

Agentic Task

Categories

  • Sales

Build me an agent workflow that runs every time a new company is created in HubSpot. The goal is to give the account owner instant country-level macro context before their first call.

Trigger: a HubSpot webhook fired on company creation (object type company, creation event).

When the webhook fires, the agent should:

1. Use HubSpot's Get Company to load the new company by ID. Pull the name and country properties at minimum.

2. If the country property is missing or empty, stop and do nothing. Do not create a note.

3. Use World Bank's List Countries to resolve the company's country value to a World Bank country ID. HubSpot's country property is free text and can arrive as a full name, an ISO alpha-2 code, or an ISO alpha-3 code, so be flexible. If the country cannot be resolved to a valid World Bank country, stop and do nothing.

4. Use World Bank's Get Indicator Data to pull the most recent values for a small set of indicators that frame a B2B sales conversation. Good defaults: GDP current US$ (NY.GDP.MKTP.CD), GDP per capita current US$ (NY.GDP.PCAP.CD), total population (SP.POP.TOTL), inflation consumer prices annual % (FP.CPI.TOTL.ZG), and GDP growth annual % (NY.GDP.MKTP.KD.ZG). Use mrnev=1 or filter out null years so you always work with the most recent non-empty value per indicator. Per the World Bank docs, JSON responses are a two-element array [meta, rows] and many years are null.

5. Pick the 4 or 5 indicators that best frame the market and write a 3 to 5 sentence plain-language briefing the account owner can read in 15 seconds. Cover market size, growth trajectory, currency or inflation backdrop, and flag anything notable (very high inflation, a recent contraction, an unusually small or large addressable market). Weave numbers into prose. Round sensibly, for example '$540B GDP' instead of '541,238,910,000'. Do not dump raw indicator tables.

6. Use HubSpot's Create Note to attach the briefing to the company, with an association back to the company so the note appears on the record. Use a note title like 'Country context: <country name>'.

Constraints: skip silently when the country is missing or unresolvable. The HubSpot note is the only output, do not post anywhere else. Keep the tone neutral and informational, not pitchy.

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