How to save a default variables for later use?
# 🤝help
b
Is there a way to save the following variables for later use in a table or as an input variable? knowledgeResponse: turn.KnowledgeAgent.answer, knowledgeLocation: turn.KnowledgeAgent.citations
a
Sure, there's a card to insert data into a table

https://cdn.discordapp.com/attachments/1148196593149956208/1148201537861074984/image.png

You can also transfer the value into another variable using a code card:
Copy code
js
workflow.myVar = turn.KnowledgeAgent.answer
If you want to save the answer to something that can be used in multiple flows, you might want to use a session variable in stead of a workflow variable- more info here https://botpress.com/docs/cloud/studio/variables/
4 Views