# Zapier and Make, both ways

> An automation step sends the contact to your Zap or your Make scenario. One API call from either starts an Otobiz automation. No plug-in to install on either side.

Page: https://otobiz.ai/connections/zapier-and-make

## What moves between them

Out through a step in the automation builder, in through the API.

- **Trigger a Zap.** Send the contact to a Zapier webhook. Paste the Zap's webhook address into the step.
- **Trigger Make.** Send the contact to a Make webhook. Paste the scenario's webhook address into the step.
- **The contact and your own fields.** Each call carries the contact and up to 30 fields you name, filled in for that run.
- **Start an automation from outside.** Record an event by API and every published automation whose "API call" trigger names that event starts.
- **Safe to retry.** Send the same event id twice and the event is recorded once, so a Zap that runs again does not message a customer again.
- **Events out, without an automation.** Register a webhook endpoint and Otobiz posts signed events to it: a message, a comment, a review.

## Set it up in three steps

Two directions, each one a few minutes.

- **1. Send from Otobiz.** In Zapier or Make, start with a webhook and copy its address. In an Otobiz automation, add "Trigger a Zap" or "Trigger Make" and paste it.
- **2. Make an API key.** For the other direction, make a key with the send scope in Otobiz. It goes in the request's Authorization header.
- **3. Call Otobiz from your Zap or scenario.** Add a web request step that calls POST /api/v1/customer-events. Name the event and the customer, by phone number or contact id.

## What is sent, each way

The body your Zap or scenario receives, and the call it makes back.

### What your Zap or scenario receives

The event name is yours to set. The contact's saved details ride beside its id, and your own fields sit under data.

```json
{
  "event": "zap",
  "contact": {
    "id": "ctc_01j2jxbb4pex5vsknk084sn03h"
  },
  "data": {
    "plan": "gold",
    "source": "comment"
  }
}
```

### Start an automation from a Zap or scenario

Every published automation whose "API call" trigger names the event starts for that customer.

```sh
# Something happened in your own system
curl https://app.otobiz.ai/api/v1/customer-events \
  -H "Authorization: Bearer $OTOBIZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "event": "course_purchased", "phone": "+15551234567", "externalEventId": "purchase-1042", "properties": { "course": "Baking basics" } }'
```

## The endpoints a Zap or scenario calls

Any operation of the API works from a web request step. These are the ones most first builds use.

| Method | Path | What it does |
|---|---|---|
| POST | `/api/v1/customer-events` | Record an external customer event |
| POST | `/api/v1/contacts` | Create a contact |
| POST | `/api/v1/inbox/conversations/{conversationId}/messages` | Send a message |
| POST | `/api/v1/webhooks/settings` | Register a webhook endpoint |

## Good to know

What the step checks, and what the event call answers.

- **Only the app's own webhook address.** The step takes an https webhook address of Zapier or of Make and refuses any other, so a typo cannot send a contact somewhere else.
- **A step needs a contact.** The step runs for the contact the automation is running for. With no contact it stops with an error you can branch on.
- **Fields per call.** Up to 30, beside the contact.
- **Answer 404.** No such contact in this brand.
- **Answer 429.** Rate limited.

## Questions

### Is there an Otobiz app inside Zapier or Make?

No. You connect with a webhook step on the Otobiz side and a webhook or web request step on theirs. Nothing is installed in either product.

### What does Otobiz send to my Zap or scenario?

One JSON body with an event name, the contact and up to 30 fields you choose, each time the step runs.

### How does a Zap start an Otobiz automation?

It records an event with one API call. Every published automation whose "API call" trigger names that event starts for the customer you name.

### Will a retried Zap message my customer twice?

Not if it sends the same event id. A repeated id is recorded once.

More: https://otobiz.ai/connections.md and https://otobiz.ai/developers.md
