StackAI - Unsuccessful response retrieval. 'undefi...
# 🤝help
m
This is my situation: my code isn't wrong (9/10), stackai is successfully receiving my user question variable and generating a response. The problem however is no matter what question I ask or have generated by stackai, botpress will fail to retrieve it and will always just post 'undefined' as if that was the stackai response. Any similar experiences? Was it the recent update? Please I need help I've been stumbling over this for literal days. https://cdn.discordapp.com/attachments/1226166767466840196/1226166767823487027/Capture.PNG?ex=6623c7ca&is=661152ca&hm=4205f4cd4cbf7009eb6df85015f83cc6a35c99563719126c16b53a80814e66a0&
f
Hey there, I am not very familiar with Stack AI, but I can see that there is an issue with your code. This part:
Copy code
javascript
const data = {
  "in-0": workflow.question variable,
}
I think that the space shouldn't be there. Maybe it should be a punctuation instead
.
?
g
Id recommend you copying this code, which shouldnt have any error : https://docs.google.com/document/d/1DSeDW0zzXqAQns1kATh0trQ47fcARhVN_SxYTBVG9Ps/edit