<?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>DEV Community: Rishikesh63</title>
    <description>The latest articles on DEV Community by Rishikesh63 (@rishikesh63).</description>
    <link>https://dev.to/rishikesh63</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%2F1189314%2F2340f39e-d9b9-4e22-8476-8370493aaa26.png</url>
      <title>DEV Community: Rishikesh63</title>
      <link>https://dev.to/rishikesh63</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rishikesh63"/>
    <language>en</language>
    <item>
      <title>Building SOLVE SARTHI: An AI-Powered Assistant with CoAgent</title>
      <dc:creator>Rishikesh63</dc:creator>
      <pubDate>Sat, 18 Jan 2025 08:52:15 +0000</pubDate>
      <link>https://dev.to/rishikesh63/building-solve-sarthi-an-ai-powered-assistant-with-coagent-30ai</link>
      <guid>https://dev.to/rishikesh63/building-solve-sarthi-an-ai-powered-assistant-with-coagent-30ai</guid>
      <description>&lt;p&gt;Discover how SOLVE SARTHI, an intelligent AI-powered assistant, was built using CoAgent. Designed to streamline planning and problem-solving, SOLVE SARTHI helps users create personalized trip plans, study schedules, and even tackle complex coding challenges. This post dives into the development process, challenges faced, and how cutting-edge tools like Copilotkit, Langgraph, and Next.js came together to bring this innovative project to life.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick Demo and Local Setup&lt;/strong&gt;&lt;br&gt;
Here’s a quick demo of how it works and how to set it up locally:&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/YHhGXuErmDA"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Why Did I Build This?&lt;/strong&gt;&lt;br&gt;
Chatbots often lack real-world adaptability, struggling with diverse queries and static setups. I built SOLVE SARTHI to overcome these limitations—an AI assistant that dynamically adapts to user needs, whether it’s planning trips, creating study schedules, or solving coding problems. This project aims to deliver intelligence and versatility, making the assistant work for the user, not the other way around.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How It Came Together&lt;/strong&gt;&lt;br&gt;
I built SOLVE SARTHI using my CoAgents Starter Kit, a foundation for full-stack apps with AI agents. It leverages LangGraph and CopilotKit to simplify development and integration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Curious? Check out the CoAgents Starter Kit&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;a href="https://docs.copilotkit.ai/coagents" rel="noopener noreferrer"&gt;
      docs.copilotkit.ai
    &lt;/a&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;strong&gt;SOLVE SARTHI Repo:-&lt;/strong&gt;&lt;br&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Rishikesh63" rel="noopener noreferrer"&gt;
        Rishikesh63
      &lt;/a&gt; / &lt;a href="https://github.com/Rishikesh63/Plan-Sarthi" rel="noopener noreferrer"&gt;
        Plan-Sarthi
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Plan-Sarthi&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/130288820/403264076-fc39d0e8-ee85-4775-9dbc-7dd22461ba8c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzcxOTA2MzUsIm5iZiI6MTczNzE5MDMzNSwicGF0aCI6Ii8xMzAyODg4MjAvNDAzMjY0MDc2LWZjMzlkMGU4LWVlODUtNDc3NS05ZGJjLTdkZDIyNDYxYmE4Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMTE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDExOFQwODUyMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZTQ1YzI4NWYyMjBlNjhkMDEzODUwY2M3NjQ2Y2NiMzYwNmNiNThjN2Y3ODQzYzFkNWNiNjhmYjY5MzdhMTBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.FsgZrGaOga9zfehV_vRhsHUcL1SDU_nTl_w9UWXr4Zg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fprivate-user-images.githubusercontent.com%2F130288820%2F403264076-fc39d0e8-ee85-4775-9dbc-7dd22461ba8c.png%3Fjwt%3DeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzcxOTA2MzUsIm5iZiI6MTczNzE5MDMzNSwicGF0aCI6Ii8xMzAyODg4MjAvNDAzMjY0MDc2LWZjMzlkMGU4LWVlODUtNDc3NS05ZGJjLTdkZDIyNDYxYmE4Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMTE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDExOFQwODUyMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZTQ1YzI4NWYyMjBlNjhkMDEzODUwY2M3NjQ2Y2NiMzYwNmNiNThjN2Y3ODQzYzFkNWNiNjhmYjY5MzdhMTBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.FsgZrGaOga9zfehV_vRhsHUcL1SDU_nTl_w9UWXr4Zg" alt="Screenshot 2025-01-15 112443"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Project Overview&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;Plan-Sarthi is a robust and efficient application designed to streamline planning and execution. This repository contains both the backend and frontend components to deliver a seamless user experience
Plan-Sarthi functions like a chatbot. When you provide a query, it processes the input and gives an answer based on that query.&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Features&lt;/h2&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Make plans for trips or other activities according to your budget.&lt;/li&gt;
&lt;li&gt;Create study plans tailored to your exams.&lt;/li&gt;
&lt;li&gt;Solve Data Structures and Algorithms (DSA) problems and other coding challenges.&lt;/li&gt;
&lt;li&gt;Works like ChatGPT for answering diverse queries.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Tech Stack&lt;/h2&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://nextjs.org/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/37160b03da247a6a82fbe515a8493711bff81ee9460c41dcc92780d9d8f671a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4e6578742e6a732d3030303f6c6f676f3d6e6578742e6a73266c6f676f436f6c6f723d7768697465" alt="Next.js"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.copilotkit.ai/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/b55aa9e8d3f5c3194a69afb1af4ed2697032469fc9d2e8411ef1af139587b45c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d436f70696c6f746b69742d626c7565" alt="Copilotkit"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/c62f8b98fade1b7e8cf7f8f582ab95af3cbe75fddfe9af52838311999c9489f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d5461696c77696e645f4353532d3338423241433f6c6f676f3d7461696c77696e642d637373266c6f676f436f6c6f723d7768697465" alt="Tailwind CSS"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://groq.com/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/18c9a8d691d397013849e7ad25e4eadce472ca99ea87a77bcf958213c39a878a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d47726f712d6f72616e6765" alt="Groq"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://langchain-ai.github.io/langgraph/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/599708cd2dc65b769f776bdd329b67457e275a893dde151476fc689aabeb2de8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c616e6767726170682d677265656e" alt="Langgraph"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Agent&lt;/h2&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/130288820/403273039-b22e6264-5d86-4feb-ac71-84b86b8f0892.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzcxOTA2MzUsIm5iZiI6MTczNzE5MDMzNSwicGF0aCI6Ii8xMzAyODg4MjAvNDAzMjczMDM5LWIyMmU2MjY0LTVkODYtNGZlYi1hYzcxLTg0Yjg2YjhmMDg5Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMTE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDExOFQwODUyMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05OWEyY2E0MmRjNGI3MmExZjYwMDI3NmFhOWU4MGQxZWFlZWQxNGFkNGI5MmUyNTY3ZGM2ZGU1MTcwMDdlMjdkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UXACdbQm17F9qxSDPVFHG8bR1HecNxnge5H2w0lsOzk"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fprivate-user-images.githubusercontent.com%2F130288820%2F403273039-b22e6264-5d86-4feb-ac71-84b86b8f0892.png%3Fjwt%3DeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzcxOTA2MzUsIm5iZiI6MTczNzE5MDMzNSwicGF0aCI6Ii8xMzAyODg4MjAvNDAzMjczMDM5LWIyMmU2MjY0LTVkODYtNGZlYi1hYzcxLTg0Yjg2YjhmMDg5Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMTE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDExOFQwODUyMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05OWEyY2E0MmRjNGI3MmExZjYwMDI3NmFhOWU4MGQxZWFlZWQxNGFkNGI5MmUyNTY3ZGM2ZGU1MTcwMDdlMjdkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UXACdbQm17F9qxSDPVFHG8bR1HecNxnge5H2w0lsOzk" alt="Screenshot 2025-01-15 110556"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Cloning the Repository&lt;/h2&gt;

&lt;/div&gt;

&lt;p&gt;To get started, clone this repository using the following command:&lt;/p&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;git clone https://github.com/Rishikesh63/Plan-Sarthi.git&lt;/pre&gt;

&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Agent Setup&lt;/h2&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Navigate to the backend directory:
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c1"&gt;cd&lt;/span&gt; agent&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Install dependencies:
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;pip install poetry&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Install dependencies:
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;poetry install&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Start the Agent server:
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;poetry run demo&lt;/pre&gt;

&lt;/div&gt;
Ensure that all required environment variables are properly configured.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Frontend Setup&lt;/h2&gt;

&lt;/div&gt;


&lt;ol&gt;

&lt;li&gt;Navigate to the frontend directory

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;…
&lt;/div&gt;


&lt;/li&gt;

&lt;/ol&gt;
&lt;/div&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Rishikesh63/Plan-Sarthi" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;&lt;br&gt;
The backend uses &lt;strong&gt;FastAPI&lt;/strong&gt; for deploying the LangGraph agent, while the frontend is built with &lt;strong&gt;Next.js&lt;/strong&gt;.

&lt;p&gt;&lt;strong&gt;My Agent&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Descriptions of Workflow Components&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Solve Sarthi Nodes:&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
generate_response: AI response generation step.&lt;br&gt;
review_response: Human review step.&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Edges:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Represent directed transitions between nodes (generate_response → review_response).&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Conditional Nodes:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
should_continue: Conditional logic to determine the next step after human review (END or generate_response based on human_approval).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpzs52omx2abjgsx3jknx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpzs52omx2abjgsx3jknx.png" alt="Image description" width="569" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;name of agent should be same in frontend and backend:-&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frp8g4lh5fzam2xuqpr8a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frp8g4lh5fzam2xuqpr8a.png" alt="Image description" width="445" height="82"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqmd8bbs1rk6o5qjyhqnr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqmd8bbs1rk6o5qjyhqnr.png" alt="Image description" width="295" height="197"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;&lt;br&gt;
The Frontend was simple and efficient. I used CopilotKit’s built-in features to seamlessly integrate a chatbot interface, ensuring a smooth and intuitive user experience with its robust capabilities.&lt;/p&gt;

&lt;p&gt;My Experience&lt;br&gt;&lt;br&gt;
Building this app was a fun and rewarding journey. While learning LangGraph and LangChain took some time, integrating CopilotKit was surprisingly smooth.  &lt;/p&gt;

&lt;p&gt;Before building Solve Sarthi, I started by creating an agent on a notebook and took courses on LangChain and LangGraph to enhance my understanding.&lt;/p&gt;

&lt;p&gt;A big thank you to the &lt;a href="https://docs.copilotkit.ai/" rel="noopener noreferrer"&gt;CopilotKit documentation&lt;/a&gt;for making the process easy to follow!&lt;/p&gt;

&lt;p&gt;That’s how I built Solve Sarthi!&lt;/p&gt;

&lt;p&gt;What do you think about this project? Would you build something similar? Let me know!&lt;/p&gt;

&lt;p&gt;Have a great day! Till next time!&lt;/p&gt;

&lt;p&gt;If you loved this, please star CopilotKit and Solve Sarthi :)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/CopilotKit/CopilotKit" rel="noopener noreferrer"&gt;Star CopilotKit&lt;/a&gt; ⭐&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Rishikesh63/Plan-Sarthi" rel="noopener noreferrer"&gt;Star Solve Sarthi&lt;/a&gt; 🤝&lt;/p&gt;

&lt;p&gt;Follow me for more content like this!&lt;/p&gt;

</description>
      <category>coagent</category>
      <category>langchain</category>
      <category>nextjs</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
