Creating a Music suggesting Chatbot: make google assistant suggest music

Omkar Amrit Surve
Voice Tech Podcast
Published in
3 min readMar 17, 2020

In this project we are going to use DialogFlow API previously known as API.ai owned by Google.

Our Chatbot will be deployed to telegram and also to Google Assistant.

Steps:

1: Create new Agent

Fig 1: Create new Agent

2: Create new Intent

Fig 2: Create new Intent

3: Add training phrases

Fig 3: Add training phrases

4: Add Default text responses

Fig 4: Add Default text responses

5: Add Google Assistant & Telegram. Turn on default responses.

Fig 5: Add Google Assistant & Telegram. Turn on default responses.

6: Add Simple Response first to add browse carousel card

Fig 6: Add Simple Response first to add browse carousel card

7: Add browse carousel card and fill all the fields.

Fig 7: Add browse carousel card and fill all the fields.

8: Save to train agent.

Fig 8: Save to train agent.

9: On integrations turn on telegram

Fig 9: On integrations turn on telegram

10: Create New Bot on telegram using BotFather

10: Create New Bot on telegram using BotFather

11: Choose Name and get Token key.

Fig 11: Choose Name and get Token key.

12: Paste token in integrations and start

Fig 12: Paste token in integrations and start

13: Choose Intents for Google Assistant

Fig 13: Choose Intents for Google Assistant

14: In google console set invocation phrase

Fig 14: In google console set invocation phrase

Result:

Telegram On Windows:

15: Starting bot

Fig 15: Starting bot

16: For input as “Jazz”

Fig 16: For input as “Jazz”

17: For input as“pop list”

Fig 17: For input as “pop list”

18: For country genre

Fig 18: For country genre

19: For artist “Taylor Swift” and “Ed Sheeran”

Build better voice apps. Get more articles & interviews from voice technology experts at voicetechpodcast.com

Google Assistant On Android:

20: Starting Bot

Fig 20: Starting Bot

21: for “pop”

Fig 21: for “pop”

22: for “ country” Carousel card as output

Fig 22: for “ country” Carousel card as output

23: For Jazz as input

Fig 23: For Jazz as input

Conclusion:

My aim to put together this step by step guide was to help others who want to make their own chatbot/google assistant apps. If you get stuck somewhere comment down and send me your own chatbots/google assistant apps.

Something just for you

--

--

Omkar Amrit Surve
Voice Tech Podcast

Software engineer with interest in Data science, Data Analytics, IOT and blockchain