> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 🎧 Spotify Integration with Lyzr

With **Spotify** integration, Lyzr enables your AI agents to control music playback, manage playlists, and interact with users’ listening preferences—perfect for entertainment, mood tracking, and contextual personalization.

***

## ✨ Key Features

* Play, pause, skip, or resume tracks.
* Access user playlists and liked songs.
* Search for songs, artists, and genres.
* Create or update playlists dynamically.

***

## 💼 Example Use Cases

### 1. Mood-based Playlist Generator

Create or curate playlists based on sentiment detected from conversation.

> **Prompt**: “I’m feeling low today.”\
> **Agent**: “Here’s a calming playlist to lift your mood 🎵”

### 2. Context-aware DJ Bot

An AI DJ that picks songs based on time of day, weather, or your work mode.

> **Workflow**: Lyzr Agent → Weather/Time API → Spotify playlist update

### 3. Party Mode Playlist Agent

Let users add songs to a shared playlist using natural commands in a group chat.

> “Add ‘Levitating by Dua Lipa’ to my weekend party playlist.”

***

## 🔑 Permissions Required

* User-read-private
* User-library-read
* Streaming & Playback controls
* Playlist-modify-public/private

***

## 🛠 How to Set Up

1. Navigate to **Tools > Add Spotify Integration**.
2. Authenticate with your Spotify account (OAuth flow).
3. Grant read/write access to playlists and playback.
4. Test with:
   > “Play my morning productivity playlist now.”

***

Spotify + Lyzr = smarter, more personalized audio experiences.
