"IFTTT Demo" Sample

Table of Contents

    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 "Marketplace" tab of the Experiences panel in Composer or Player.

    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 to reflect 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:

    Email

    To experiment with this scenario, you must first configure the Send an email to display a message in IntuiFace Applet in your IFTTT account.

    IFTTT_Email.png

    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.

    IFTTT_Alexa.png

    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.

    IFTTT_Google_Photos.png

    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 create 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 will need a Google account with an active calendar to test this Applet.

    IFTTT-Calendar.png

    Create an event in your calendar. Then, while in Play Mode and on the Google Calendar scene of this sample, the information of 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 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.

    IFTTT_Google_Assistant.png

    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.

    More examples

    Want to do more with IFTTT & IntuiFace? Share your thoughts, ideas, tests, and successes in the Web Trigger Examples category of our [User Community]((http://community.intuilab.com).