I am planning to integrate ChatGPT with Yellow AI Bot where there are a lot of students who need help in terms of learning so I am planning to help them with the bot.
So, I am planning to integrate the bot and when I use the API node. I am getting this as response.
Now, I am planning to get the choices[0].text but I am not able to fetch the response and I have tried almost everything reading the documentation so can I please get the help on this.
If you’re using a function to pull out the data - standard JS format of response.choices[0].text should work.
If you’re trying to parse and fetch this data directly after the API call from within the bot flow (without a function) — then you can use the format {{{variables.apiResponse.choices.0.text}}}
within the bot flow, you can’t parse using choices[0] — it has to be choices.0
Hey @gaurav I have cross-checked it once. There is some integration issue with the chat GPT.
Try re-connect it again and check the details once properly.
Hey @gaurav go to sandbox over there I have created a dummy data table in DB over there you can see that GPT is throwing 4xx or 5xx errors I’m storing it over there. Have a look over there you will be able to understand from there.