0
Answered

Random music select bot , help please

Michael Joy 7 years ago updated by Praveen Srinivasaiah (Admin) 7 years ago 1

Hello everyone , first time trying to make a bot.. i am using DialogFlow, and what i want to do, is to give users a random song, from a given playlist, when they text to the bot.

Example :

user says : reggae

and bot selects a random link from a text file.


now i am able to make a simple talking bot, but i dont know to make the bot give the user a random link from a file, should this be done trough csv and json scripts?

Any help is appreciated thanks

Answered

Michael,


I suppose an API to fetch a link should work. Here is the link to our guide on API which will help you further. Let me know if you have any questions.

http://forum.onsequel.com/topics/140-how-do-i-use-an-api-node/