Table of Contents

Add a song to a Spotify playlist with IFTTT

Alexander Gao Updated by Alexander Gao

For landbot (web)

Trigger IFTTT with Trigger automation block

Prepare Landbot:
  1. Firstly, we have to make a little flow for collect information, to collect song title, artist name.

The information that we collect, will be stored in variables, that we will send to IFTTT. As in the example below, we are storing the name input in the variable @name.

Inside of Multi-question block we set 2 text type questions:

First for the song title, below the Help text enter the information you want to collect:

The other one for the artist name:

Also in this step you can set 2 text blocks to ask the title and the artist.
  1. Then let's set a Set variable block, to set value1 as song title:

  1. Then set another Set variable, to set value2 as singer name:

  1. Now let's set Trigger automation:

Create IFTTT trigger:
  1. After set a Trigger automation block, let's open IFTTT:

  1. We need to do is click on Create:

  1. Then press Add:

  1. Let's search for Webhooks and press it:

  1. It appears only one option, which is also what we need, let's click on it:

  1. Then this screen will display:
  2. Press Connect:
  1. Here comes this screen:
  2. Let's give it an Event Name:

  1. Done, now we click on Create trigger:

Set action

  1. After we create trigger, it displays this page:

  1. Let's click on button Add in Then That:

  1. In choose a service, we choose Spotify:

  1. Scroll down, then we click on Add track to a playlist:

  1. Here comes this page:

  1. No doubts, we should click on Connect:

Complete action fields

  1. After we connect the trigger, and login Spotify account, we should set the conditions to search:

  1. Then click on Create action:

  1. Now it displays this screen:

  1. Press Continue:

  1. Then let's review and finish it:

  1. After confirm everything, scroll down and click finish:

Where can I find the API key and documentation?

  1. When we finish our applet, we wonder how do we use the API key on Landbot Webhooks? Now let's continue with this page.

  1. Press the icon of Webhook, we will see there is a button of Documentation at upper right corner, click it:

Set Trigger automation block in Landbot
  1. Now we have found the API key, now let's set the URL:

  1. Then copy the URL, then paste it to Trigger automation block:

  1. Then scroll down and go to Set data (variables) to be sent section, where you can see, we are setting values to the Landbot variables:

  1. And click on Test webhook trigger button:

  1. If you scroll down, you will see the response from IFTTT:

  1. As long as the status code is 200, means our request is successfully sent.

Review The Result
  1. Now let's have a look at our Spotify, we have found the new list with the name we set, open it, it contains the song we sent, so the Trigger and action of IFTTT is done!

for Whatsapp

This block behaves exactly the same way as in the landbot (web) version.

for Messenger

This block behaves exactly the same way as in the landbot (web) version.

How did we do?

IFTTT trigger

Contact