<?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 Carlos on Medium]]></title>
        <description><![CDATA[Stories by Carlos on Medium]]></description>
        <link>https://medium.com/@carlos_66871?source=rss-7ae9de2eef24------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Carlos on Medium</title>
            <link>https://medium.com/@carlos_66871?source=rss-7ae9de2eef24------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:17:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@carlos_66871/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[How We Solved: Enhancing Bot Accuracy with Copilot Studio — Step By Step]]></title>
            <link>https://medium.com/@carlos_66871/how-we-solved-enhancing-bot-accuracy-with-copilot-studio-step-by-step-d715586298f8?source=rss-7ae9de2eef24------2</link>
            <guid isPermaLink="false">https://medium.com/p/d715586298f8</guid>
            <category><![CDATA[microsoft-copilot]]></category>
            <category><![CDATA[solution-architecture]]></category>
            <category><![CDATA[microsoft-ai-builder]]></category>
            <category><![CDATA[microsoft-innovation-hub]]></category>
            <category><![CDATA[microsoft-copilot-studio]]></category>
            <dc:creator><![CDATA[Carlos]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 21:51:27 GMT</pubDate>
            <atom:updated>2025-02-11T21:54:30.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WftcngFwxeVcixDoSbJWRQ.jpeg" /></figure><h3>How We Solved: Enhancing Bot Accuracy with Copilot Studio — Step By Step</h3><p>This is a technical description of a possible implementation of the concepts described in my other post <a href="https://medium.com/@carlos_66871/how-we-solved-enhancing-bot-accuracy-with-copilot-studio-5fcfe4dba742">How We Solved</a>.</p><h3>Agent Creation</h3><p>To keep this example simple, I have chosen to create a bot that answers questions about taxes from the Canadian Revenue Agency website. I will use a default agent created by explaining the purpose and point to the knowledge source. At <a href="https://copilotstudio.microsoft.com/">https://copilotstudio.microsoft.com/</a> I create a new agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*nB9ngqJX9_LHCY_ANmo92A.png" /></figure><p>After giving it some instructions, it is ready to answer questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*TRZ3qO5Fw0c6F-TcTjBgAg.png" /></figure><p>Now lets ask it a question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*-I9GTRJxjQqfXZ6mBiQlGQ.png" /></figure><p>The answer looks good and includes references. Now if I ask it a follow-up question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*EcyFaf2PqnnlGkV2qrFZwg.png" /></figure><p>This answer is missing the point of the question by suggesting you can find assistance by volunteering to help others.</p><p>Let’s add a validation step before answering. First, we will store the response from the agent into a variable instead of displaying it to the user. In the “Create Generative Answers” node, we select properties and update them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*ir5ASU-rY2MGSVDs2oEU_Q.png" /></figure><p>Disable “Send a message” and save the complete LLM response in a variable.</p><p>Next we will call an action, and create a custom prompt to call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*XQRIs5TvkAxEGDFYKTym2g.png" /></figure><p>In the custom prompt dialog, I add 3 input variables and engineer a prompt that performs a check on the answer using the user’s original question and grounding knowledge from the generative answers node:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*9VSwA0NQSKP5AdM_FBk7bg.png" /></figure><p>Then I pass the appropriate parameters to the prompt on the node:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*NPGkmYhTTpXqOnF0xoun3g.png" /></figure><p>Lastly, I display the answer if the accuracy is high, otherwise I apologize like a good Canadian:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*gpuFZpKYxVVuCCaM8Fv5Lw.png" /></figure><p>Now when I ask the same question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*34js0CeRbWpSjnwNsfuU8Q.png" /></figure><p>Inspecting my variables I see that the validation prompt returned a low accuracy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*PeTEarKgJ2kV7LJbBP_TvA.png" /></figure><h3>Summary</h3><p>So, here’s the point: If an agent’s response misses the mark, we now have a way to validate it before showing it to users. We save the response, run a custom prompt to check its accuracy, and only display it if it passes the check. If not, we apologize and move on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d715586298f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How We Solved: Enhancing Bot Accuracy with Copilot Studio]]></title>
            <link>https://medium.com/@carlos_66871/how-we-solved-enhancing-bot-accuracy-with-copilot-studio-5fcfe4dba742?source=rss-7ae9de2eef24------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fcfe4dba742</guid>
            <category><![CDATA[microsoft-copilot]]></category>
            <category><![CDATA[microsoft-copilot-studio]]></category>
            <category><![CDATA[microsoft-innovation-hub]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[microsoft-ai-builder]]></category>
            <dc:creator><![CDATA[Carlos]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 21:50:45 GMT</pubDate>
            <atom:updated>2025-02-11T21:53:47.467Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WftcngFwxeVcixDoSbJWRQ.jpeg" /></figure><blockquote>Imagine a bot that double checks its information before responding.</blockquote><p>Welcome to our “How We Solved” series, where we dive into the nitty-gritty of various business challenges and the creative solutions our team of architects design to overcome them.</p><h3>Problem Statement</h3><p>Today, we’re tackling a particular hurdle that came our way: ensuring an agent, built with Copilot Studio, could answer user questions accurately. The business was keen on guaranteeing that the responses provided by our agent were not only precise but also verified before being shared with the users. This extra step was crucial in maintaining trust and reliability in our automated assistance. Let’s walk through how we approached and solved this challenge.</p><h3>Background</h3><p>In our quest to harness the power of AI, ensuring reliability and safety has been paramount. Responsible AI isn’t just a buzzword; it’s a commitment to creating systems that users can trust. Reliability in AI means that the system consistently performs as expected, providing accurate and timely responses. Safety, on the other hand, ensures that the system does not cause harm and operates within ethical boundaries. These pillars guide the development and deployment of our AI solutions, ensuring that they are not only effective but also aligned with our core values of trust and integrity.</p><p>So, while we’ve been working with AI, making sure everything is reliable and safe has been a big deal for us. We want to build systems that people can trust. When we talk about reliability, we mean that the AI consistently gives you accurate and timely answers. We also aim to make sure our AI doesn’t cause any harm. These principles help us create AI solutions that are not only effective but also trustworthy.</p><h3>Approach</h3><p>Ever heard of AI hallucinations? That’s when AI gives you an answer that sounds right but is actually way off base. Some run into this problem when trying to make a super accurate bot.</p><p>Imagine having a really smart assistant who can quickly look up information for you and then use that info to give you a detailed answer. That’s basically what Retrieval-Augmented Generation (RAG) does! Instead of just guessing based on what it knows, RAG fetches real, up-to-date info from trusted sources before giving you an answer. So, it’s like combining the brainpower of a genius with the accuracy of a fact-checker, ensuring you get the best and most accurate responses every time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7vQTGYKmENgrZ7al-kXkUA.png" /></figure><p>For highly sensitive information, we had to get creative with our architecture. The trick was to add some checks and balances to the system. Instead of just spitting out the first answer the agent came up with, we made it double-check the response against trusted sources before showing it to the user. This way, we’re sure the info is accurate and relevant.</p><p>We did this by using Copilot Studio’s generative answers feature to retrieve verified data, then sending agent’s initial answer to a custom AI Builder prompt to verify it against the original question and our verified data. It’s like having quality assurance agent who fact-checks everything before responding. This combo of AI and validation helps us deliver responses that you can trust.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*diJj4IM9AKvggDaYYppoiA.png" /></figure><p>If you would like a more technical step by step, check out this supplementary post <a href="https://medium.com/@carlos_66871/how-we-solved-enhancing-bot-accuracy-with-copilot-studio-step-by-step-d715586298f8">How we Solved: Step By Step</a>.</p><h3>About us</h3><p>At the Microsoft Innovation Hub (The Hub for short), we come up with technology solutions to solve business problems. Some of you may have known us as the Microsoft Technology Centre or MTC before we rebranded.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fcfe4dba742" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we solved….]]></title>
            <link>https://medium.com/@carlos_66871/how-we-solved-38349e35f312?source=rss-7ae9de2eef24------2</link>
            <guid isPermaLink="false">https://medium.com/p/38349e35f312</guid>
            <category><![CDATA[mi̇crosoft]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Carlos]]></dc:creator>
            <pubDate>Fri, 24 Jan 2025 21:11:43 GMT</pubDate>
            <atom:updated>2025-01-24T21:11:43.364Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Stories from the Hub</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VdnrSI8gd5j1epbM" /></figure><p>I work with an amazing team of technical architects, specialists and black belts at Microsoft to help guide customers on their journey to innovation. Every day we face a new challenge, a new problem to solve. My team would like to share some of these experiences with you to illustrate the approach, inform about our capabilities and inspire everyone on the opportunities that technology provides.</p><h3>About us</h3><p>At the Microsoft Innovation Hub (The Hub for short), we come up with technology solutions to solve business problems. Some of you may have known us as the Microsoft Technology Centre or MTC before we rebranded.</p><p>These sessions take place at one of our awesome global locations. We kick things off getting to know the needs, sharing relevant strategies, and showcasing solutions that align with the goals. By the afternoon, it’s all about action — turning discoveries into a game plan, getting ready to make things happen.</p><figure><img alt="A map of all locations for the Hub around the world." src="https://cdn-images-1.medium.com/max/1024/1*0eIHeBY1DX1oWUHGyTmv9A.png" /></figure><h3>The Hub in Canada</h3><p>Our team in Canada is made up of seasoned veterans from the trenches of the software consulting world. With this real-world experience and passion for designing solutions, we have the privilege of blazing a trail for our customers, and colleagues. We plan on sharing a curated set of these stories with you, so stay tuned for the first one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38349e35f312" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>