4

Anyone with dialogflow experience? I wanna create a bot asking many questions with choices. But the no. Of questions that are needed to be asked depend upon a certain variable (eg if X=5, ask 5 questions; x=10 ask 10 questions)

How can one implement such thing in their sdk?

Comments
  • 1
    Create two different intents, one with 5 questions and another with 10. Then based on the value of x, activate one the two intents.
  • 0
    @samarthagarwal but that's where the problem starts.

    1) I wanted to let this be completely random, i.e user should give me a no. as 'reply' , like he could say any no. between 1-20 and based on that my bot will ask questions.

    2) although now when i see it, it feels that your suggestion is feasible and i no longer need (1) but here is another thing: How to make questions with choices? Acc to docs , we will have intent for each question and answer, linked by contexts? in that manner, every intent is a question and every intent is a response and just to ask 5 questions with choices, i have to write almost 15 intents?!!?

    Is there any better way than this?I have imlemented the complete logic in python and android, but integrating this game to dialogflow is taking the life out of me 😢😢😢😢😢
  • 0
    📌 Subscribing to the comments
  • 0
    I am not sure but I don't think DialogFlow is the solution to your problem. It is used to extract useful information from Natural Language.
    You can create an an intent that will only receive answers and extract meaningful info and then forward it to your web hook. You will process the rest at your web server.
    You will send questions to the app directly to your app based on the value the user selects.
    I am not sure if I am understanding it right.
  • 0
    @samarthagarwal I guess after putting hours of Google-ing and tutorials, i have lost the battle.

    Basically I want to get into Ml/Ai and was recently looking for something simple to get started. I made a trivia game-bot("super jarvis") on assistant . Kinda liked its working, so thought of expanding the game by adding some randomness in it.

    What i wanted to try was something like this : user starts talking to my bot with the welcome intent and wheb he begins to "play", the Ai generates a secret number x (suppose 45) between 0,100. User then continuously tries to guess its value and AI responds by replying weather its lower or higher..

    The other thing my Ai would had used was multiple choices.Think of it like a same trivia game i developed in action sdk
  • 0
    Ps :if @samanth or anyone trying these ideas, do share your knowledge on how you achieved it. Would be great for community
  • 0
    You can do that random number game without AI. DialogFlow is a bot engine but it is basically used to collect inputs from the user and give those inputs to you for further processing.
  • 0
    @samarthagarwal thanks . Now as i see it, my complete objective was wrong 😅 . I thought we could use assistant as a virtual code executer kind of thing, which could start running a code(the game logic) when we say some specific key words and its usual small talks and replies to other voices. And yes i had madd this guess the no. game 3 yrs ago...
    Thought it would make a unique game out of those spreadsheet based gamebots

    Would be miraculous if Ai had such capabilities
Add Comment