https://discord.gg/botpress logo
AI Task not saving result in variables
# 🤝help
w
hi guys!! does anyone else have this problem? in this screenshot specifically i'm trying to save an object to the variable, but this same result happens even with simple string variables. when looking at the logs i get the correct results but they're never accessible, so they're never really saved. has anyone run into this issue before and knows a solution? thank you so much!! https://cdn.discordapp.com/attachments/1462811846783537283/1462811846909362206/image.png?ex=6978c7b2&is=69777632&hm=84a2f81bb46b08d1622dc49e4b4d28d6d14f7990c4c2099893b0ab92fb9b361c& https://cdn.discordapp.com/attachments/1462811846783537283/1462811847509020833/image.png?ex=6978c7b2&is=69777632&hm=68f955e7166b762e6562edcbb78301853c79ea9729298680fef559d02962c753&
for context i'm using AI Generate text for everything (because of this bug) except for this prompt on which i need to save results to an object type variable (which is impossible in AI Generate Text for some reason)
l
So just to make sure this is AI task + saving variable as object
Right?
w
yes!!
as a workaround for the time being i'm using generate text to return the entire object and just parse it myself with custom code
SOLVED - i wasn't parsing the JSON lol my bad
3 Views