Splitting Webhooks like a Pro!
Webhooks are great right? They let you pass information where you need them and then you can use them when you need to use them. Sounds perfect! There can come a time however when you have a webhook built into a script which you want to be able to do multiple different things. Multiple different things with the same webhook becomes difficult if you are not passing a lot of data.
This problem occurred to me. I have a python script which when executed passed a webhook to a URL after every loop through. The webhook will then pass a URL which I then want to search in a CRM system and change the stage of a deal. The issue is, some of the URLs are in the first stage and some in the 2nd and 3rd.. etc. How does one solve this?
With a master hook that is how! The python script will pass the data to one webhook. This will then go into zapier and that is where the magic happens;
- Webhook arrives (trigger in Zapier)
- find the URL in the CRM to find the deal
- with this found, you can see what stage that deal is. Each stage has an ID
- Create 4 fresh webhook zaps and note the URL of the webhooks
- Create a google sheet with the 4 webhook URLs, in the same row, add the id of each stage
- In the master hook zap, add a stage to search this google sheet for the stage id.
- Finally push a webhook out and build the url with <webhook url>+<google sheet info>+<url data in step 1>
- Hey presto, you have successfully filtered the webhooks to where they need to go.
What can I do now?
Now that you have each of these webhooks receiving based on the master hook zap - you can build the zaps you need for each. The Stage 1 zap can now push the deal to stage 2 and mark an activity as done. The stage 2 zap can now push the deal to stage 3 and mark an activity as done etc etc.
This is a fairly powerful workflow as it let's you create a bunch of custom actions based off a single webhook. It takes a bit of time and patience to set up correctly and for a noob like me, dealing with webhooks is something completely new but I am starting to realize the potential now.
This webhook filter is the end of a really killer workflow we have just been creating. I'll be sharing more information about it shortly and I apologize for mention python scripts in this. I try to do things with no code and of course no worries but sometimes, just sometimes you need a little bit of magic! Until next time.