Hey there.

Welcome to my blog. I document my adventures in startups, workflows, automations and whatever else. Stick around if you wanna see how a non techie, tries to be technical!

Peace out!

Splitting Webhooks like a Pro!

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? 

 

Screenshot 2018-04-24 00.11.51.png

 

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;

  1. Webhook arrives (trigger in Zapier)
  2. find the URL in the CRM to find the deal
  3. with this found, you can see what stage that deal is. Each stage has an ID
  4. Create 4 fresh webhook zaps and note the URL of the webhooks
  5. Create a google sheet with the 4 webhook URLs, in the same row, add the id of each stage
  6. In the master hook zap, add a stage to search this google sheet for the stage id. 
  7. Finally push a webhook out and build the url with <webhook url>+<google sheet info>+<url data in step 1>
  8. 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. 

After spending way too long trying to do a PUT request with Python or javascript or some other nonsense, I even found that you can do this with a webhook directly from Zapier! That was a pretty great non technical achievement to set up. 

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.

Using Webhooks to Create Lists in Slack with Airtable!

Using Webhooks to Create Lists in Slack with Airtable!

Do a Google Search from Slack!

Do a Google Search from Slack!