Introduction
This article explains how the IFTTT Demo sample experience was built and how you can reuse it for your own needs. To access this sample, use the Examples tab of the Experiences panel in Composer.
In each scene of the sample, content is dynamically updated based on the information captured by a Message is received trigger. Multiple instances of this trigger exist, each reflecting a different message raised by the IFTTT integration of a third-party app with Intuiface.
NOTE:
- The Web Triggers API is at the heart of IFTTT's support of Intuiface.
- IFTTT refers to each app/device integration you create with them as an "Applet"
The scenarios within the IFTTT Demo experience
The five scenarios in the Demo illustrate a variety of ways you could use IFTTT to render your Intuiface experiences responsive to changes in third-party applications
To test these scenarios, you'll need to:
- create an IFTTT account.
- turn on one (or more) of the pre-built Applets using the Intuiface service.
- To do this, you'll need to generate an Intuiface credential key. Make sure the key you generate and use has the IFTTT scope checked.
To experiment with this scenario, you must first configure the Send an email to display a message in Intuiface Applet in your IFTTT account.
Next, while in Play Mode and on the Email scene of this sample, send an email to trigger@applet.ifttt.com from the email address you used to create your IFTTT account. The subject and body of the email will be forwarded to your Intuiface experience.
Here's the complete recipe behind this pre-built Applet:
- IFTTT Trigger
- Service: Email
- Trigger: Send IFTTT any email
- IFTTT action
- Service: Intuiface
- Action: Send message
- Credential key: Specify an account by entering your credential key.
- Message: NewEmail. This is the message used in the Message is received trigger within the sample experience that will set the text displayed in the scene.
- Parameter 1: {{Subject}}. Added through the Add ingredient button.
- Parameter 2: {{Body}}. Added through the Add ingredient button.
- Parameter 3: {{BodyHTML}}. Added through the Add ingredient button. This parameter is not used in the sample but could be useful to display HTML content instead of plain text.
Amazon Alexa
To experiment with this scenario, you must first configure the Use Alexa to display the next item in an Intuiface collection Applet on your IFTTT account, as well as the Applet Use Alexa to display the previous item in an Intuiface collection.
Note: You will need an Amazon Alexa device to test this Applet.
While in Play Mode and on the Alexa scene of this sample, say Alexa, trigger next or Alexa, trigger previous to your Alexa device. The collection in the scene will go to next/previous item accordingly.
Here's the complete recipe behind this pre-built Applet:
- IFTTT Trigger
- Service: Amazon Alexa
- Trigger: Say a specific phrase
- What phrase: next (or previous)
- IFTTT action
- Service: Intuiface
- Action: Send message
- Credential key: Specify an account by entering your credential key.
- Message: AlexaCommand. This is the message used in the Message is received trigger within the sample experience that will control the collection in the scene.
- Parameter 1: next or previous. A condition applied to the trigger in Intuiface will determine which action needs to be called on the collection.
Google Photos
To experiment with this scenario, you must first configure the Send photos from a Google Photos album to Intuiface Applet on your IFTTT account.
Note: You will need a Google Photos account to test this Applet. You can use either an Android device with the Google Photos app or use Google Photos website directly.
While in Play Mode and on the Google Photos scene of this sample, add a new photo to the album you specified in the Applet and that image will appear in the scene.
Here's the complete recipe behind this pre-built applet:
- IFTTT Trigger
- Service: Google Photos
- Trigger: New photo uploaded
- Which album: select the album you want to use.
- IFTTT action
- Service: Intuiface
- Action: Send message
- Credential key: Specify an account by entering your credential key.
- Message: NewPhoto. This is the message used in the Message is received trigger within the sample experience that creates a new asset based on the photo URL.
- Parameter 1: {{PhotoUrl}}. Added through the Add ingredient button.
Google Calendar
To experiment with this scenario, you must first configure the 15 minutes before a meeting starts, send a message to Intuiface Applet on your IFTTT account.
Note: You need a Google account with an active calendar to test this Applet.
Create an event in your calendar. Then, while in Play Mode and on the Google Calendar scene of this sample, the information about a meeting will be displayed in the scene 15 minutes before that event starts.
Here's the complete recipe behind this pre-built Applet:
- IFTTT Trigger
- Service: Google Calendar
- Trigger: Any event starts
- Which calendar: select the calendar you want to use.
- Time before the event starts: choose between 0 / 15 / 30 / 45 minutes options.
- IFTTT action
- Service: Intuiface
- Action: Send message
- Credential key: Specify an account by entering your credential key.
- Message: EventReminder. This is the message used in the Message is received trigger within the sample experience that changes the event details on the scene.
- Parameter 1: {{Title}}. Added through the Add ingredient button.
- Parameter 2: {{Starts}}. Added through the Add ingredient button.
- Parameter 3: {{Where}}. Added through the Add ingredient button.
Google Assistant
To experiment with this scenario, you must first configure the Use Google Assistant to find a Wikipedia page and display it in Intuiface Applet on your IFTTT account.
Note: You will need an Android device with the Google Assistant app or a Google Home / Home mini device to test this applet.
While in Play Mode and on the Google Assistant scene of this sample, say "Ok Google" to your device (Android with Google Assistant or Google Home), then say Find the Wikipedia page for ___, specifying your search terms.
Here's the complete recipe behind this pre-built Applet:
- IFTTT Trigger
- Service: Google Assistant
- Trigger: Say a phrase with a text ingredient
- What do you want to say?: Find the Wikipedia page for $.
- Leave all the other parameters to their default values.
- IFTTT action
- Service: Intuiface
- Action: Send message
- Credential key: Specify an account by entering your credential key.
- Message: SearchWikipedia. This is the message used in the Message is received trigger within the sample experience that changes the Wikipedia URL in the Web Browser asset of that scene.
- Parameter 1: {{TextField}}. Added through the Add ingredient button.
Comments
0 comments
Article is closed for comments.