Skip to main content

I am creating a multi step zap that looks for a new image file in a Google folder and automates that to a Instagram Posting (business account)

 

The google file trigger passes test. The issue I am having now is the Webhook. I get an error message. I have included some screen shots. 

 

I have not gotten to the ChatGPT part of the zap.

 

I am using Google Cloud Vision’s API to analyze the image for posting. 

This post has been edited by a moderator to remove potentially sensitive information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

Hi ​@dcurrycorcoran,

 

Welcome to the Community.

 

It looks like you're having trouble setting up a webhook in Zapier. To troubleshoot, check that the webhook URL is correct, use the appropriate HTTP method (GET, POST, etc.), ensure the data payload is formatted correctly (usually JSON), and verify that any required headers (like authorization) are included. You can also test the webhook separately to ensure your Google Cloud Vision API is set up correctly, including the API key.

 

We're looking forward to hearing from you soon.
 


I have been trouble shooting this all night. I understand that things aren’t set up correctly. I don’t know how to fix without some specific help as to why it’s set up wrong. 


Any recommendations for me to check or documentation


Hi there ​@dcurrycorcoran👋

I’m so sorry to hear you’ve been working on this all night—I’d be happy to lend a hand with this!

It looks like there’s a download link for the file in that URL field, instead of the API endpoint it needs to send that POST request to, so that might be the issue. 🤔 I’ve not used the Google Cloud Vision API myself but I had a quick look at their API documentation and it looks like their projects.images.annotate endpoint might be the one you’d need to reference in that URL field. 

The contents of the Data field are cut off in the screenshots but it seems like I can see a private key referenced there so it seems like you might be including authentication details in that section? If so, that might also be causing issues. As you’d need to include authentication details within the Headers section instead of that Data field. I’d recommend checking out our Send webhooks in Zaps for more details on how to set up a webhook request in a Zap.

Hope that helps to get you pointed in the right direction. If you run into any further issues or questions just let us know! 🙂


Hi ​@dcurrycorcoran 

What is the link to the API endpoint documentation you are referencing to configure the API request? (url)

NOTE: You likely do not need Zap step 2, since the same data points should be returned from Zap step 1.


Thanks for the assistance. I did take out zap step 2. Here are some additional photos. 

 

This includes the link to the URL without the API key. I think the issue is the Cloud Vision API not detecting the image in the file. I am new to Google Cloud APIs. 

 

This zap might be above my current skill level but I keep trying. I have tried different URL for the Data URL including: 

  • File URL
  • Web Content Link
  • Export Link
  • Direct Download Link

 


@dcurrycorcoran 

This is the link to the Google Cloud Vision API endpoint documentation: https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate

 

For Zap step 2, the screenshots do not show all of the configured JSON.

 

For Zap step 2, in the Data field, you need to remap the variable from Zap step 1.

 


Thanks for the assistance. I think this zap may be a bit above my expertise to fix - but I’ll keep trying. 
 

appreciate all the feedback


Is there another app that might analyze the image for chat got rather than Google Cloud Vision that I could chose


@dcurrycorcoran 

Zap apps can be searched here: https://zapier.com/apps

AI Category: https://zapier.com/apps/categories/artificial-intelligence

Each Zap app has a profile page that lists the available triggers/actions and help links.

 

Zap action: ChatGPT - Analyze Image Content with Vision

 


With your feedback I took a step back and have things working. 

 

One new issue remains. When I now take the action step to add in instagram, I get an error message that says I don’t have a professional instagram account. I do have this as a connected business account in zapier. 

 


@dcurrycorcoran 

Help links for using these Zap app:

 


Thanks. Yeah I have made sure all this is correct. I went and put in a support ticket. 

 

Thanks


It sounds like you're working on a multi-step Zap where a new image file in a Google Drive folder triggers an Instagram post, and you're encountering an issue with the Webhook step.

Here are a few quick suggestions to troubleshoot the error:

  1. Check Webhook URL: Ensure the Webhook URL you're using is correct. If you're sending the request to an API, verify that the endpoint is properly configured to accept the data (especially the image).

  2. Check Data Format: The error might be caused by how the data is being sent in the Webhook. Double-check that you're formatting the image file and any other required fields correctly (e.g., URL, image type, captions).

  3. API Requirements: If you're posting to Instagram, make sure you're following Instagram's API guidelines for business accounts. Sometimes, Instagram's API has specific requirements for uploading images (such as providing a media URL rather than uploading the image directly).

  4. Debug the Webhook: If possible, use a tool like Postman or an external logging service to inspect the data sent through the Webhook. This can help pinpoint what might be missing or misformatted.


Let me take these one at a time.

 

  1. How would I know. The issue is it’s probably not configured correctly - so  how I get to correctly is the issue that I could use help with. 
     
  2. Done. 
     
  3. I don’t think Instagrams API works like this any longer. I believe it’s been discontinued. But yes I did try and do this.
  4. I am using Zapier because of its no code advertising. I’m not looking to download more tools.

im not trying to be rude but some feedback is like people using ChatGPT to offer recommendations without offering support. 
 

 


Reply