Recent searches


No recent searches

ChatGPT API Not working



Posted Mar 20, 2023

Hi, good day, I encounter this error while trying to replicate your "Using AI to summarize conversations in a Support app". May I ask if someone has already experienced this kind of issue may I also ask how did you resolve the issue?


0

7

7 comments

image avatar

Erica Girges

Zendesk Developer Advocacy

Hi Jayvee

It's a hard to determine what exactly might be causing this issue. From what I can see, I would suggest verifying that authentication has been established correctly for your app. Also, I would just double check that the OpenAI API token you're providing upon app installation is valid.

Hope this helps!

0


Thank you for your advice.


We've managed to get it to work once deployed in the Zendesk sandbox.
However, when we try to run it locally, we keep getting error 422 instead.

0


image avatar

Charles Nadeau

Zendesk Documentation Team

Hi JD T,

I notice that you're getting a 401 on a Sunshine Conversation endpoint (api.smooch.io/...). I don't think that endpoint is mentioned in the tutorial.

0


The error 401 is most probably from the other application that we are developing. 

The actual error that we are getting is error 422. do you have any idea about that?
Also, I think it is worth noting that we get error 422 when the app is running locally, and 400 when installed on zendesk. 

The 400 was due to the token limit for the free version of chatGPT, the error 422 we still haven't figured out. It would be helpful if you have any clue because it is counterproductive to have to create a new installer every time we need to check. 

Thank you in advance.

0


image avatar

Erica Girges

Zendesk Developer Advocacy

Unfortunately, there isn't a guide available for using this API with ZAT. 
 
Also when running it locally, did you update the authorization to use a hardcoded token instead of secure settings? If so, you'll also want to remove "secure": true in the manifest.

0


Thank you for the information that was given. We will still try to debug the error and if we ever find a solution I will update it here for future reference. Thank you so much.

0


I had created an example test app with the exact steps of this documentation of Zendesk developer guide, but it stopped working.
Using AI to summarize conversations in a Support app | Zendesk Developer Docs

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post