# Activepieces + Dizo

> Call any Dizo tool as a flow step with the Activepieces MCP Client piece, or hit the REST API directly with the HTTP piece's Send HTTP request action.

Type: MCP client — server URL `https://mcp.dizo.ai/mcp`. No native app needed.

## Steps
1. In a flow, add a step, pick the **MCP Client** piece and its **Call Tool** action, and create a new connection.
2. In the connection, set **Server URL** to `https://mcp.dizo.ai/mcp`, **Transport** to **Streamable HTTP**, **Authentication** to **Bearer Token**, and paste a `dz_live_...` key in **Bearer Token**.
3. Choose a Dizo tool from the **Tool** dropdown (the list is loaded from the server), such as `dizo_find_email`, and map values from earlier steps into **Tool Inputs**.
4. For a plain REST call instead, use the **HTTP** piece's **Send HTTP request** action with **Authentication** set to **Bearer Token**, and set **On Failure** to **Continue flow on 4xx errors**.
5. Test the step with a `dz_test_` key first, then switch the connection to a live key with its own caps.

## Where to go
In a flow, add the **MCP Client** piece (Call Tool) and connect it to `https://mcp.dizo.ai/mcp`.

Open the Activepieces MCP Client piece: https://www.activepieces.com/pieces/mcp-client

## MCP Client connection
```
Piece:           MCP Client
Connection:      API Key / Headers
Server URL:      https://mcp.dizo.ai/mcp
Transport:       Streamable HTTP
Authentication:  Bearer Token
Bearer Token:    dz_live_...
```

## Call Tool step
```
Action:  Call Tool
Tool:    dizo_find_email
Tool Inputs:
  first_name:      {{trigger.first_name}}
  last_name:       {{trigger.last_name}}
  company_domain:  {{trigger.domain}}
  max_credits:     1
```

## HTTP piece: Send HTTP request
```
Method:          POST
URL:             https://api.dizo.ai/v1/companies/enrich
Headers:         Idempotency-Key: {{trigger.id}}
Authentication:  Bearer Token
Token:           dz_live_...
Body Type:       JSON
JSON Body:       { "domain": "{{trigger.domain}}", "max_credits": 1 }
On Failure:      Continue flow on 4xx errors
```

## Notes
- The MCP Client piece stores the key on a connection. The HTTP piece's own help text says its token is stored in the flow and visible in exports, so prefer the MCP Client connection for live keys.
- Dizo's MCP connections default to `data:read` and a 500-credit per-call limit unless you change them in the console.
- Field labels here come from the open-source pieces; check Activepieces' docs if your instance runs an older version.

## Related API docs
- [/docs/email-find](https://dizo.ai/docs/email-find.md)
- [/docs/company-enrich](https://dizo.ai/docs/company-enrich.md)
- [/docs/keys](https://dizo.ai/docs/keys.md)


## What Activepieces is

Activepieces is an open-source automation platform. You build flows from a trigger and a series of steps, and each step comes from a piece: a packaged integration for an app, or a core utility such as HTTP, code or branching. It runs as a hosted cloud service or self-hosted on your own infrastructure, and its pieces are MIT licensed, so you can read exactly what each one does.

Two pieces matter for Dizo. The **MCP Client** piece connects to an external MCP server and calls one of its tools as a deterministic flow step, without an LLM choosing anything. The **HTTP** piece sends a request to any URL. Either can reach Dizo. There is no native Dizo piece; you configure one of these general pieces with your key, and the rest of this page shows both.

## Why connect Activepieces to Dizo

Flows are good at moving records but not at knowing things about them. A webhook delivers a name and a domain. A spreadsheet row has a company but no contact. A CRM record needs a title before your routing rules make sense. Dizo returns that context in one step, and the flow carries on to wherever the data needs to go.

The MCP route has a practical advantage in a builder like this. Dizo's MCP server exposes every API as a tool with a typed input schema, and the MCP Client piece reads that schema live and turns it into form fields. You pick `dizo_find_email` from a dropdown and see first name, last name and company domain as inputs, instead of hand-writing a JSON body. Billing is the same either way: [email find](/docs/email-find) is 1 credit only if found, and misses are free.

## What you can build

Each of these is one Dizo step in an otherwise ordinary flow. Start with whichever matches a trigger you already have.

- On a new form submission, call `dizo_enrich_person` with the email and post title and company to a Slack channel.
- On a new row in a sheet, call `dizo_find_email` and write the address and its `status` back to the row.
- Every morning, run `dizo_enrich_person` on contacts whose emails bounced the day before, and update the CRM with any new employer and work email.
- When a deal is created, call `dizo_org_chart` for the account domain and list the finance and IT leaders in the CRM note.
- For a list of target domains, call `dizo_best_contact` with a ranked title list and create one contact per company.
- Before a big run, call `dizo_quote` with the same inputs to see the exact credit cost, which spends nothing.

## Setting up the MCP Client connection

In your flow, add a step and search for MCP Client, then choose the **Call Tool** action. Activepieces asks for a connection. The piece offers two connection types: **API Key / Headers**, and **OAuth2**. For a server-side flow, API Key / Headers is the most predictable, because nobody needs to be present to sign in.

Fill in **Server URL** with `https://mcp.dizo.ai/mcp` and leave **Transport** on **Streamable HTTP**, which is what Dizo's server speaks. Set **Authentication** to **Bearer Token** and paste a key into the **Bearer Token** field. The piece sends it as the `Authorization: Bearer` header on every request, which is exactly what Dizo expects. Use a `dz_test_` key while you build: it returns synthetic data and never spends credits.

The OAuth2 connection type reads the authorization endpoints from the server's own metadata and registers a client automatically where the server supports it. Dizo supports OAuth 2.1 for MCP clients, so this may suit flows owned by one person, but check Activepieces' docs and test the connection before relying on it in production.

## Calling a Dizo tool

Once the connection is saved, open the **Tool** dropdown. The piece loads the tool list from Dizo's server, so you see every tool on the [MCP page](/mcp), from `dizo_search` to `dizo_whoami`. Pick one and the **Tool Inputs** section fills with that tool's fields. Map values from the trigger or earlier steps into them, and always set `max_credits` to a fixed number so a single step cannot spend more than you planned.

Run a test. The step returns the tool's result, which the next steps can reference. Activepieces' piece description notes that the step fails when the server flags the result as an error. A not-found from Dizo is a normal outcome, so put a branch after the step, or use a router, to handle the empty case without treating it as a flow failure.

A useful first step in any Dizo flow is `dizo_whoami`. It is free and returns the key's scopes, endpoint allow-list, remaining daily and monthly budget, and rate limits, which makes a clean health check when you are debugging a new connection.

## Using the HTTP piece instead

If you prefer plain REST, add the HTTP piece and choose **Send HTTP request**. Set the method to POST, the **URL** to a full address such as `https://api.dizo.ai/v1/companies/enrich`, and **Body Type** to JSON. Put the body in **JSON Body** with `max_credits` included. Add an `Idempotency-Key` under **Headers**, mapped to the source record ID, so retries within 24 hours are never charged twice.

For auth, set **Authentication** to **Bearer Token** and paste the key in **Token**. Note the piece's own help text: the token is stored in the flow and visible in exports. That is fine for a test key, but think twice before putting a live key there, and never share an exported flow that contains one.

Set **On Failure** to **Continue flow on 4xx errors**. A Dizo miss returns `404 not_found` at no cost, and a `402` means a cap or the balance has been reached. With this option the flow continues and you can branch on the response status rather than having the run stop.

## Controlling spend

Give the Activepieces key its own limits in the Dizo console: a daily credit cap, a monthly credit cap, a maximum per request and an endpoint allow-list containing only the tools the flow uses. The [API keys](/docs/keys) docs list each field. Keep the scope to `data:read`, so no flow can top up or change billing, and add an account-wide monthly spend cap on top. MCP connections default to a 500-credit per-call limit unless you change it.

A worked example. A weekly flow re-identifies 200 contacts whose emails bounced with person enrich at 2 credits if matched; if 120 match, that is 240 credits. It then runs email find on 400 contacts with no address. If 300 are found, add 300 credits; the 100 misses are free. That is 540 credits a week, about 2,160 a month, or $54 at the $0.025 entry rate. A single $500 purchase lowers the rate to $0.021, bringing it to about $45.36. See [pricing](/pricing) for every tier.

## Example flows

**Inbound lead to CRM.** Trigger: a webhook from your form. Step one calls `dizo_enrich_person` with the email and `include` set to email. Step two branches: if a person came back, create or update the CRM contact with title, seniority and company; if not, tag the lead for manual review. A match costs 2 credits, plus 1 if an email is found.

**Account research on new deals.** Trigger: a new deal in the CRM. Step one calls `dizo_enrich_company` with the account domain, at 1 credit if matched. Step two calls `dizo_org_chart` filtered by department, at 1 credit per 25 people returned. Step three writes a short summary to the deal. The whole flow usually costs a couple of credits per deal.

**Spreadsheet gap-fill.** Trigger: a schedule. Step one reads rows added since the last run that have a name and company but no email. Step two sends each one to `dizo_find_email`. Step three writes the address, `status` and `confidence` back to the sheet and leaves misses blank, so the next send only uses validated addresses. At 1 credit per email found, 400 rows with 300 found cost 300 credits.

## Troubleshooting and security

**Tools do not load in the dropdown.** Check the Server URL has no trailing spaces, that Transport is Streamable HTTP, and that the key is valid. **401 errors.** The key is wrong, revoked or a test key on a live flow. **402 errors.** A key cap, the account cap or the balance was reached; call `dizo_balance` to see which. **Throttling.** `dizo_whoami` shows the key's rate limits; for more than 50 lookups, use `dizo_batch` instead of a loop.

Use one key per flow or project so you can revoke it alone, and rotate keys when people with access leave. If you self-host Activepieces, the key sits in your own database, so treat backups accordingly. [Sign up](/signup) for live keys, with 250 free credits and no card.

## FAQ

### Is there a Dizo piece for Activepieces?
No. There is no native Dizo piece or listing. You use the general MCP Client piece pointed at Dizo's MCP server, or the HTTP piece calling the REST API.

### MCP Client or HTTP piece?
Use the MCP Client when you want input forms generated from Dizo's tool schemas and the key kept on a connection. Use the HTTP piece when you need full control over the request, such as custom headers on each call.

### Does the MCP Client piece use AI to pick tools?
No. Its Call Tool action runs the one tool you select with the inputs you map, as a deterministic step. Nothing is chosen by a model.

### Will a not-found result cost credits?
No. Email find, phone find and the profile lookups are charged only when data is found. Handle the empty case with a branch so the flow does not treat it as a failure.

### Can I self-host Activepieces and still use Dizo?
Yes, as long as your instance can make outbound HTTPS requests to `api.dizo.ai` and `mcp.dizo.ai`. Nothing else changes.

### How do I test without spending credits?
Use a `dz_test_` key in the connection. It returns synthetic data and never spends credits, so you can build and run the whole flow before switching to a live key.
