# Zapier

To create Zapier Automation:

1. Login to your [Zapier](https://zapier.com/) account and click on the **Create Zap** button from the Sidebar.

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

2. Now in the **Trigger**, search for the "Copperx" app and select **Checkout Session Completed** as the event and click **Continue**.

   <br>

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

3. Next is to test the trigger, for that you need to copy the **webhook URL** and add it to the Copperx [webhooks settings](https://dashboard.copperx.io/developer/webhooks) as new webhook endpoint. (**Note :** you can test trigger by switching to Testnet and adding the copied URL to webhooks settings, but be sure to remove the URL from Testnet after the successful payment test.)

   <br>

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

4. Next, select the email app you want to use as the **Action** app. For example, you could choose Gmail, Outlook, or any other email service and select "Send Email" as the event. Now, click **Continue** and log in to your email service.

   <figure><img src="/files/9haXBLvJ9u4b2NLBYxEm" alt=""><figcaption></figcaption></figure>

5. Now, you need to fill the **Email** **To** field as the "Customer Email" from the given option data and fill other relevant fields such as email subject and body as per your business needs.

   <br>

   <figure><img src="/files/0T3g055JdDUplIczyiHp" alt=""><figcaption></figcaption></figure>

6. At this stage, you can test your Zap and **Publish** it.<br>

   <figure><img src="/files/3cmDpK72ohEEeYlC7UlS" alt=""><figcaption></figcaption></figure>

Once you've completed these steps, you're ready to send customized emails to your customers through this automation.


---

# 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.copperx.io/integrations/zapier.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.
