Webhooks Setup
Google Calendar Webhook
22min
through pathfix automation, you can enable user webhook listening for all your user that have connected their google calendar account via pathfix oauth the following documentation will guide you on how you can setup your google dev console account and setup google calendar webhook listening for all your connected users setup in pathfix oauth before proceeding, make sure you have setup your google calendar integration in pathfix oauth and have added the connect button for your users to be able to connect their google calendar accounts configure your google calendar integration in pathfix oauth add the script tag in your application to allow your users to connect their google calendar accounts (detailed documentation for pathfix oauth can be found here ) setup in pathfix automation (part 1) the setup with pathfix automation and google console will require switching between both platforms create a blank automation by clicking on design and selecting new design give your first task a name to save the automation (autosave) click on the test and publish tab and click on test to run a test on the automation on successful completion, click on publish to live click on endpoints and copy the endpoint url for use in the webhook setup live endpoint is for live environments and dev endpoint is for testing/development click on webhooks from the top navigation and click on create new select google calendar from the list of provider webhooks paste the endpoint url copied from the automation into the callback url section we will copy the verification token from google console in the next section for use in the verify token section later click on the pathfix oauth tab and enter your pathfix oauth public key and private key click to generate the webhook uri for use in google search console setup in google search console (part 1) domain verification is needed in order to get the google calendar webhook setup done this is done through the google search console here https //search google com/search console https //search google com/search console click on add property to create a new entry select url prefix and paste the webhook uri copied from the webhook interface from pathfix automation scroll down to the html tag section and copy the meta for use in pathfix automation webhook setup you will need to add \<html>\<head> before the \<meta > add \</head>\</html> after the html tag generated by google it should look something like this \<html>\<head>\<meta />\</head>\</html> do not click verify yet, leave this window open until we are ready to verify (verification will only be done after the setup in pathfix automation is completed) setup in pathfix automation (part 2) in your automation webhook window, paste the html tag copied from google search console to the verify token section hit save on the following webhooks page, click on activate to activate your webhook the webhook activation will take a few minutes and will happen in the background once activated, the webhook status will turn green (click on the refresh icon) setup in google search console (part 2) go back to your google search console and click on verify you can now go back to the automation built and build out your automation based on the data received for every connected user testing your webhook setup we recommend running a test on your webhook setup to make sure the setup is right to do this go to your pathfix oauth account and click on test connection for goolgle calendar click on connect/re connect and connect a google calendar account on successful connection, the automation will start listening for changes in google calendar for the connected user you will see the webhook user count increase (if it doesnt increase at first, click on refresh on the top navigation) go to your google calendar app and create a test event go to your pathfix automation account and click on monitor you should see the test event created would have triggered a webhook call your test is successful configure your automation now that your webhook has been setup successfully, you will need to copy the payload sent by google calendar and captured by pathfix automation and create your automation here are the few initial steps to get you going copy the request received from our test event go to the automation created and paste the request into the call data (json) section of the first task from here, you can call an api, run a condition or process the data as you please through the automation you can use the data received from the webhook received into any of the next calls made simply double click on the dynamic fields and select the api name important any changes made to the automation will need to be done in the dev environment once changes are made, you will first have to test the automation and on successful completion then publish to live please note, without publishing to live, the changes will not go into effect few points to note on the json the pathfix user id is the same user id that is sent via the pathfix oauth system this generally is the current users unique id the data section of the json is the exact data that is sent by google need help? reach out to our support via support\@pathfix com or live chat through your pathfix dashboard