> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pylar.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Zapier

> Connect Pylar MCP tools to Zapier for no-code automation workflows with data access

## Overview

Zapier is a no-code automation platform that connects apps and automates workflows. Connect your Pylar MCP tools to Zapier to access your data in automated workflows without writing code.

## Prerequisites

* ✅ Zapier account
* ✅ Pylar project with published MCP tools
* ✅ MCP HTTP Stream URL and Bearer Token from Pylar

## Step 1: Get Your Pylar Credentials

1. In Pylar, navigate to your project
2. Click **"Publish"** in the right sidebar
3. Copy both:
   * **MCP HTTP Stream URL**: `https://mcp.publish.pylar.ai/mcp`
   * **Authorization Bearer Token**: Your unique token

## Step 2: Create a Webhook in Zapier

Since Zapier doesn't have native MCP support, we'll use HTTP requests:

1. In Zapier, create a new Zap
2. Choose **"Webhooks by Zapier"** as your trigger or action
3. Select **"Custom Request"**

## Step 3: Configure HTTP Request

Configure the HTTP request to call Pylar MCP tools:

**Method**: `POST`

**URL**: `https://mcp.publish.pylar.ai/mcp/tools/call`

**Headers**:

```
Authorization: Bearer YOUR_BEARER_TOKEN_HERE
Content-Type: application/json
```

**Data (JSON)**:

```json theme={null}
{
  "name": "fetch_engagement_scores_by_event_type",
  "arguments": {
    "event_type": "{{trigger_field}}"
  }
}
```

Replace `YOUR_BEARER_TOKEN_HERE` with your actual token and `{{trigger_field}}` with your Zapier field.

## Step 4: Use Response Data

Use the response from Pylar in subsequent Zapier steps:

1. Parse the JSON response
2. Use data fields in other Zapier actions
3. Build your automation workflow

## Example Workflow

**Trigger**: New email in Gmail

**Action 1**: Call Pylar tool to get customer data

* Tool: `fetch_customer_by_email`
* Argument: Email from trigger

**Action 2**: Use data in other apps

* Send to Slack
* Update CRM
* Create task

## Benefits

* ✅ **No Code Required**: Build automations visually
* ✅ **Centralized Control**: Update views in Pylar, Zaps get updates
* ✅ **Secure Access**: Data access through governed views
* ✅ **Easy Integration**: Works with 6000+ Zapier apps
* ✅ **Full Visibility**: Monitor usage through Pylar Evals

## Troubleshooting

### Issue: Authentication errors

**Solutions**:

* Verify Bearer Token is correct
* Check header format: `Bearer YOUR_TOKEN`
* Ensure no extra spaces in token

### Issue: Tool not found

**Solutions**:

* Verify tool name matches exactly
* Check tools are published
* Test tool in Pylar first

## Next Steps

* [Publishing Tools](/learn/publishing-tools/publishing-your-tools) - Publish your tools
* [Evals](/learn/evals/overview) - Monitor Zapier usage
* [Other Builders](/learn/connecting-agent-builders/overview) - Connect to other platforms
