Skip to content

xatkit-bot-platform/xatkit-spotify-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Xatkit Spotify Platform 🎵 🎸

Created with ❤️ by María Noel Bassagoda, Maria Victoria Armand and Cecilia Guayta Supervised by Daniel Calegari

⚠ This platform is outdated and not actively supported anymore.

Create Xatkit bots to manipulate Spotify playlists

Integrate Spotify

  • Head to Spotify Developer and register (or login to your account in case you already have one)

  • Create a new app in the My Applications section. Under the newly created app config, add the following Redirect URI - https://www.getpostman.com/oauth2/callback

  • We'll use the Authorization Code Flowto obtain the Refresh Token.

    • Open Postman, under a new request, click on the Authorization tab, select OAuth 2.0 and fill in these values:
      • Token Name: can be anything
      • Auth URL: https://accounts.spotify.com/authorize
      • Access Token URL: https://accounts.spotify.com/api/token
      • Client ID:
      • Client Secret:
      • Scope: playlist-read-private playlist-modify-private user-read-playback-state user-read-currently-playing user-read-playback-state user-modify-playback-state
      • Grant Type: Authorization Code
      • Request access token locally: Checked
    • Click on Request Token, go through the OAuth flow, and add the following keys to the bot configuration:
botConfiguration.addProperty("xatkit.spotify.token", <base64 encoded client_id:client_secret>);
botConfiguration.addProperty("xatkit.spotify.refresh_token", <refresh-token>);
botConfiguration.addProperty("xatkit.spotify.username", <spotify-username>);

Actions

Intent Training Sentences Parameter Constraint
List Playlists Can you list me my playlists?
List me my playlists
Wich are my playlists?
Search Artist Search artist name
Can you give me some info about the artist name?
Who is the artist name?
name Mandatory Parameter
Create Playlist Create playlist name
Can you create the playlist name?
Please create the playlist name
name Mandatory Parameter. The playlist
will be stored in the context
Select Playlist Select playlistName
Select playlist playlistName
Can you select the playlist playlistName?
Can you select playlistName?
playlistName Mandatory Parameter The playlist
will be stored in the context
Show Playlist Can you show me the playlist playlistName?
Can you show me playlistName?
playlistName Mandatory Parameter
Search Track Search track name
Can you search the track name?
Can you list me the track name?
name Mandatory Parameter
Add Track By Name Add track trackName
Add trackName
Can you add trackName?
trackName Mandatory Parameter.
You must have created/selected
a playlist in order for this to work
Add Track (after making a search) Add it!
Add it please
Can you add it please?
No Parameter Required. You
should have previously searched a
song which will be stored in the context
List Devices List me my devices
List devices
Can you list me my devices please?
Play Music Play music
Can you turn on the music?
Turn on the music
Play
Turn on the music on device
Play music on device
device Optional Parameter. If no device is
specified it will play on the first one
available. If theres a playlist stored
in the context it will play that one,
if not it will turn on the currently Playing Track
Pause Music Turn off
Turn off the music
Pause music
Pause
Can you pause the music?
Next Track Next
Next track
Following track
Next song
Can you change to the following track?
Previous Track Previous
Previous track
Previous song
Can you change to the previous track?

Demo 🤩

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published