Skip to main content

Ask AI: Configure API HTTP Request for Webhook


Troy Tessalone
Forum|alt.badge.img+14

Ask AI: Configure API HTTP Request for Webhook

 

ABOUT

Use AI to help configure an API HTTP Request for a Webhook Zap step.

 

APPS

  1. ChatGPT
    1. by OpenAI
    2. https://chat.openai.com
  2. Webhooks by Zapier
    1. Methods: GET, POST, PUT, PATCH, DELETE
    2. https://zapier.com/apps/webhook/help

 

PROMPT

Write the API HTTP request for [XXX]

 

EXAMPLE

 

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Just to piggyback off this, I’ve found that the text-davinci-003 model does an excellent job of dynamically writing JSON using variables from a previous Zap step. We haven’t stumbled into a failure yet and it’s consistent enough to rely on in a production environment.

As an example, the prompt below provides OpenAI with an example JSON snippet and tells it where to replace placeholder text. In the example below, I’m providing OpenAI with a JSON snippet that includes 2 child arrays. When there are a different number of child arrays presented on any given Zap run, OpenAI correctly accounts for the structural changes in the output JSON.

This is extremely helpful in terms of reducing or eliminating the need to account for different variations of code. It’s allowed us to work around limitations in several native Zapier integrations for apps where custom webhook requests do a better job.

 

 


Troy Tessalone
Forum|alt.badge.img+14
  • Author
  • Zapier Expert
  • 30738 replies
  • February 8, 2023

@ChrisBrock 

Thanks for sharing!