Works with IFTTT / Google Home

https://youtu.be/qzkTGF6dLaQ

IFTTT is a convenient app that allows you to set various "triggers" and set "what to do" when the trigger occurs.As a trigger, you can set "If you speak this word" on Google Home of your own home.
And you can set a webhook for "what to do".Then you can hit the webhook with "Forward" to run the program in the obniz cloud.

Repository

First is the program.However, this time, instead of the block program prepared for each obniz, save the new block program in your own repository in the cloud.If you save it here, it will be able to be executed automatically from the webhook.

For the process of creating an account on the cloud and registering obniz, see About Account.Based on that, we will create an account and link the obniz you have to the account. When that is done, select New from the repository in the Developer Console, select "Block Program" as the type, give an appropriate file name (this time "test"), and select the program file. make.

Program

Let's program with this new block program.

This program is Let's move the robot
Use the same program as.It's just a program that moves forward when you run it.

Once created, let's run it.It's OK if the robot moves forward properly.

Register for the event

Well, we was able to save it in the repository.
Next, set the event.By setting an event, we can automatically run the program on the cloud from the webhook.

Similarly, press "New" from the event in the developer console.

We named it move.Then, select the WebApp you created earlier to run. This time we chose "test", so I chose it. The trigger was a webhook.

Now create it.

Confirm

Let's try it out!

The created event page has a "Run Test" button. You can execute the event by pressing this.

When you press the button, the program will be executed on the cloud. Did the robot move?

IFTTT settings

Put the IFTTT app on your smartphone and create a new applet.
Select Google Assistant for IF and select a simple phrase.
Set the keyword "go forward" and "let's go" as a reply.

Then select Webhook for THEN.
For the webhook URL, enter the webhook URL of the event created in the obniz cloud.

At this point, you're done! It may take some time for the IFTTT settings to work properly. Let's wait a few minutes.

Try to speak

Let's say "OK Google Go ahead".The robot will move forward with a reply saying "Let's go ahead".

https://youtu.be/qzkTGF6dLaQ