Skip to main content
Answer

OpenAI Whisper invalid_request_error

  • February 11, 2024
  • 9 replies
  • 119 views

Forum|alt.badge.img

Hi All

I’m trying to build a Zap that does the following:

  • Via a New Inbound Email, delivers an MP4 file to my Zapier account
  • Creates a transcription via Whisper
  • Uses ChatGPT to turn that transcription into a blog
  • Creates that blog on Google Docs

But I keep getting “invalid_request_error” in stages 2 and 4.

More details:

  • I am definitely connected to Zapier and ChatGPT with the same email account
  • I have a paid subscription to ChatGPT

Here are some screen grabs from stage 2:

 

 

Best answer by Troy Tessalone

@Niels_F 

You have mapped the attachment filename, but that is only a text value, not a file link or a file object.

 

The file object variable to map from Gmail will have: “Exists but not shown”

 

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

9 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • February 11, 2024

Hi @Niels_F 

Help article about how to send files in Zaps: https://zapier.com/help/create/basics/send-files-in-zaps

Check the field description for guidance.

The File field expects a file url or file object, rather than the subject line of the email.

 

 


Forum|alt.badge.img
  • Author
  • Beginner
  • February 16, 2024

thank you, @Troy Tessalone. I’m not quite there yet!

I thought the purpose of the New Inbound Email was to get the MP4 file into Zapier so that it could then be linked up with Whisper. If I click in the *File (required) box, I get the following options:

If my two options (per the link you provided) are to use ‘a file object or certain types of URL links’, I can’t see how I access a file object apart from the listed options (which don’t seem to include this audio file specifically). Is my only option, then, to create a publicly accessible URL link?

Thanks again


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • February 16, 2024

@Niels_F 

The Attachment field is a file object.

NOTE: Multiple files on an email will result in a ZIP file.

 

I recommend using this Zap trigger: Gmail - New Attachment

 


Forum|alt.badge.img
  • Author
  • Beginner
  • February 21, 2024

thank you, @Troy Tessalone. I’ve changed it to Gmail - New Attachment and used a specific file object but I’m still getting the invalid_request_error message:

any ideas?


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • February 21, 2024

@Niels_F

Post updated screenshots with how your Zap step is configured along with the encountered error.

The File field expects a file object or a file url, rather than a string of text that is the file name.

Help article about using files in Zaps: https://zapier.com/help/create/basics/send-files-in-zaps

 


Forum|alt.badge.img
  • Author
  • Beginner
  • February 25, 2024

@Troy Tessalone, here are the updated screenshots. I think I’ve followed the instructions in the article about using files but it’s certainly possible I’m missing something obvious.

Thanks again!

 

 

 

 

 

 

 

 

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • February 26, 2024

@Niels_F 

You have mapped the attachment filename, but that is only a text value, not a file link or a file object.

 

The file object variable to map from Gmail will have: “Exists but not shown”

 


Forum|alt.badge.img
  • Author
  • Beginner
  • February 26, 2024

that worked. Thank you very much for your patience, @Troy Tessalone!


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • February 27, 2024

That’s awesome @Niels_F! Big thanks to Troy for lending a hand here.

If you have any other questions, please don’t hesitate to reach out to the Community. We’re always happy to help! 🤗