<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[YourFrenchAI]]></title><description><![CDATA[YourFrenchAI]]></description><link>https://yourfrenchai.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 13:56:04 GMT</lastBuildDate><atom:link href="https://yourfrenchai.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[AI Poet Therapist for New Yorkers]]></title><description><![CDATA[A Capstone Journey with GenAI Intensive Course 2025.
Discover how I designed a GenAI-powered chatbot that offers therapeutic conversations and personalized poetry to support New Yorkers facing mental health challenges. Built as part of the 2025 GenAI...]]></description><link>https://yourfrenchai.hashnode.dev/ai-poet-therapist-for-new-yorkers</link><guid isPermaLink="true">https://yourfrenchai.hashnode.dev/ai-poet-therapist-for-new-yorkers</guid><dc:creator><![CDATA[Olivier]]></dc:creator><pubDate>Fri, 18 Apr 2025 21:33:58 GMT</pubDate><content:encoded><![CDATA[<p><em>A Capstone Journey with GenAI Intensive Course 2025.</em></p>
<p>Discover how I designed a GenAI-powered chatbot that offers therapeutic conversations and personalized poetry to support New Yorkers facing mental health challenges. Built as part of the 2025 GenAI Intensive Capstone, this project explores how AI can provide free, anonymous, and emotionally resonant support—especially for those underserved by traditional care systems. From RAG-based document understanding to real-time weather grounding and emergency lookups, the prototype blends technical innovation with a human-centered mission.</p>
<p><img src="https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=673,h=415,fit=crop/mp8WqwJ2wMcZE5a4/wireframe-mnlWqg3VvWiZNXqM.png" alt /></p>
<p>Mental health in New York City is in crisis. As a resident and tech enthusiast, I wanted to explore whether Generative AI could play a role in addressing this urgent issue. That curiosity became the foundation for my GenAI Intensive Capstone Project: <strong>The AI Poet Therapist for New Yorkers</strong>—a chatbot designed not just to talk, but to understand, uplift, and support through conversation and poetry.</p>
<p>This blog post shares the story behind the idea, the real-world problems it aims to address, the technology that powers it, the challenges I faced building it, and a glimpse into what the future could hold.</p>
<h2 id="heading-the-real-problem-mental-health-in-nyc"><strong>🌆 The Real Problem: Mental Health in NYC</strong></h2>
<p>New York has always been a city of extremes. Energy. Diversity. Ambition. But behind the bright lights, many New Yorkers are quietly suffering.</p>
<p>Since the COVID-19 pandemic, mental health issues have surged—especially among children, teens, LGBTQ+ communities, and racial minorities. Anxiety, depression, and burnout are common. Many residents lack access to affordable care, and stigma still prevents too many from reaching out for help. Services are often underfunded, overburdened, or simply not designed for the populations who need them most.</p>
<p>As city leaders call for a community-centered, equity-first response, I wondered: <em>Could an AI agent play a supportive role in this ecosystem?</em></p>
<h2 id="heading-how-genai-can-help-ai-companion-that-listens"><strong>🤖 How GenAI Can Help: AI Companion That Listens</strong></h2>
<p>The core idea behind my application is simple but powerful: <strong>create an AI chatbot that anyone in New York can talk to—any time, anywhere, in privacy, without judgment and always free.</strong></p>
<p>Using Generative AI, the chatbot would engage users in therapeutic conversations, offering emotional support and coping tools. More than just a chatbot, it would also:</p>
<ul>
<li><p><strong>Listen actively</strong> and identify signs of distress</p>
</li>
<li><p><strong>Suggest grounding exercises</strong> or mindfulness techniques</p>
</li>
<li><p><strong>Connect users with real emergency contacts</strong>, when needed</p>
</li>
<li><p><strong>Generate support materials (sound, image, poem, song)</strong>, tailored to the person’s emotional state</p>
</li>
<li><p><strong>Support multiple languages</strong> for inclusivity</p>
</li>
<li><p><strong>Offer mobile access</strong>, making it available on-the-go</p>
</li>
</ul>
<p>In essence, I wanted to prototype an AI that feels a little more human. A bit more poetic. And a lot more caring.</p>
<h2 id="heading-the-concept-therapy-meets-creativity"><strong>💡 The Concept: Therapy Meets Creativity</strong></h2>
<p>While the AI agent provides support through dialogue, it also offers a creative twist—at the end of a conversation, it generates a personalized poem based on:</p>
<ul>
<li><p>The user's emotional state</p>
</li>
<li><p>The current weather in NYC</p>
</li>
<li><p>A famous singer associated with the city</p>
</li>
</ul>
<p>Why poetry? Because sometimes, when words fail, art speaks. Art do not need capitalism. And also because making a song is too complicated with my python level.</p>
<p>By combining therapeutic conversation with a lyrical, almost artistic gesture, I hoped to offer not just comfort—but also a spark of joy, a moment of beauty, and a deeper connection with the cultural soul of New York.</p>
<h2 id="heading-the-tech-stack-building-the-prototype"><strong>🛠️ The Tech Stack: Building the Prototype</strong></h2>
<p>The system was designed using <strong>Gemini-Flash-2</strong> from Google for most of the generation tasks. Here's how it all came together:</p>
<h3 id="heading-step-1-understanding-new-yorks-mental-health-landscape"><strong>🧠 Step 1: Understanding New York’s Mental Health Landscape</strong></h3>
<p>I processed a PDF report on mental health in New York using <strong>RAG (Retrieval-Augmented Generation)</strong>. The data was embedded and stored so the chatbot could reference it during conversations—bringing contextual knowledge into every answer.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745011734147/05f5f0ac-a8d7-4b9f-8bae-70fcedd363c6.avif" alt class="image--center mx-auto" /></p>
<h3 id="heading-step-2-connecting-to-the-real-world"><strong>🌤 Step 2: Connecting to the Real World</strong></h3>
<p>To make the experience feel current and relevant, I added <strong>Google Search Grounding</strong> to fetch:</p>
<ul>
<li><p>The current weather in New York</p>
</li>
<li><p>A list of well-known singers currently living in the city</p>
</li>
</ul>
<p>This gave the chatbot a richer, real-time context to work with.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745011767217/ded6425f-6d10-400b-9d4b-3ab68d0ffc3d.avif" alt class="image--center mx-auto" /></p>
<h3 id="heading-step-3-safety-first-emergency-lookup"><strong>🚨 Step 3: Safety First — Emergency Lookup</strong></h3>
<p>Rather than relying on the LLM to guess emergency numbers (and risk hallucination), I built a <strong>small database lookup</strong> function. This guarantees accurate and reliable emergency contacts—critical in high-stakes conversations.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745011789536/47a4a032-bc4e-41a4-a830-68a28f2e50bf.avif" alt class="image--center mx-auto" /></p>
<h3 id="heading-step-4-ai-agent-design-with-langchain-and-langgraph"><strong>🧩 Step 4: AI Agent Design with LangChain and LangGraph</strong></h3>
<p>The system uses <strong>LangGraph</strong> with three nodes:</p>
<ul>
<li><p><strong>Human</strong> – the user interface/input</p>
</li>
<li><p><strong>Chatbot</strong> – the LLM-powered conversational agent</p>
</li>
<li><p><strong>Tool Node</strong> – retrieves emergency contact data</p>
</li>
</ul>
<p>While basic in architecture, this modular design makes the system flexible and ready for future enhancements.</p>
<h2 id="heading-limitations-and-lessons-learned"><strong>⚠️ Limitations (And Lessons Learned)</strong></h2>
<p>As someone without a strong coding background, I faced a few hurdles:</p>
<ul>
<li><p>I couldn't <strong>fine-tune a model</strong> to behave more like a trained therapist. That would have taken deeper ML knowledge and more compute resources.</p>
</li>
<li><p>I wanted to build a <strong>UI</strong> (possibly with Gradio or Streamlit), but I abandoned the attempt midway.</p>
</li>
<li><p>I also tested <strong>text-to-speech</strong> for the poem feature, but the free Python packages I tried weren’t up to the emotional nuance I wanted. It ended up sounding robotic, not poetic.</p>
</li>
</ul>
<p>Despite these setbacks, I learned a lot—from designing LangGraph workflows to embedding documents and grounding outputs with search. More importantly, I proved that a meaningful GenAI prototype doesn’t require perfect code—just a clear purpose and thoughtful execution.</p>
<h2 id="heading-whats-next-dreaming-bigger"><strong>🔮 What’s Next: Dreaming Bigger</strong></h2>
<p>This is just the beginning.</p>
<p>If the technology evolves (and I get better at building things), here’s what I’d love to see in future versions:</p>
<ul>
<li><p><strong>Voice chat support</strong>, so users can speak instead of type</p>
</li>
<li><p><strong>Real-time video analysis</strong>, where the AI can interpret facial expressions and emotion</p>
</li>
<li><p><strong>An AI avatar</strong>, for a more human, expressive interaction</p>
</li>
<li><p><strong>Fine-tuned models</strong>, trained on therapist-like dialogues with cultural sensitivity for New Yorkers</p>
</li>
<li><p><strong>Offline functionality</strong>, so access isn’t dependent on stable internet</p>
</li>
</ul>
<p>And maybe—just maybe—it becomes more than a prototype. But always free for sure.</p>
<h2 id="heading-final-words"><strong>🗽 Final Words</strong></h2>
<p>I didn’t build a perfect app. I didn’t even build a full one. But I built something that matters.</p>
<p>The AI Poet Therapist is a small gesture toward a big challenge—mental health support that’s inclusive, accessible, and a little more human. For all the noise in New York, sometimes what someone really needs is someone—or something—that listens.</p>
<p>Thanks to the GenAI Intensive Course for the inspiration, the guidance, and the opportunity to turn this idea into a tangible, working system. Even in its early form, it showed me what’s possible when technology meets empathy.</p>
<p><strong><em>Want to know more? Watch the video with a demo of the chatbot:</em></strong></p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://youtu.be/yIk9Nxp3esE?list=TLGGPenWbzo0Cq0xODA0MjAyNQ">https://youtu.be/yIk9Nxp3esE?list=TLGGPenWbzo0Cq0xODA0MjAyNQ</a></div>
]]></content:encoded></item></channel></rss>