Enrich new HubSpot contacts with their PubMed research profile

By General Input

When a new contact lands in HubSpot, Geni searches PubMed for their publications and attaches a research profile note to the record.

Integrations

  • HubSpot
  • PubMed / NCBI E-utilities

Type

Agentic Task

Categories

  • Sales
  • Operations

Build me an agent workflow that enriches every new HubSpot contact with their PubMed publication footprint. This is for a life sciences sales / MSL team selling to HCPs, scientists, and biotech employees.

Trigger: an incoming webhook from HubSpot configured to fire on the contact.creation event. The webhook payload will include the new contact's vid / object id.

When the agent runs, it should:

1. Read the contact from HubSpot using Get Contact, pulling firstname, lastname, company, jobtitle, and any institution field we expose. If firstname or lastname is missing, write a short "insufficient info to enrich" note and stop.

2. Search PubMed using ESearch with &retmode=json. Build the author term as `Lastname FI[au]` from last name and first initial. When the contact has a company or institution, AND in an affiliation tag like `"<institution>"[ad]`. Sort by most recent. Pull the top 5 to 8 PMIDs.

3. Call ESummary with &retmode=json on those PMIDs to get title, journal, authors, publication year, and identifiers. Then call EFetch to retrieve the abstract XML for the same PMIDs so the agent has enough context to characterize the person's work and judge whether it is really them.

4. Decide a match confidence (high / medium / low). Bias hard toward false negatives. Author disambiguation is the real risk because last names are not unique. Only commit to high or medium when affiliation, focus area, and recency line up.

5. Compose a structured research profile note containing: confirmed match confidence, inferred research focus areas (2 to 4 short phrases), top 3 most recent matching publications with title, journal, year, and a https://pubmed.ncbi.nlm.nih.gov/<PMID>/ link, and one outreach hook sentence tying their recent work to a plausible reason a rep would reach out.

6. Write the note back via HubSpot Create Note, associated to the contact id from the webhook. If confidence is low, skip the publications and the outreach hook entirely. The note body should just say "no confident PubMed match for <name> at <affiliation>" so reps know enrichment ran but found nothing trustworthy.

Important notes for the build: PubMed needs &retmode=json on ESearch and ESummary; EFetch for PubMed returns XML. Always send the NCBI api_key and email on every request. Keep the note plain text or simple markdown so it renders cleanly on the HubSpot timeline.

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