Actions on Google and Dialogflow DJ - Music Mike let's you listen the music right from Google Assistant.
-
Create project on Actions on Google Console.
-
Choose the Dialogflow option.
-
Click on the gear icon -> Select Export and Import -> Restore from .zip.
-
Restore from the music-mike.zip file in this repo.
-
Clone the repo to your computer.
-
Get into the folder.
-
Install dependencies in functions folder -
npm install
-
Create a Firebase project in the Firebase Console.
-
Init project in the main directory -
firebase init
-
Deploy the fulfillment webhook provided in the functions folder using Google Cloud Functions for Firebase by running
firebase deploy --only functions
-
Copy the Function URL (conversationComponent): https://us-central1-cards-3da0b.cloudfunctions.net/conversationComponent
-
In Dialogflow console select Fulfillment from the left navigation menu. Enable Webhook, set the value of URL to the Function URL from the previous step, then click Save.
-
Select Integrations from the left navigation menu and open the Settings menu for Actions on Google.
-
Click Test.
-
Click View to open the Actions on Google simulator.
-
Type Talk to my test app in the simulator, or say OK Google, talk to my test app to any Actions on Google enabled device signed into your developer account.