How to connect IFTTT with Cloud BOT

What is IFTTT

https://ifttt.com/

IFTTT is a tool to automate your task by connecting one web service or application with another. This kind of integration services is known as iPaaS(integration Platform as a Service).

IFTTT has a large share of iPaaS mainly for personal use, and it enables connections between more than 400 (as of June 2020) web services and applications. It is connectable to Line and famous voice service, Alexa, these days Japanese user is gradually increasing.

In IFTTT, applet is an automated workflow that connects apps and services together, and it is consists of a trigger and an action. The action event will be performed when the trigger event is triggered.

Connection setting in Cloud BOT

It is necessary to enable the external connection of Cloud BOT to connect with IFTTT.

Enable external connection

Login to Cloud BOT and choose Connect on the side menu.

Turn the switch ON of "External Connections".

You can find the BOT list is displayed if you turned on the external connections switch.

Choose your BOT to connect

Next, we are going to choose the BOT to connect.
Turn the switches on of the BOT that you want to connect with external services on the "BOT to connect".

Only the BOTs that have been turned ON will be available in IFTTT.

If you want to make all your new BOT enable to connect, you can turn on the "Automatically enable the connection with new created BOT."

Login to IFTTT

Go to IFTTT website(https://ifttt.com/login) and log into it.

Connect with Cloud BOT

Input "cloud bot" in the search bar at the top of the screen.

Click "Services" tab after the search results appear.

Choose cloud BOT from the search results and click it.

Click "Connect" button on the service integration screen.

Then you will go to Cloud BOT login screen, and login to cloud BOT here.

 (※If you already logged in Cloud BOT, this process will be skipped. )

Read Terms and conditions and the Privacy Policy on the authorization page and click Authorize.

When you see the overview page, you have connected with Cloud BOT successfully.

Now the connection is done and Cloud BOT is available as an Applet.

Create an applet

Use Cloud BOT as a trigger

When a BOT has been done, output the results as a new row in the spreadsheet.

Trigger
Cloud BOT
When the BOT has been done.

Action
Google Sheet
Add execution results as a new row to Google sheet

Set Cloud BOT as a trigger

Click "Create" in the navigation menu at the upper right of the screen.

Click the "+" button on the Applet creation screen, and move to the Trigger selection screen.

Input "cloud bot" in the search bar.

Choose Cloud BOT from the search results.

Choose your trigger.

※Now, the only event Cloud BOT provides is BOT DONE which means BOT has been done.

Select your language and the BOT you want to set as a trigger, and click "Create Trigger" button.

Now you have set Cloud BOT as a trigger successfully.

Set up Google Sheet as an action

Then, set the action. Click the "+" button between word Then and word That.

Next search for actions. For example, we are going to set up "Google Sheets" as an action.

Choose an action. For example, we are going to use "Add row to spreadsheet" as an action.

Set up parameters should be passed to the action.

※Please refer to How to Set Parameters about setting parameters.

Click "Create action"and set your action.

Connect your Applet

Finally, click the "Finish" button and you have created your applet successfully.

How to set parameters

You can set Output data 1~10 in Cloud BOT as Parameters Data1 to Data10.

※As it stands, Output data since Output data 11 can not be directly passed, you need to use JSON format data in OutputJson for getting the above data.

In this case, if you set {{Data1}} in the action page, the "Index" in the Output data in Cloud bot will be passed as a parameter.

※If the output data was a group data, all the values of lines will be combined as a comma-separated data and passed as one parameter.

Use Cloud BOT as an action

Create an applet that will run a specific BOT when a new row was added in a specific spreadsheet.

Trigger
google sheet
Add new product information in a spreadsheet.

Action
Cloud BOT
Run a Product Management BOT.

Set Spreadsheet as a trigger

Click "Create" in the navigation menu at the upper right of the screen.

Click the "+" button on the Applet creation screen, and move to the Trigger selection screen.

Choose a service as your trigger. We are going to use "Google Sheets" as a trigger for this time.

Choose your trigger. We are going to use "New row added to spreadsheet" in this case.

Set up your trigger, and click the "Create trigger" button. In this case, "Add a new row to your target spreadsheet" is the trigger.

You have set your trigger successfully.

Set up Cloud BOT as an action

Then, set the action. Click the "+" button between word Then and word That.

Input “cloud bot” in the search bar.

Choose Cloud BOT from the search results.

Choose your action.

※Now, the only action Cloud BOT provides is Execute BOT which means the execution of a BOT.

Set your language, the BOT you want to use as a trigger, and the parameters, and then click "Create action".

※If the Async function is enabled, you will get a response as soon as the BOT starts running. The response does not include the execution result value of the BOT.



Connect your Applet

Finally, click the "Finish" button and you have created your applet successfully.

How to set parameters

You can set the data passed form trigger as a input data in Cloud BOT

Parameters Data1~Data10 will be used as Input data 1~10.

※As it stands, Data after Input data 11 can not be directly passed, you need to use JSON format data in API parameters for passing the above data.API parameters are the payloads for API Parameters in JSON format. If Data1~10 also have been set in the input form, those values will be overwritten.

※If the input data is group data, you can input those data for each line as comma-separated data.