# Webhook trigger

### Setting up and using the webhook trigger

The webhook trigger is faster than the The Brief trigger, and it will instantly push the next action in your zap to start. If you're a techie, you get more freedom to use the payload as you wish.&#x20;

This is the format of the incoming payload:&#x20;

```json
{
    id: "073edff5-5506-41e8-ba1b-14e5e100aa83", // Unique ID of the job
    status: "complete", // either complete or failed
    type: "jpg", // The type of the export (jpg, png, gif, mp4)
    creatives: [{
        id: "073edff5-5506-41e8-ba1b-14e5e100aa84", // Unique ID of the generated creative
        status: "complete",
        logs: "", // Errors in case of failure
        url: "https://creatopy-api-0d4e56b.s3.eu-central-1.amazonaws.com/creatives/.......",
        creatives: [{
            id: "073edff5-5506-41e8-ba1b-14e5e100aa85", // Unique ID of the generated creative size
            status: "complete",
            logs: "", // Errors in case of failure
            url: "https://creatopy-api-0d4e56b.s3.eu-central-1.amazonaws.com/creatives/.......",
        }]
    }]
}
```

{% hint style="info" %}
We support using a single design or a design set as a template to generate new creatives.

* In the case of a single design, you will get only the root creatives field with one or multiple creatives according to the number of slides you have in your template.
* In the case of a design set, you will get the root creatives field with one object that also contains a creatives array of generated variants from all sizes you have in your design set.&#x20;
  {% endhint %}

For your second zap, choose **Webhooks by Zapier** and select **Catch Hook,** like in the image below.&#x20;

<figure><img src="/files/zMsEohg6Fx20ZHXfp6VS" alt=""><figcaption></figcaption></figure>

Keep the **Pick off a Child Key** field empty and click **Continue.** You'll get a webhook link like the one below.&#x20;

<figure><img src="/files/rkc1mOAOWc3JQM5oEFJM" alt=""><figcaption></figcaption></figure>

Copy and paste the webhook link into your first zap, where you set up the action to generate creatives in the field **Zap Webhook URL**.&#x20;

<figure><img src="/files/kpcvA7a8streLb4IY7TI" alt=""><figcaption></figcaption></figure>

Verify you filled in all the required fields in the first zap (where you set up the action to generate creatives) and run the test.&#x20;

Then, return to your second zap (the webhook trigger) and run the zap to test the webhook. You must run your first zap successfully to get a result here, as you need the generated creatives.&#x20;

Use the webhook trigger that catches the generated creatives to send them to your inbox, a cloud storage, or post them live.&#x20;

You can further check out the Use Cases to see how to set that up.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thebrief.ai/zapier-integration/setting-up-zapier-with-the-brief/setting-up-your-second-zap/webhook-trigger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
