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

# Zapier Webhook Integration

> Connect your Verbex AI Assistant with Zapier Zap as a custom tool

<Note>
  **What you'll learn**

  * How to set up Zapier Zap
  * How to create a Zapier Webhook
  * How to integrate Zapier with Verbex Platform
  * How to test and verify the integration
</Note>

[Zapier](https://zapier.com/) is a platform that allows you to automate tasks across different apps. It provides a visual interface to create automated workflows by connecting triggers, actions, and data across multiple applications.

## Prerequisites

* A Zapier account
* A Verbex account
* Understanding of Zapier Zap
* Understanding of Verbex Agent and Custom Tools

## Zap Summary

We will create a Zapier Zap to send data to a webhook and then to Google Sheets.

**Zapier Flow**: Webhook -> Google Sheets

## Create a Zapier Zap

1. Go to [Zapier](https://zapier.com/) and sign in.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_1.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=f89a903c4e84930b8122e088604b5a27" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_1.png" />
</Frame>

2. Click on the "Create a Zap" button.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_2.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=ee4f871cc6f3c876d77e386fc96fdf73" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_2.png" />
</Frame>

3. Select "Webhook" as the trigger. Setup the trigger to listen for a request.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_3.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=4e25724f32a10b7a15e73ffae453f0c3" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_3.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_4.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=e8b8ef1d043e6441790e64e7f796480a" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_4.png" />
</Frame>

4. Configure the webhook trigger event to "Catch Hook"

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_5.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=c3e56c924469358e34c4e99a6c90705e" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_5.png" />
</Frame>

5. After configuring you will get a webhook URL. Copy it for later use.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_6.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=bfd266004743d951a4776d2d6dcdbade" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_6.png" />
</Frame>

6. Now test the webhook by sending a request to the URL. Here is an example CURL request:

```bash Send data to webhook theme={null}
curl -X POST "https://hooks.zapier.com/hooks/xyz" \
     -H "Content-Type: application/json" \
     -d '{"name": "Sagor3", "email": "sagor3@gmail.com"}'
```

```json Response from webhook theme={null}
{
  "attempt": "0194d08d-fc38-c8c0-482e-7e202b923762",
  "id": "0194d08d-fc38-c8c0-482e-7e202b923762",
  "request_id": "0194d08d-fc38-c8c0-482e-7e202b923762",
  "status": "success"
}
```

You can see the send data in Webhook test section.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_8.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=b3bb1607db03f990bdecef0c7004bcff" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_8.png" />
</Frame>

7. Now add another trigger "Google Sheets"

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_9.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=d90d6cb3c0b9107aabaa16a248e44466" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_9.png" />
</Frame>

8. Configure it "Create Spreadsheet Row(s)" as the trigger.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_10.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=d160584ab37226dfb25ec224cfce2d51" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_10.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_11.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=30d7b1581b9efe6f146f2532aa9082cf" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_11.png" />
</Frame>

9. Configure it more with your Google Sheet, sheet name, column names etc. Remember while filling the column you can point the value from webhook data.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_13.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=1ae9430b7d5f58354a3273ad46dcca49" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_13.png" />
</Frame>

10. Now test the zap by clicking on the "Test" button. You can see the test results in "Data in" and "Data out" section.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_14.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=6753a34de7308bd0e108374f7da8e8eb" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_14.png" />
</Frame>

11. Now you can see the data in your Google Sheet.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_15.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=816ba68ebb44e560efb9a078161b1aa7" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_15.png" />
</Frame>

## Zapier Webhook Integration with Verbex

1. Go to your Verbex agent page. Select your agent to configure the tool.
2. Click on the "Tools" tab and select "Custom Tools" from the left sidebar.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/Bd-nkhA8cT0nKgAS/images/ct_tool_selection.png?fit=max&auto=format&n=Bd-nkhA8cT0nKgAS&q=85&s=55dbe1d0df3a468602caf84ee2b12978" alt="Create a Zap" height="212" width="423" data-path="images/ct_tool_selection.png" />
</Frame>

3. Fill the custom tool details with Zapier Webhook Integration details.

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_16.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=7f3ad621ac3afdb35900a3e23e6ceca4" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_16.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/hishabsingaporepteltd/hKDJJlbuwj-_7GRI/images/zapier/zap_17.png?fit=max&auto=format&n=hKDJJlbuwj-_7GRI&q=85&s=9831e863fb06a4bba86d7c6d2b1a601e" alt="Create a Zap" height="400" width="600" data-path="images/zapier/zap_17.png" />
</Frame>

4. Click on the "Create Tool" button to save the tool.
5. Now everything is setup and you can test your agent with the tool.

<Tip>
  You can test the tool by asking the agent to store your name and email in Zapier and Google Sheet. It will ask your name and email and store it in Zapier and Google Sheet.
</Tip>

To learn more about Zapier follow [Zapier Documentation →](https://docs.zapier.com/platform/home)

<CardGroup cols={2}>
  <Card title="Use Descriptive Names" icon="tag">
    When creating Zaps and custom tools, always use descriptive names. This helps in easily identifying and managing them later.
  </Card>

  <Card title="Test Thoroughly" icon="check-circle">
    Always test your Zaps and custom tools thoroughly to ensure they work as expected. Use the "Test" button in Zapier and verify the data in your Google Sheets.
  </Card>

  <Card title="Secure Your Credentials" icon="lock">
    Ensure that any credentials or sensitive information used in your integrations are stored securely. Avoid hardcoding them in your scripts.
  </Card>

  <Card title="Keep Documentation Handy" icon="book">
    Always refer to the official documentation of the tools you are integrating, such as Zapier and Verbex, for the latest updates and best practices.
  </Card>

  <Card title="Monitor and Optimize" icon="chart-line">
    Regularly monitor the performance of your Zaps and custom tools. Optimize them for better performance and to handle any changes in the workflow.
  </Card>
</CardGroup>
