Here you can see how to use Make.com or Integromat with the OpenAI API to generate a JavaScript Code Snippet. To do this, you need to register with OpenAI and create an API key. I can only recommend to go to a paid plan, because then you get fewer times to see that openai is overloaded at the moment. FYI: There is currently no official API to properly query chat.gpt3.