---
title: Triggering Automation
slug: triggering-automation
docTags: 
createdAt: 2023-04-19T13:59:58.000Z
---

Once you have built your Automation, tested and Published to Live, you will need to trigger the automation so it can execute all your APIs.&#x20;

There are several ways to trigger an automation depending on your usecase:



### Endpoint

Each Automation that is built will have a unique Endpoint associated with it.  In this method, you will call the endpoint from your application with the relevant data and the automation will pick up the data from your call and trigger the automation.&#x20;

This is the most common method of triggering an automation. Here is a sample on how you can trigger your automation using this method:

**Scenario:&#x20;**&#x59;ou are updating Google Sheets rows with data sent from your app&#x20;



- Once you have built your Automation, copy the Endpoint from the **Test and Publish** page



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/Ib9bRwrUiCLxvKHFFiv0G_image.png" size="78" width="1859" height="1131" position="center" showCaption="false"}

- The Endpoint is also available from the **Properties&#x20;**&#x77;indow of the first task in your automation, under **Other Settings**.



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/1gwvOoRXGA_-hD2C5Q7vz_image.png" size="78" width="1830" height="1232" position="center" showCaption="false"}

- Enter the JSON you will be sending from your app into the first task of the automation. This JSON can have any information you wish to use as part of your automation&#x20;
- If you are triggering the automation for your connected users, make sure you send the user\_id field in the JSON



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/zML89EQ4gQVyj5sphkyBF_image.png" size="78" width="1808" height="1226" position="center" showCaption="false"}

- The API call will need to be made to the Endpoint of the automation. Once sent, the automation will trigger and action the data that is sent



### Webhook

An Automation can be triggered based on webhook event of a connected account. This method is only available for accounts that use [Pathfix OAuth](https://app.pathfix.com) for their user authentication and will trigger for all your connected users. &#x20;



- Setup the provider webhook configuration as shown in the [documentation here](https://autodocs.pathfix.com/webhooks)



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/NXTvDG5z5bGW3o0nUgS3Y_image.png" size="74" width="1404" height="1087" position="center" showCaption="false"}



- Once setup, any webhook event triggered will trigger the automation for the connected user&#x20;



### Scheduled&#x20;

Once an automation has been designed, it can be triggered based on a schedule

- Select the first task and on the **Properties&#x20;**&#x77;indow, scroll down to the **Schedule&#x20;**&#x73;ection



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/ZsYDiuo63EqmhPi15JtGa_image.png" size="84" width="1809" height="1226" position="center" showCaption="false"}



- Select the schedule you would like to trigger for the automation
- Choose from every few minutes to once everyday and select the time for the schedule&#x20;



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/X4rrT9YDnafOunuVsY1Ol_image.png" size="46" width="812" height="1212" position="center" showCaption="false"}



- Complete the build of your automation with the APIs and tasks as you want
- Click on **Test and Publish** to run a test and publish your automation to live



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/1gCz7-e59rcL2oAR3QV8S_image.png" size="84" width="1922" height="1021" position="center" showCaption="false"}

- Once the automation is Published to Live, it will be **enabled&#x20;**&#x61;nd will run according to the schedule set





Need help? You can always reach out to our support team for any additional assistance at support\@pathfix.com.

