The IFTTT Block allows you connect to the Internet Of Things (IoT) to trigger different web services. These services are wide and varied, they range from turning home appliances on and off, to organising your bank accounts. In this example we will edit a google spreadsheet when we create an event in the Logic Maker.
Before using the tutorial you will need to go to the IFTTT website to create an account and log in.
Example: Connecting the Logic Maker to Update a Google Sheet
Creating a Maker Event
A maker event in the IFTTT website allows you to link your "If This" to your "Then That", essentially choosing what inputs will trigger what actions.
- Once logged in to the IFTTT Website, click on your icon in the top right corner of the page. In the menu that opens select the Create option.
- In the page that opens click the "This" in the "If This Then That" text.
- It will prompt you to select a service. Type in webhooks to the search bar and select the Webhooks tile.
- From the triggers select the "Receive a web request" tile. This will allow you to receive triggers from the Logic Maker.
- Give your trigger a name using the Event Name input field. Once you have typed in a name click the "Create trigger" button.
Remember this trigger name, you will be using it in the Logic Maker later on.
- Next click the "That" text.
- In this instance scroll down to find the Google Sheets tile and click on it.
NOTE: If you want to trigger other web services you can choose to click on a different tile.
- You will now be prompted to select the action you want to occur. In this case we are wanting to update a cell in a spreadsheet, so you will click that option.
- In the next page you will have various configurations you change. To keep it simple we will just type in "A1" to the "Which cell" input. After that click the "Create action" button.
- Your maker event is now created.
Finding your IFTTT KEY
In order to trigger the webhook in the Logic Maker you will need to find your key first. Each user will have a unique key, so you will not be able to just copy and paste the key from this article.
- First click the Home menu option from the top navigation bar.
- On your Home page you will see each of the web services you have set up previously. Scroll down to find the "Webhooks" option and click on it.
- In the Webhooks page click the "Documentation" button in the top right corner.
- This is where you find your key. Copy it to use in your logic maker.
Setting up the Logic.
- Insert the IFTTT Sender Block from the logic maker by clicking on it from the Quick Menu.
- Open the properties by clicking the gear icon under the block.
- In the properties panel paste the KEY you copied earlier into the "KEY (Maker Channel)" input.
- Next add a trigger by clicking on the plus button. Type in the trigger name you chose when creating your IFTTT Maker Event. Make sure the names match exactly, otherwise they won't work.
- Once you are finished updating the properties click save.
- Open the IFTTT Logic maker.
- In the Logic Maker connect the following gates as shown below:
PLAY > ACTION
- From the ACTION Gate select the trigger you created.
- Click the Apply Button and click on the PLAY Gate to trigger the action.
Now that you have triggered the webhook through the IFTTT Block, a spreadsheet should be created in your google drive.
If we open this you will see that the cell A1 has been filled with the trigger information.
You can try swapping out the Google Spreadsheet option with any other web application on the IFTTT website to create another project. Another option is to have multiple triggers doing controlling different things.