<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pandurang Zambare on Medium]]></title>
        <description><![CDATA[Stories by Pandurang Zambare on Medium]]></description>
        <link>https://medium.com/@pandurang-zambare?source=rss-4d7a10b0425f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tNCXPXQO9E6hJf_s</url>
            <title>Stories by Pandurang Zambare on Medium</title>
            <link>https://medium.com/@pandurang-zambare?source=rss-4d7a10b0425f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:12:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pandurang-zambare/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Reliable Multi-Agent customer support chatbot- Authentication Agent Final Part-4]]></title>
            <link>https://pandurang-zambare.medium.com/building-a-reliable-multi-agent-customer-support-chatbot-authentication-agent-final-part-4-43b7bc6f5bc7?source=rss-4d7a10b0425f------2</link>
            <guid isPermaLink="false">https://medium.com/p/43b7bc6f5bc7</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[ai-agent-development]]></category>
            <category><![CDATA[chatbot-development]]></category>
            <category><![CDATA[chatbots-for-business]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Pandurang Zambare]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 06:54:45 GMT</pubDate>
            <atom:updated>2025-02-06T06:54:45.107Z</atom:updated>
            <content:encoded><![CDATA[<p>This is in continuation of our <a href="https://medium.com/@pandurang-zambare/building-a-reliable-multi-agent-customer-support-chatbot-to-handle-banking-operations-using-6879d8df605a">article series</a> for building customer support Chatbot. In this Article we will explore Loan Manager Crew design in more detail.</p><h3>Introduction</h3><p>As our chatbot is for banking applications, Once we authenticate the user, we may need to fetch different sorts of data based on customer query. e.g fetch all previous loan applications with statuses, Current active loan account details with outstanding , next EMI date etc…</p><h3>Loan Manager Crew</h3><p>Once customer is authenticated this Crew handles all loan related user queries from chatbot. This crew consist of Loan manager Agent with its own tasks as per the scope of loan application process bank wants to manage.</p><h3>Introduction</h3><p>Based on the users message and user authentication status-</p><blockquote><em>“I need to know my loan application status?”</em></blockquote><blockquote><em>or</em></blockquote><blockquote><em>“Need to apply for education loan?”</em></blockquote><p>Router will invoke the Loan manager Crew workflow, where in the agent might ask user a new question or performs API calls through the custom tools agents has access to.</p><h3>Loan manager Agent</h3><p>Code for Loan Manager crew is shared below-</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7abbb1c9e88f738cbfa8ac9297aa6a8/href">https://medium.com/media/c7abbb1c9e88f738cbfa8ac9297aa6a8/href</a></iframe><p>In code on line — 1–53 we define all tools needed to fetch loan applications.</p><p>Line 56–86 — We define the loan manager crew to be used as LangGraph node.</p><p>Line 88- 126 — We create loan manager agent with role, goal and backstory defining agents System prompt.</p><p>Line 128- 149 — We create a task to handle the users loan application related queries. For now just loan applications listing and particulat application details view are handled.</p><p>With this we conclude this Banking customer Chatbot with authentication and Loan applications display and application ID based loan application details/status checking.</p><p>We plan to extend the overall workflow with loan application lead generator Agent which can be used to gather all configurable loan application details one by one from user. We are working on a generic agent which can be configured to recursively ask user multiple questions for gathering data related to loan application, ultimately we can use this data collector Agent for any generic activity as part data gathering process via chatbot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43b7bc6f5bc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Reliable Multi-Agent customer support chatbot- Authentication Agent Part-3]]></title>
            <link>https://pandurang-zambare.medium.com/building-a-reliable-multi-agent-customer-support-chatbot-authentication-agent-part-3-a0c20f40921b?source=rss-4d7a10b0425f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0c20f40921b</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[conversational-ai]]></category>
            <category><![CDATA[chatbots-for-business]]></category>
            <dc:creator><![CDATA[Pandurang Zambare]]></dc:creator>
            <pubDate>Thu, 10 Oct 2024 11:00:46 GMT</pubDate>
            <atom:updated>2024-10-10T11:00:46.276Z</atom:updated>
            <content:encoded><![CDATA[<p>This is in continuation of our <a href="https://medium.com/@pandurang-zambare/building-a-reliable-multi-agent-customer-support-chatbot-to-handle-banking-operations-using-6879d8df605a">article series</a> for building customer support Chatbot. In this Article we will explore Authentication crew design in more detail.</p><h3>Introduction</h3><p>As our chatbot is for banking applications, So before we can fetch or show any private data as part of conversation with user, its very important to authenticate the user.</p><h3>Authenticator Crew</h3><p>This Crew handles the basic authentication of user before any loan application related information can be fetched for user. This crew consist of Authenticator Agent with its own Mobile number and OTP tasks.</p><h4>Introduction</h4><p>Based on the users message, Router will determine if user needs to be authenticated or else. Based on users query like</p><blockquote>“I need to know my loan application status?”</blockquote><blockquote>or</blockquote><blockquote>“Need to apply for education loan?”</blockquote><p>Router will invoke the Authenticator crew workflow, where in the agent will ask user for his mobile number and OTP and performs OTP verfication via API calls done through the custom tools.</p><h4>Authenticator Agent</h4><p>This agent performs 2 tasks sequentially.</p><ul><li>To get mobile number from user , validate it and send OTP to user using auth tools.</li><li>To get OTP from user , validate and then verify it using auth tools.</li></ul><p>Code for Authenticator crew is shared below-</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b86beb220d873f433dab8935251f18b3/href">https://medium.com/media/b86beb220d873f433dab8935251f18b3/href</a></iframe><p>In code on line — 1–55 we define all custom tools needed to do the required validations and API calls.</p><p>Line 58–93 — We define the authenticator crew to be used as LangGraph node.</p><p>Line 95- 128 — We create authenticator agent with role, goal and backstory defining agents System prompt.</p><p>Line 131–End — We define authenticator tasks to Ask the user for mobile number / OTP, validating it and then verifying via API call.</p><p>Stay Tuned for Part 4 of this series where we will be exploring Loan Manager Crew and will conclude this series. Subsequently we will explore RAG agent in more depth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0c20f40921b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Reliable Multi-Agent customer support chatbot- Router and Assistant RAG Agent Part-2]]></title>
            <link>https://pandurang-zambare.medium.com/building-a-reliable-multi-agent-customer-support-chatbot-router-and-assistant-rag-agent-part-2-c1dd0438b054?source=rss-4d7a10b0425f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1dd0438b054</guid>
            <category><![CDATA[multi-agent-systems]]></category>
            <category><![CDATA[chatbot-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Pandurang Zambare]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 09:09:00 GMT</pubDate>
            <atom:updated>2024-10-10T10:45:14.764Z</atom:updated>
            <content:encoded><![CDATA[<p>This is in continuation of our <a href="https://medium.com/@pandurang-zambare/building-a-reliable-multi-agent-customer-support-chatbot-to-handle-banking-operations-using-6879d8df605a">article series</a> for building customer support Chatbot. In this Article we will explore Router and Assistant crew design in more detail.</p><h3>Crews</h3><p>We build our all LangGraph workflow nodes with CrewAI Crew. Each Crew has its own state and graph flow defined by using one or more agents and tasks. Each agent / task can have access to one or more tools. We use CrewAI for better code management and modularity and separation among different modules of our Chatbot system.</p><h3>Router Crew</h3><p>Router crew analyses user question using LLM to route it to one appropriate sub crew / sub graph flow to handle the overall user experience.</p><p>We create Crew with its own agent and task. System prompt for Router agent enforces LLM to return only the <strong>name</strong> of the agent(team member). Based on returned name of agent LangGraph work flow and state is updated to run respective Crew. Router agent code is shown in below gist.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd9204abeca072db7da100c3f9423086/href">https://medium.com/media/cd9204abeca072db7da100c3f9423086/href</a></iframe><p>Line 35- 42 does this actual routing to delegate the user message handling to designated Agent.</p><p>Line 44–71 — Router CrewAI agent definition with its own role name , goal and back story which internally creates the system prompt for LLM.</p><p>Line 73–86 — Router Crew AI task definition, this defines the actual task LLM is asked to perform along with system prompt from CrewAI agent.</p><h3>AI Assistant Crew</h3><p>This agent handles all user questions/messages related to bank, its services, products etc. System prompt for Assistant agent enforces LLM to answer user from retrieved RAG vector store context and chat history.</p><p>This crew consist of Assistant Agent and Grader Agent with their specific tasks.</p><h4>Assistant Agent</h4><p>This agent is responsible to generate the answer for users message/question with or without relevant context, fetched tool. It has access rag_tool to fetch the relevant context from bank knowledge base/pdfs/documents. We use CrewAI built-in tool “PDFSearchTool” with llama3 and huggingface sentence transformer for embeddings.</p><h4>Grader Agent</h4><p>Answer generated by Assistant agent is graded if its relevant to users question. Grader filter out for any errors in answer, and tries to refine the answer in concise manner.</p><p>Code for Assistant crew is shared below-</p><p>Line 1–33 — we create a custom RAG tool “search_vectorstore” which can access PDF search. RAg tool is available to assistant agent so that LLM can call /use it based on user querstion.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f2f1f6defb3146be05ad10c53f5af39b/href">https://medium.com/media/f2f1f6defb3146be05ad10c53f5af39b/href</a></iframe><p>Line 35–68 — We create Assistant Crew to be used as LangGraph node.</p><p>Line 70–101 — We create assistant agent with role, goal and backstory defining agents System prompt.</p><p>Line 103- End — We define assistant task to tell the LLM to answer user question using vector store context in best possible way.</p><p>Stay Tuned for Part 3 of this series, we will be covering Authenticator Agent design and related code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1dd0438b054" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Reliable Multi-Agent customer support chatbot to handle banking operations using…]]></title>
            <link>https://pandurang-zambare.medium.com/building-a-reliable-multi-agent-customer-support-chatbot-to-handle-banking-operations-using-6879d8df605a?source=rss-4d7a10b0425f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6879d8df605a</guid>
            <category><![CDATA[chatgpt-chatbot]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[conversational-ai]]></category>
            <category><![CDATA[voice-assistant]]></category>
            <dc:creator><![CDATA[Pandurang Zambare]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 07:05:11 GMT</pubDate>
            <atom:updated>2024-09-24T07:43:14.851Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Reliable Multi-Agent customer support chatbot to handle banking operations using LangGraph and CrewAI. Part -1</h3><p>Today LLM’s with their enormous Natural Language processing and generation capabilities have amazed us. Everyone is trying to use it to automate the business process, work flow in some or the other way. The most significant contributor in developing LLM applications is Multi agent LLM Frameworks Like AutoGen, Langchain, LangGraph, MetaGPT, AutoGPT, CrewAI etc.. to achieve the bigger job done.</p><p>We will be using Lang chain, LangGraph and CrewAI. There are hundreds of articles explaining how to use of frameworks, agents and defining the work flow. However when it comes to actual implementation with open source LLM and integration of those agents, developers come across many challenges particularly when handling Human in loop or interaction among agents, memory and chat history handling. We will use open source LLM from <a href="https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct">llama3</a> hosted by <a href="https://groq.com/">ChatGroq</a> to keep development or learning costs minimum. With Lang chain this model or model provider can be replaced to your liking without much overhead.</p><p>This article is my effort to solve those challenges and ways to integrate LangGraph agents and CrewAI agents to achieve a bigger more complex job done.</p><h3><strong>Use Case</strong></h3><p>We will develop a Bank customer support workflow which will handle -</p><p>1) General user queries related to bank services or other information related to bank or affiliates etc.</p><p>2) User can enquire about his last loan application or apply for new loan.</p><h3><strong>Framework</strong></h3><ol><li>We will use Groq APIs with open source LLM model “<strong>llama3–8b-8192</strong>”</li><li>We will also use <a href="https://ai.meta.com/tools/faiss">FAISS</a> vector library by Meta for index creation and similarity search and then storing the data in local.</li></ol><h3><strong>Architecture</strong></h3><p>Our chatbot system comprises of 4 CrewAI Crew/ Node (for now), LLM and a vector store (<a href="https://ai.meta.com/tools/faiss">FAISS</a>).</p><p>For general bank services and products enquiries we use RAG having access to PDF/txt files etc containing information related to Bank.</p><p>For Loan application we use Agentic LLM approach.</p><p>In simplest form the overall architecture is as below-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XtvKjg8aoF1V9Rn8Qe6Rew.png" /></figure><p>Crew/Node Roles-</p><ol><li>Router Crew:- This CrewAI crew is the main supervisor agent who handles all incoming messages from user and routes each message to sub agents who can handle it best way.</li><li>AI Assistant Crew: — This is the RAG based customer support crew, it has access to banks services, locations, branches, knowledge base etc. and can handle users questions related to bank.</li><li>Authenticator Crew: — This is the authenticator crew who handles user authentication. Before user can enquire about his previous loan application or apply for new loan loan, user need to be authenticated with his mobile and OTP.</li><li>Loan Manager Crew:- This agent handles previous loan applications status enquiries or new loan application handing. This crew can take over the flow only after user is authenticated.</li></ol><p>In this post series, we will discuss main components and their interactions with other components. RAG agent and its implementation is out of scope of this article and will be discussed in a separate article. The top level python code is as below-</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3f832801961108e1029d594fd4f9c3c/href">https://medium.com/media/d3f832801961108e1029d594fd4f9c3c/href</a></iframe><p>Line 27–30 — We create LangGraph state with “MessagesState” holding all past messages list and</p><p>user_info — Authenticated users information object.</p><p>route — Current Agents working on user message.</p><p>question — Current user message. For usage among CrewAI agents.</p><p>Line 32–86: Here we create Lang Graph workflow using CrewAI agents and nodes and define the edge cases. Chat history will be saved by using “checkpointer” when we compile the workflow.</p><p>Line 88 — END: Graph flow testing using user message streaming.</p><p>Stay tuned for Part 2 of this series. We will cover Router and Assistant crew design and related code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6879d8df605a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>