No internet connection
  1. Home
  2. Tutorials

How to get push notifications from soundflow using IFTTT

By Nacho @Nacho_Sotelo
    2021-03-11 18:51:23.953Z
    1. Go to https://ifttt.com/ and login or create an account if you don't have one.

    2. Click on “Create” button or go to https://ifttt.com/create

    3. Click on “If This (Add)”

    4. Search for “Webhooks” and click it

    5. Click on “Receive a web request”

    6. Give the Event a name, for this one lets use “soundflowtrigger” and click Create trigger

    7. Now click “Then That (Add)” and search for “Notifications”

    8. Click on “Send a notification from the IFTTT app”

    9. Under Message type whatever you want the push notification to say for this one lets use “Soundflow is done” once you’re done click “Create action”

    10. Click Continue, give your Applet a title and click “Finish”

    11. Now go https://ifttt.com/maker_webhooks and click on “Documentation” In the upper right corner

    12. You need to copy the web address shown there including your key, that key is personal and should not be shared, should look something like this:
      https://maker.ifttt.com/trigger/{event}/with/key/FollowedByYourUniqueKey

    13. Replace {event} with the event name we gave our trigger, in this case “soundflowtrigger”
      So it will look like this:
      https://maker.ifttt.com/trigger/soundflowtrigger/with/key/FollowedByYourUniqueKey

    14. Install the IFTTT iOS or Android app and login, make sure you enable notifications.

    15. Run this script from Soundflow and you should get a push notification on your phone from the IFTTT app saying “Soundflow is done”, remember to replace the url with yours.

    sf.net.httpRequest({
       url: 'https://maker.ifttt.com/trigger/soundflowtrigger/with/key/FollowedByYourUniqueKey' ,
       method: 'POST',   
    });
    
    • 6 replies
    1. Kitch Membery @Kitch2021-06-16 20:27:54.869Z

      Hi @Nacho_Sotelo,

      Thanks for joining me in the SoundFlow Weekly Webinar today :-)

      To answer your question about how to ensure that scripts like this send notifications even if they fail. You can use a try, catch, finally setup;

      Here is simple example

      function main() {
          //Initialize didComplete variable to false,
          let didComplete = false;
      
          try {
      
              //Add your script here in the "try" block.
      
              //If the script is successful in getting to the following line, didComplete will be set to true.
              didComplete = true;
      
          } catch (err) {
              //If something in the "try" block fails the "catch" block will be run and didComplete will be set to false.
              didComplete = false;
      
          } finally {
      
              //The "finally" block will always run even if your script fails. You can then use an if statement to decipher if the script completed.
              if (didComplete === true) {
                  log('Script Succeeded');
              } else {
                  log('Script failed');
              }
          }
      }
      
      main();
      

      I hope that helps :-)
      Rock on!

      1. NNacho @Nacho_Sotelo
          2021-06-16 20:57:05.000Z

          Thank you @Kitch !

          I just implemented this with another applet on IFTTT and its working perfectly, thank you so much

          1. Kitch Membery @Kitch2021-06-16 20:58:05.774Z

            Great to hear, legend!

            Have a great day.
            Rock on

        • A
          In reply toNacho_Sotelo:
          Andrew Sherman @Andrew_Sherman
            2021-07-07 11:29:09.790Z

            This is so useful, thank you Nacho. I implemented this using Integromat, for anyone who uses Integromat instead of IFTTT, and I imagine the process is similar for Zapier etc.

            • Get the Integromat app
            • Set up a webhook in a new Integromat scenario
            • Use Soundflow to trigger HTTP post (see first post above) using your new webhook address.
            1. In reply toNacho_Sotelo:

              Hi @Nacho_Sotelo !

              Great step-by-step tutorial!
              Simply every step was exactly as the website :)

              Do you have any idea how to send values as JSON to IFTTT by using sf.net.httpRequest?

              I noticed you can send a JSON string like this: { "value1" : "", "value2" : "", "value3" : "" } but I'm not sure how to do it in Soundflow.

              Erik

              1. NNacho @Nacho_Sotelo
                  2023-09-25 20:01:44.627Z

                  I'm not sure how to do that or if its possible at all, maybe @Kitch can help :)