Question

Post webhook to Google Cloud function via HTTP request

  • 18 January 2022
  • 5 replies
  • 1592 views

Hi all,
I’m experimenting with zapier webhooks and wondering if anyone has successfully done a POST webhook to a google cloud function (http request).

 

Use case is someone submitting a form along with a CSV file via airtable. When the new airtable record is created, zapier webook POST will send a json payload along with the CSV file to my google cloud function URL. The google cloud function has python code that will then manipulate the CSV file. When it is done, the updated CSV file and a confirmation will be sent back to airtable. Thanks.

 

Matt


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Userlevel 7
Badge +14

Hi @MattDeskROM 

Making sure you are aware that Zapier has a Code app that can run Python:

 

Thanks @Troy Tessalone. I should have mentioned that. Yes, I know it’s available, but my understanding is that it’s pretty limited. I thought I read that you couldn’t import any python packages to run code.

 

My goal would be to manipulate data in a more complex way..doing data analysis on it, or using the data to web scrape certain criteria.

 

If that’s possible with Code with Zapier, I’ll take a closer look. Let me know, thanks!

Matt

Userlevel 7
Badge +14

@MattDeskROM

Ok, then yes, you’ll likely need to use the Google Cloud function.

Can you please clarify your question and posts screenshots with how your Zap step is configured for the Webhook POST?

There is a field to send a File.

 

To clarify, my problem is that I don’t think the data from the zap is being processed in my cloud function.

I think my zap is setup correctly, and the cloud function is sending a “Hello World!” response back to zapier when I test it from zapier.


Here’s the screenshot. I blocked out the ending of the HTTP request URL, my email, and the file attachment url.


In addition, here’s the python code for the cloud function. This is from the cloud documentation on how to process a POST request.

https://cloud.google.com/functions/docs/writing/http

I also tried this with ‘Name’ instead of ‘Data’, but that also doesn’t work.

Any thoughts are appreciated. Thanks!

Forgot to tag you in the reply @Troy Tessalone