For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Guides
    • Introduction
    • Quick Start
    • Use Cases
    • MCP Server
  • API
    • Enrich Endpoint
  • Integrations
    • Clay
    • Zapier
    • Make
    • HubSpot
    • Salesforce
    • n8n
  • Platform
    • API Keys
    • Rate Limits
    • Pricing
  • Support
    • Support
  • API Reference
    • GETGet platform stats
    • GETSearch case studies
    • POSTSemantic search
    • POSTBatch semantic search
    • GETGet case study
    • GETList companies
    • GETGet company
    • GETCompany analysis
    • GETCompany timeline
    • POSTCompare vendors
    • POSTRegister for an API key
Logocasestudies.dev
On this page
  • Option 1: Operations Hub Custom Code
  • Option 2: Use Zapier
  • Available response fields
Integrations

HubSpot

Was this page helpful?
Previous

Salesforce

Next
Built with

Option 1: Operations Hub Custom Code

  1. Go to Automation → Workflows
  2. Create a workflow triggered by “Contact is created”
  3. Add a Custom code action (requires Operations Hub Professional)
  4. Paste:
1const axios = require('axios');
2
3exports.main = async (event) => {
4 const domain = event.inputFields['company_domain'];
5 if (!domain) return;
6
7 const res = await axios.get(
8 `https://api.casestudies.dev/v1/enrich/${domain}`,
9 { headers: { 'X-API-Key': 'YOUR_API_KEY' } }
10 );
11
12 const data = res.data;
13 const vendors = data.featured_in?.vendors?.map(v => v.vendor.name).join(', ') || '';
14 const total = data.featured_in?.total || 0;
15 const problem = data.featured_in?.vendors?.[0]?.case_studies?.[0]?.problem || '';
16 const outcomes = data.featured_in?.vendors?.[0]?.case_studies?.[0]?.outcomes || '';
17 const sourceUrl = data.featured_in?.vendors?.[0]?.case_studies?.[0]?.source_url || '';
18
19 return {
20 outputFields: {
21 vendor_mentions: total,
22 vendors_used: vendors,
23 key_problem: problem,
24 key_outcome: outcomes,
25 source_link: sourceUrl,
26 }
27 };
28};
  1. Map the output fields to custom contact properties:
Output fieldHubSpot propertyType
vendor_mentionsVendor MentionsNumber
vendors_usedTools UsedSingle-line text
key_problemKey ProblemMulti-line text
key_outcomeKey OutcomeMulti-line text
source_linkSource LinkSingle-line text

Option 2: Use Zapier

See the Zapier integration guide for a no-code alternative.

Available response fields

See the full field reference in the Enrich endpoint docs.