Variable Troubleshooting
# 🤝help
l
Hi, I am creating a Q&A Loop where customers can ask questions and an AI can put together based on the knowledge base. Here is how I structured. - In the input capture, I put asked to store the result in Variable "@workflow.A" - In the following AI task, I put the following: Transcript: {{conversation.SummaryAgent.transcript}} Last User Message: {{event.preview}} User Question: @workflow.A Knowledge Bot Answer: {{turn.KnowledgeAgent.answer}} I have the AI Task Output stored in variable "@workflow.B" - In the "Send Message to Chatbot User," I am asking the bot to print out the variable "@Workflow.B" Problem: When a user goes through a loop of quetsions, it seems like AI is keep building the answer to a new question combined with its previous answer. For example: Loop 1: Qs: How old are you? Ans: I am 21. Loop 2: Qs: What is your favourite color? Ans: I am 21. My favourite color is Red. Loop 3: Qs: What is your favourite food? Ans: I am 21. My favourite color is Red. My favourite food is protein shakes. How can I "reset" the variable each time the loop goes around so that there's a fresh answer to a new question? https://cdn.discordapp.com/attachments/1241091050379022377/1241091050538533056/Screenshot_2024-05-17_at_11.07.02_AM.png?ex=6648ef9c&is=66479e1c&hm=083d3eaf7aa86a666b6cc7839835180ff5293b82d96fafe01aad3d0bb8eba23f&
3 Views