<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: sb</title>
    <description>The latest articles on Forem by sb (@sbtech24).</description>
    <link>https://forem.com/sbtech24</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1463372%2F5c3916d5-c370-4147-bbfa-247301255f34.jpeg</url>
      <title>Forem: sb</title>
      <link>https://forem.com/sbtech24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sbtech24"/>
    <language>en</language>
    <item>
      <title>🎧 I Built an AI That Recommends Songs Based on Your Mood</title>
      <dc:creator>sb</dc:creator>
      <pubDate>Mon, 03 Nov 2025 20:50:31 +0000</pubDate>
      <link>https://forem.com/sbtech24/i-built-an-ai-that-recommends-songs-based-on-your-mood-3imi</link>
      <guid>https://forem.com/sbtech24/i-built-an-ai-that-recommends-songs-based-on-your-mood-3imi</guid>
      <description>&lt;p&gt;Github Link - &lt;a href="https://github.com/Sbtech24/music-recommender-AI-agent" rel="noopener noreferrer"&gt;https://github.com/Sbtech24/music-recommender-AI-agent&lt;/a&gt;&lt;br&gt;
Ai Agent api deployed on mastra cloud - &lt;a href="https://early-quick-train.mastra.cloud/a2a/agent/musicRecommenderAgent" rel="noopener noreferrer"&gt;https://early-quick-train.mastra.cloud/a2a/agent/musicRecommenderAgent&lt;/a&gt;&lt;br&gt;
Have you ever wanted a bot that just gets how you feel and recommends the perfect music for your mood? That’s exactly what I recently built — a Music Recommender Bot powered by Mastra and Telex.&lt;/p&gt;

&lt;p&gt;It’s a simple idea: you tell the bot how you’re feeling, and it replies with songs that match your vibe — happy, sad, chill, or energetic. But behind that simplicity is a really interesting use of AI agents, APIs, and automation.&lt;/p&gt;

&lt;p&gt;💡 The Idea&lt;/p&gt;

&lt;p&gt;Music is emotional. I’ve always believed technology should be too. Instead of static playlists, what if an AI could understand your mood and personalize recommendations instantly?&lt;/p&gt;

&lt;p&gt;That thought led me to experiment with Mastra, a framework for creating AI-powered agents, and Telex, a platform that makes it easy to integrate such agents into real-world workflows.&lt;/p&gt;

&lt;p&gt;⚙️ The Tools I Used&lt;/p&gt;

&lt;p&gt;Mastra — to build and deploy my AI agent.&lt;/p&gt;

&lt;p&gt;Telex — to connect the agent so anyone can talk to it.&lt;/p&gt;

&lt;p&gt;Music API — to fetch real song data based on mood keywords.&lt;/p&gt;

&lt;p&gt;TypeScript — to handle the logic cleanly and reliably.&lt;/p&gt;

&lt;p&gt;🧠 How It Works&lt;/p&gt;

&lt;p&gt;The bot starts by asking, “How are you feeling today?”&lt;/p&gt;

&lt;p&gt;Once you reply (for example, “I feel happy”), it fetches songs that match your mood and sends them back as recommendations — complete with song titles and links.&lt;/p&gt;

&lt;p&gt;The best part? You can talk to it naturally. You don’t need to type “search happy songs.” Just express your emotions, and the AI figures out what to do next.&lt;/p&gt;

&lt;p&gt;🔌 Integrating with Telex&lt;/p&gt;

&lt;p&gt;After building and deploying the bot on Mastra Cloud, I connected it to Telex using webhooks.&lt;/p&gt;

&lt;p&gt;That connection allows the bot to handle real-time messages, process moods, and respond with curated song lists — all through Telex’s A2A (App-to-App) communication system.&lt;/p&gt;

&lt;p&gt;Once integrated, the bot becomes part of a larger automation ecosystem where it can be triggered, combined, or extended easily.&lt;/p&gt;

&lt;p&gt;🪄 The Result&lt;/p&gt;

&lt;p&gt;When I message the bot saying “I’m feeling down today,” it responds with:&lt;/p&gt;

&lt;p&gt;“I’ve got some songs that might lift your mood — here are a few you’ll enjoy 🎶”&lt;/p&gt;

&lt;p&gt;And then it lists cheerful tracks pulled from the music API.&lt;/p&gt;

&lt;p&gt;It’s a small but powerful experience — one that blends AI, empathy, and technology beautifully.&lt;/p&gt;

&lt;p&gt;🚀 What I Learned&lt;/p&gt;

&lt;p&gt;This project taught me how flexible and powerful Mastra agents can be, especially when combined with Telex.&lt;/p&gt;

&lt;p&gt;I also learned a lot about how structured communication (like JSON-RPC) powers integrations behind the scenes. It’s fascinating to see how a few lines of configuration can connect entire systems.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>showdev</category>
      <category>api</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
