Skip to main content

I'm encountering a persistent error when trying to use Zapier's Webhooks/HTTP action to send data to the OpenAI Chat Completions API. Despite including the 'model' parameter in my JSON payload, I consistently receive the error: "You must provide a model parameter." My Zap setup is as follows:

* Trigger: Notion "New Database Item"

* Action: Webhooks by Zapier "POST" (or HTTP by Zapier "POST")

* OpenAI API URL: `https://api.openai.com/v1/chat/completions`

* Payload Type: Json * Wrap Request In Array: No

*Content-Type: application/json

*Authorization: Bearer sk-proj-REDACTED_API_KEY

 

Here's a simplified version of the JSON I'm sending:

```json { "model": "gpt-3.5-turbo", "messages": { "role": "user", "content": "Test message" } ] } (Failure 3.jpg)

 

I have already tried the following troubleshooting steps:

  • Verified the OpenAI API key (multiple times, including generating a new key and carefully copying/pasting it).
  • Double-checked the URL for typos and spacing.
  • Ensured the 'Payload Type' is set to 'Json' and 'Wrap Request In Array' is set to 'No'.
  • Simplified the JSON payload to the absolute minimum (as shown above).
  • Tested with both 'gpt-4' and 'gpt-3.5-turbo' models.
  • Created a brand new, very simple Zap to isolate any configuration issues in my original Zap.
  • Checked Zapier's status page for any reported outages.
  • Confirmed the correct case and spacing for header keys and values.

My specific questions are:

  • Has anyone else encountered this persistent "you must provide a model parameter" error, even with a valid API key and simple JSON?
  • Are there any known quirks or specific settings in Zapier that might be interfering with the OpenAI API integration?
  • Could my Zapier Pro Trial subscription be limiting my ability to use the OpenAI API in this way?
  • Based on the information I've provided, what is the most likely cause of this issue, and what further steps can I take?

I have attached screenshots of my Zapier configuration and the error messages I'm receiving (Failure 1.jpg, Failure 2.jpg, Failure 3.jpg, Screenshot 2025-05-18 120645.jpg, step 2 .jpg).

Thank you in advance for any assistance! I'm happy to provide any additional information or screenshots as needed.

Hi ​@jaes 

Try using this Zap action: Webhooks - Custom Request

  • Method: POST

 

Have you tried using this Zap app: ChatGPT / OpenAI

https://zapier.com/apps/chatgpt/integrations#triggers-and-actions