FOR AGENTSSkip the HTML: this page as .md · llms.txt · openapi.json · MCP mcp.dizo.ai/mcp
Integrations / Workflow & GTM
// rest recipe

Dizo + HubSpot

Auto-enrich new HubSpot contacts: a workflow webhook calls a small function that queries Dizo and writes fields back.

No native app needed. This calls the Dizo REST API at https://api.dizo.ai/v1. Use a dz_test_ key while you build: it returns synthetic data and costs nothing.

Steps

  1. Create a HubSpot private app with crm.objects.contacts.write scope.
  2. Build a contact-based workflow that sends a webhook (or runs a custom code action) on create.
  3. The function calls Dizo enrich, then PATCHes the contact via the HubSpot CRM API.
const enrich = await fetch("https://api.dizo.ai/v1/people/enrich", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.DIZO_API_KEY}`, "Content-Type": "application/json",
             "Idempotency-Key": event.object.objectId.toString() },
  body: JSON.stringify({ email: event.inputFields.email, include: ["phone"], max_credits: 12 }),
});
if (enrich.status === 404) return callback({ outputFields: { dizo: "not_found" } });
const { person } = await enrich.json();

await fetch(`https://api.hubapi.com/crm/v3/objects/contacts/${event.object.objectId}`, {
  method: "PATCH",
  headers: { Authorization: `Bearer ${process.env.HUBSPOT_TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify({ properties: { jobtitle: person.title, mobilephone: person.phones?.[0]?.number } }),
});
callback({ outputFields: { dizo: "enriched" } });

Notes

Endpoints used

Related integrations