# Connect & map fields

> Connect HubSpot, Pipedrive, Zoho or Salesforce and send matching leads with the fields you map.

Every section below does the same job: in the dashboard (Guide), from your code (API) or through an AI assistant (MCP).

## Guide — In the dashboard

Source: /docs/automations/crm/overview

Connect your CRM once under Integrations → CRMs, map the fields, then let an automation push the leads that match.

<DemoFrame guide="integrations-crm" to="/integrations/{workspace}?tab=crm" />

1. **Integrations → CRMs → Connect.**
2. **Map the fields** you want filled.
3. **Create an automation** that pushes matching leads.

### Every control on this screen [#every-control-on-this-screen]

Every button, field and switch, with what it does.

<ScreenControls screens={["integrations-crm", "integrations-crm-mapper", "integration-connected"]} />


---

## API — From your code

Source: /docs/automations/crm/overview/api

Authenticated with `?privateKey=YOUR_KEY` (see [Authentication](/docs/authentication)).

<Endpoints ops={["POST /v3/crm/push", "GET /v3/crm/owners", "GET /v3/crm/variables", "GET /v3/crm/{crm}/mappings", "PUT /v3/crm/{crm}/mappings"]} />

<ApiPlayground
  ops={["POST /v3/crm/push", "GET /v3/crm/owners", "GET /v3/crm/variables", "GET /v3/crm/{crm}/mappings", "PUT /v3/crm/{crm}/mappings"]}
  method="get"
  path="/v3/crm/owners"
  tool="list_crm_owners"
  args={`{
  "crm": "hubspot",
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9"
}`}
/>

### Use case: Push one lead now [#use-case-push-one-lead-now]

`POST /v3/crm/push` with the CRM, the website and the contact data; pick an owner from `GET /v3/crm/owners`.


---

## MCP — AI agents

Source: /docs/automations/crm/overview/mcp

Connect the [MCP server](/docs/mcp#quickstart), then just ask.

<Tools names={["push_lead_to_crm", "list_crm_owners", "list_crm_variables", "get_crm_mappings", "set_crm_mappings"]} />

### Use case [#use-case]

> Push this lead to HubSpot and assign it to Jane.

<McpToolCall name="list_crm_owners">

```json
{
  "crm": "hubspot",
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9"
}
```

</McpToolCall>

