Mastering Apps Script Webhook URL for ChatGPT AI Assistants

Published On Tue Feb 11 2025
Mastering Apps Script Webhook URL for ChatGPT AI Assistants

Request for Assistance with Apps Script Webhook URL for Dialogflow ES Fulfillment Webhook with ChatGPT AI Assistants

Hello, I need some help with setting up an Apps Script webhook URL to connect Dialogflow ES Fulfillment Webhook with ChatGPT AI Assistants. From my script testing below, I encountered the following issues:

The script I used failed to connect with OpenAI Assistants on platform.openai.

GPT responded, but the response was not from the Assistants API that I created.

The Real Impact of AI Coding Assistants | by Puffstack | Medium

I have already tried modifying the function to call the Assistants API v2 instead of OpenAI Chat Completions API v1, but it still does not work.

Could you please provide guidance or assistance, Best regards.

About Assistants Usage

Assistants is not a “model” that you can employ. It is a complete endpoint framework requiring multiple calls to set up a conversational thread for a user, to place a message, initiate a run of a thread against an assistant ID, poll for when a status indicates a response is ready.

Webhook service | Dialogflow ES | Google Cloud

If your assistant in Assistants is no more than an “instruction” box, you will basically get the same service by using chat completions with the instructions as your “developer” role message, and selecting the AI model to fulfill a user message input.

There’s a lot of “bad news” in the code sample, like hard-coding the API key, just waiting for it to get leaked.

dialogflow es - Access Dialog flow Context Variables in Vox ...

Powered by Discourse, best viewed with JavaScript enabled.