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