-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need a help for creating a mock test bot with timer using react chatbotify #274
Comments
Hey @ankitaivd! 😊 For your case, you'll want to use the Specifically, you want to specify |
I want to create a mock test with react-chatbotify . this mock-test has timer per question, if the timer is over then next question will show. |
This is a minimal example of the flow for your use case:
You can extend to more questions from this 😊 |
if, I want add correct answer in a mocktest..Like this are mcq questions so the flow. How i can create dynamic unlimited question flow ? Also, I need audio input option for user input so, i use |
A little hard to read without formatting but if I'm understanding correctly, this is probably what you want (I left comments where you should fill in your own logic):
Creation of dynamic unlimited question flow still requires questions to come from somewhere. Are you intending to pull questions from some backend service? If so, you can look here for how to call an API: https://react-chatbotify.com/docs/examples/smart_conversation If you're looking to connect with a LLM instead, you can look here: https://react-chatbotify.com/docs/examples/llm_conversation For audio, you can look over here: https://react-chatbotify.com/docs/api/settings#audio You may also find this helpful: https://react-chatbotify.com/docs/api/params |
thank you, but i am using api calling . but i want design flows like
}; here question_options call the api which will return a question array and this question array (where every question has a timer and correct answer) will showing in a loop like start: { |
Hey @ankitaivd, you probably want to loop
Perhaps you can call your endpoint to fetch questions outside of the flow, assuming it always returns a finite set of dynamic questions. No point calling the endpoint each time. Though I'll be wary of including answers directly inside the return result, and consider validating answer server-side instead but that's not very relevant for the issue here. |
I need a help for creating a mock test bot with timer using react chatbotify. I am using a set of question with options and correct answer and timer.
The text was updated successfully, but these errors were encountered: