AI Quiz Chatbot
# 🤝help
s
Hey guys, I have a quick question. I've built a quiz that asks the user 64 multiple choice questions and then scores their results at the end. I'm now trying to see if I can get the chatbot to tell the user if their answer was correct or incorrect after the answer is provided by the user. My first thought was to use an AI Task and then "Text" card. Would this be the best way? I've attached a photo of what I've attempted but I can't seem to get this working. It's not reocgnising what's correct versus incorrect. Any suggestions? https://cdn.discordapp.com/attachments/1243487889116102737/1243487889371828224/Screenshot_2024-05-24_185429.png?ex=6651a7d7&is=66505657&hm=093bec50f4d03a56943ac8a8b17e3eabb63fbc201e1482ea5a83f69d134c7cda&
e
I think you should store the answers In a variable. Use Ai task: Use a well structured guide to really make this work. Eg. Say the users answers are stored in Q1, Q2 etc. I would use this in the input data, tell the bot use this information and compare it to my answers variable answers to see if the user choices are correct. Then store the answers in QResults. Using a text card: Here are your results, @QResults, using a personality to really make it more appealing. Something along this way i would go.
s
Thanks @echoing-air-24142 , this makes sense. The thing I can't figure out is what I should put in the AI Task Input field?
f
Hey there, The input field can be used to add variables like the latest input from the user or your variable
workflow.Q1
You are saying that the correct answer is the 2nd option. 2nd option of what. You should include the options some where.
Its pretty simple. Its purpose is to show you the general structure.
s
Got it! Yep this makes perfect sense, thank you @fresh-fireman-491 , again, really appreciate it mate 🙂
f
You are very welcome!
51 Views