# Zapier -> Google Chat

### How the connection HackenProof -> Zapier Webhook works <a href="#h_b316c566a9" id="h_b316c566a9"></a>

This guide explains how our [Zapier](https://zapier.com/) WebHook can help companies when they run a bounty program at HackenProof.

<mark style="background-color:purple;">Please note! It's Zapier Webhook integration, not Zappier App</mark>

As you know, HackenProof uses a ticket-based system that has [different stages of reports](https://docs.hackenproof.com/bug-bounty/reports-basics) processing.

Once you connect your bug bounty program to your [Zapier account](https://zapier.com/), the bot will send notifications about the following:

* new reports (that includes the Program name, Report title, Report severity, and Report URL)

### Step 1. Generate your ZapierHook URL <a href="#h_22fa840395" id="h_22fa840395"></a>

* Navigate to the Zapier dashboard
* Create a new Zap

<figure><img src="https://downloads.intercomcdn.com/i/o/751784523/ccf20a10036684556690ed66/image.png" alt=""><figcaption><p>Zapier</p></figcaption></figure>

* Choose Trigger: Webhooks by Zapier

<figure><img src="https://downloads.intercomcdn.com/i/o/751793272/0ef06d556739555b086b7d35/image.png" alt=""><figcaption></figcaption></figure>

* Choose the Event type: **Catch Hook**

<figure><img src="https://downloads.intercomcdn.com/i/o/751794381/4ef293a7c381b3e8a1653df2/image.png" alt=""><figcaption></figcaption></figure>

* Press the **Continue** button:

<figure><img src="https://downloads.intercomcdn.com/i/o/751799008/e4c2ae64adffb7fb0f89d0b3/image.png" alt=""><figcaption></figcaption></figure>

* Pick off a Child Key and press Continue. **Here you can name it as you wish**.

<figure><img src="https://downloads.intercomcdn.com/i/o/751802890/b6257081496897d31487df1f/image.png" alt=""><figcaption></figcaption></figure>

* Copy the ZapierHook URL:

<figure><img src="https://downloads.intercomcdn.com/i/o/751804476/3fe5bac5a62127f8b231c9e5/image.png" alt=""><figcaption></figcaption></figure>

### Step 2. Add the copied ZapierHook URL to HackenProof: <a href="#h_54d1d86b75" id="h_54d1d86b75"></a>

* Navigate to your Program integration section and choose Zapier:

<figure><img src="https://downloads.intercomcdn.com/i/o/751807355/e5eb049d475ef7cbc9876149/image.png" alt=""><figcaption></figcaption></figure>

* Paste your copied ZapierHook URL and **press the Connect button.**

<figure><img src="https://downloads.intercomcdn.com/i/o/751808706/4af7a8b9e911498009b08ffb/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://downloads.intercomcdn.com/i/o/751809740/33da9fbedf554dc0403345fb/image.png" alt=""><figcaption></figcaption></figure>

* Press the **Test WebHook** button to test the connection (it will send the latest report' data to Zapier)
* Back to Zapier and press Test Trigger:

<figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2Fp4BLstfMJNvR4yDPqoyG%2Fimage.png?alt=media&#x26;token=ecdf6225-60fe-484e-b2bb-9c6380f3df82" alt="" width="375"><figcaption></figcaption></figure>

* As a result, you will see a data record. Press **Continue with selected record.**

<figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2Fup4OR2JW0n2cerXgXEBQ%2Fimage.png?alt=media&#x26;token=9062a04f-d181-4600-a182-23d6726b67e6" alt="" width="375"><figcaption></figcaption></figure>

### Step 3. Connect your Google Chat App <a href="#h_3f51fe2960" id="h_3f51fe2960"></a>

* in this sample, we use Google Chat. Before starting working with Google Chat, you need to:
  * Connect your Google Chat account in the Zapier App: Navigate to your Zapier Account and make sure you have the necessary connected app

    <figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2FVe4MJiVZV3flbIkPcXSD%2Fimage.png?alt=media&#x26;token=d92d69a2-1225-4abe-90ee-98189dcc6154" alt=""><figcaption></figcaption></figure>

  * Set up Zapier Bot in the Google Chat space:&#x20;

    <figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2FNbIDhCVT0ycCmN4BGh4M%2Fimage.png?alt=media&#x26;token=fe78f88e-9bc6-47dc-a02d-ff56b1885ca3" alt=""><figcaption></figcaption></figure>

    <figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2F5gf416nIoqN8eEFilRaL%2Fimage.png?alt=media&#x26;token=823ac592-a774-4014-827c-60da350872b7" alt=""><figcaption></figcaption></figure>

  * Choose the Hangouts Chat Room where you want the Message to be shown. The Zapier Bot must be added to the room and be configured with the "allowzaps" command.&#x20;

    <figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2FE3EhZ6VXN4v58gbLObSW%2Fimage.png?alt=media&#x26;token=d173d3d1-d161-44c0-9c8a-673e844d0acd" alt=""><figcaption></figcaption></figure>
* Now navigate to your Zapier account to continue creating ZAP:

<figure><img src="https://downloads.intercomcdn.com/i/o/751895122/52d988ac01968226711fac70/image.png" alt=""><figcaption></figcaption></figure>

* find and add Google Chat

<figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2FgGoHArPncjUlatT62iNg%2Fimage.png?alt=media&#x26;token=a4a145e0-d9c0-4559-8a50-be6c2eacc85e" alt=""><figcaption></figcaption></figure>

* chose event type **Create Message** and press the Continue button

<figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2FpLkTjM0nOCRGJh6ub1ie%2Fimage.png?alt=media&#x26;token=4600c228-4ae9-430c-83bb-3e07508138fd" alt=""><figcaption></figcaption></figure>

* Now specify data about your Google Chat (data in the screenshot is just an example).  You can add a Description that can include a few fields at the same time. Also, you can add some pre-description for each field to understand it in later:
  * Program name:
  * Report ID:
  * Report URL:
  * Report Severity:
  * Report Status:

<figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2FOSKMsTBGAjf3sWwblr6I%2Fimage.png?alt=media&#x26;token=e11180ef-5d62-40c8-84e3-d646f5d6376d" alt="" width="375"><figcaption></figcaption></figure>

* Now you can Test it.

<figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2F2hw9d49UoT9zKciSb252%2Fimage.png?alt=media&#x26;token=943c2778-aae1-45bf-9afc-c6964f0857d4" alt="" width="375"><figcaption></figcaption></figure>

* if everything works for you, Publish it

<figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2FjBnzfasS7pCxGsigOUH4%2Fimage.png?alt=media&#x26;token=da204af3-a47b-44cf-963c-1ea910393ee9" alt="" width="375"><figcaption></figcaption></figure>

* Check your Google Chat space:

<figure><img src="https://2686245090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faou7mxABOvrk0uZ81vUx%2Fuploads%2FFUbRvBFNU2hawMCBqEde%2Fimage.png?alt=media&#x26;token=e7779ed4-e84c-4a36-bef4-809e56af870f" alt=""><figcaption></figcaption></figure>
