MARKET RESEARCH
Allocate Sales Territory TAM from BigQuery Geo Data to HubSpot
When triggered by a webhook, queries BigQuery public ZIP-level business data to compute TAM per sales territory.
How it runs
The automated pipeline, trigger to output.
- TriggerWebhook fires with territory-to-ZIP mappingHTTP webhook
- ActionQuery ZIP-level business data in BigQueryBigQuery
- LogicAggregate ZIPs into territories; flag uncovered ones
- ActionConvert counts to TAM dollars and balance notes via OpenAIOpenAI
- OutputWrite territory TAM onto HubSpot company recordsHubSpot
What it does
Gives RevOps a data-backed way to balance territories. On a webhook call (e.g. from your territory-planning tool), it queries BigQuery public ZIP Business Patterns data, rolls establishment counts and revenue proxies up to your defined territory boundaries, computes TAM per territory, and pushes the per-territory dollar value onto the relevant HubSpot records.
When to use it
During territory design or rebalancing, when you need each rep's patch sized consistently from the same public-data source instead of hand-built spreadsheets.
How it works
- 1An incoming webhook triggers the run with the current territory-to-ZIP mapping in the payload.
- 2A BigQuery action queries ZIP-level business counts and size bands for all ZIPs in scope.
- 3A logic step aggregates ZIP rows into territories using the mapping and flags territories with no coverage.
- 4An OpenAI action converts aggregated counts into TAM dollars and notes any over- or under-loaded territories.
- 5An output step writes the territory TAM values to the corresponding HubSpot company records.
Set it up
What you configure once, before turning it on.
- 1Connect BigQueryDatasets, queries, schemas.
- 2Connect OpenAIModels, embeddings, files.
- 3Connect HubSpotCRM, deals, marketing, support.
- 4Connect HTTP webhookTrigger any URL on agent actions.
- 5Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 6Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 7Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Market Research workflows
Weekly Materiality-Ranked Filing Digest by Email
Each Friday, aggregates the week's regulatory filings across the coverage universe, ranks them by materiality.
Earnings Keyword-Spike Alert into Linear
Scans new earnings-call transcripts for a set of strategic keywords you care about, and when a competitor's mention frequency spikes above its historical baseline.
Discover Adjacent Segments from BigQuery and Rank Expansion Bets
On a schedule, scans BigQuery public industry data for fast-growing NAICS sectors adjacent to your core segments, scores them as expansion bets.
Blend BigQuery TAM with Live Competitor Signals into a Notion Brief
On demand, sizes a chosen segment from BigQuery public data, gathers current competitor signals via Brave Search, and synthesizes a one-page market brief into Notion.
Cross-Competitor Theme-Shift Analyst
An agent that gathers the latest earnings transcripts across all tracked competitors, compares this quarter's themes against the prior quarter stored in Coda.
New Earnings-Call Theme Digest to Slack
When a tracked competitor posts a new earnings-call transcript, summarizes the top three strategic themes and any guidance changes.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
