KB response in var is empty
# 🤝help
a
So I wanna pass the KB response to my AI task, to update the response slightly. And it can randomly bring EMPTY VAR {{turn.KnowledgeAgent.answer}} or {{event.state.agentVariables.KnowledgeAgent.turn.answer}}, altho in logs and in JSON we see that the answer was provided by KB and these VARs should contain data. The same happened to me many times when I wanted to use {{event.payload.text}} or {{event.preview}}. Can anyone explain what is happening? Testing for 2 days in a row now and it is completely random.

https://cdn.discordapp.com/attachments/1129507684983504988/1129507685579104398/Botpress_KB_var_issue.png

https://cdn.discordapp.com/attachments/1129507684983504988/1129507685860130966/Botpress_KB_var_issue_2.PNG