• 1 year ago
Welcome to this AI 3018 Lab session, where we dive into Microsoft Copilot Studioβ€”a powerful platform for creating, customizing, and deploying AI-driven conversational agents. Whether you’re an IT professional, developer, business user, or AI enthusiast, this hands-on lab will show you how to leverage Copilot Studio to build intelligent and automated chatbot solutions.

πŸ” What You’ll Learn in This Lab:
βœ… Introduction to Microsoft Copilot Studio – Key features & capabilities
βœ… Building & Customizing AI Chatbots – Step-by-step guide
βœ… Integrating with Microsoft 365, Power Automate, and Azure AI
βœ… Enhancing chatbot interactions with Natural Language Processing (NLP)
βœ… Best practices for AI automation & workflow efficiency
βœ… Deploying AI-powered assistants for customer service & business operations

πŸ› οΈ Who Should Join This Lab?
Developers & IT Professionals exploring AI-powered automation
Business users looking to streamline workflows with AI chatbots
Students & AI enthusiasts interested in Copilot Studio & conversational AI
Organizations aiming to enhance customer engagement with AI assistants

πŸ“Œ Key Highlights:
βœ… Live demonstration of building & testing chatbots
βœ… Real-world examples of AI automation in action
βœ… How to fine-tune AI responses for better accuracy
βœ… Tips for optimizing chatbot performance & user experience

πŸ’‘ Learn how to create powerful AI chatbots with Microsoft Copilot Studio today!

Explore our other Courses and Additional Resources on: https://www.youtube.com/@skilltechclub
Transcript
00:00hey guys i'm back with another video so let's get started with microsoft copilot studio in this
00:14we already understood what is generative ai and what are the different microsoft copilot
00:19which are available in different microsoft tools now it's the time we have to decide
00:24whether we are going to go with microsoft copilot studio uh with a low code approach
00:29or we are going to go with azure ai foundry where we are actually going to develop
00:34custom agents with the help of azure ai foundry portal now in this video we are not going to talk
00:40about azure ai foundry this is totally focusing on microsoft copilot studio so if you are a developer
00:47and looking for a pro core kind of an environment this video is not for you but if you are looking
00:52for a low core kind of an environment this is for you let's get started the first thing in this
00:58agenda of this video is what is copilot studio we will get familiar with the ui of copilot studio
01:04as well as there are a couple of terminologies which we need to understand in this like the first we
01:09are going to see what is topics and then how we can work with topics in copilot studio after that
01:15we'll see that how we can use generative ai and the configuring the copilot studio based prompts
01:21and then we'll talk about automating tasks with actions there are various actions which you can use
01:27to trigger we have different types of topics also we will discuss about all those things in this
01:33and then after this we will talk about publishing and distributing our copilot agents finally in the
01:39last thing we are going to talk about analysis so let's start with what is copilot studio now if your
01:45organization makes the decision to customize microsoft copilot or developing custom agents microsoft is
01:52actually providing two different tools which you can use i think we have discussed this thing in
01:56the previous video already so i'm not going to repeat this but as you can see in this slide
02:02you have copilot studio which is designed to work well for low code kind of for development scenarios
02:08and on the right side you have azure ai foundry which is a platform at the service and it's going
02:14to provide a development portal where you can actually have a full control over the language model and
02:19you can customize it as you want in this particular video we will talk about low code kind of a model that's
02:26why we are going to talk about microsoft copilot studio we will not use azure ai foundry azure ai
02:32foundry we will see after a few videos azure ai foundry we are going to see in the coming videos
02:38but right now let's focus on copilot studio as i mentioned this is fully managed hosted software as
02:45a service which is available from microsoft it's going to give you a dialogue and conversational
02:49orchestration so basically the topics and the configuration which we are going to see
02:54will help you to customize your logical step-by-step workflow with that orchestration mechanism you're
03:00going to have built-in analytics with security and governance control so you don't need to worry
03:05about any of those things because it's all managed by the studio itself and then you will have an
03:10options to deploy your common chat channels like web apps social channels and even teams now if you have
03:19a question in your mind that why you're going to use copilot studio consider these benefits which
03:24are visible on the slide which are showing you that how copilot studio can help you to create custom
03:29agents the first thing is quick deployment your agents can be created and embedded into your website
03:35with just few clicks and it's super fast you can empower your subject matter experts so your smes with
03:43the little or no development experience can actually create agents quickly and easily using an intuitive
03:50code-free graphical user interface they just need to have a domain knowledge and your product knowledge
03:55they don't need to have any programming knowledge in this case next we have enabled rich and natural
04:01conversations so your microsoft's powerful conversational ai capabilities enables your users to have rich
04:08multi-term conversations which quickly guide them to the right solution with no need to retrain ai
04:15models so model training will not be required next we have take actions so your agents can chat with your
04:22users are great but agents that can act on their behalf are even better and that's the reason we have
04:28a copilot studio where you can create an agent that not only respond to the user but also takes an
04:34actions to an automated task which you can configure inside that next point we have generative ai your
04:41copilot studio makes it easy to include generative ai capabilities into your agent so that it can
04:47generate natural language responses based on the journal knowledge which is retrieved from the web or maybe
04:53a specific knowledge source that you provide based on the relevant information for your users which can be
04:59coming from your organizational data or maybe your product related data last but not the least we have
05:05monitor and improve agent performance configurations available your copilot studio includes this kind of
05:11built-in benefits where you can do analytics you can easily monitor the performance and user satisfaction of
05:18your agent and that basically gives you an insight so that you can improvise your agents now in this slide we
05:25are going to talk about some of the key concepts which you need to understand before you explore copilot studio
05:32the first thing is topics topics are the core of the conversational interactions which your users will
05:38have with your agent each topic define a dialogue flow which can be triggered by a specific phrase in the
05:45user input or by that event which is going to occur your agents can use generative ai to create natural
05:52language responses that are grounded in knowledge which you specify for example you can create an
05:58agent that answers employee questions about expense claims based on your organization's expense policy
06:05documentation in addition to answering questions and providing information you can define actions that
06:12enables your agent to act as an ai agent that performs tasks when your agent is ready you can publish it to
06:20make it available to users through one or more channels including microsoft teams emails websites and social media platforms
06:30to evaluate the performance of your agents you can view analytics data that is recorded and reported in copilot studio
06:39now if you ask me how exactly we can create an agent in copilot studio well creating a new agent is very
06:46straightforward in this first you have to ensure that on the right top corner your power apps environment
06:51is selected which is actually allowing you to create your agent inside that your environments are created by
06:58power apps administrator and you have to define a security boundary for your apps in their organization
07:04after selecting the environment you can create new agent by using a natural language to describe the
07:10the functionality which you want it to have when you take this approach copilot studio is going to initiate
07:17a chat conversation to ask you about how your agent should behave source of information which it should
07:23use and other features which you want to include inside that alternatively if you want you can use an agent
07:32templates which are available here there are templates which are provided for some common agent scenarios
07:37such as travel planning store or product information or maybe financial insights and there are many more
07:44now let's deep dive into topics and triggers you can think of topics as predefined conversational
07:50interactions that your agent can engage in each topic is triggered either by a phrase which is entered by
07:57a user or by an event such as an error the topics which you create for an agent determines the kind of
08:04interaction it is capable of as you can see in the slide that if you're going to provide an input like
08:10some greetings like hi and hello is going to revert with the message that hey i'm a virtual agent and then
08:17how can i help you with that same way you can see some other triggers which are focusing on weather of
08:23information or maybe just a goodbye kind of a message or if you are getting some kind of an error it's going to
08:30return with i'm sorry something went wrong with that and this is how your agent is going to behave
08:36when you're working with topic one of the most important things which you have to take care is
08:40defining the topic flow because topics defined in the conversational flow are going to made up of
08:46multiple nodes inside that you can create a flow that orchestrate the conversation by connecting multiple
08:52kinds of nodes such as triggers messages questions variable management conditions topic management and
09:01actions now each one is very useful like triggers are going to be nothing but phrases or events that
09:08initiates the topic most of the time triggers will be the starting one after that you have a message
09:13which is going to send a message to the user question which is going to ask user a questions and
09:18assign the response to a specific variable variable management which is going to allow you to set get
09:26or reset the variable values with that conditions which are logical conditions branch into a flow based
09:33on the variable if condition is true it will go into the true branch if it is false it will go into the
09:39other branch then you have topic management which is going to end a topic redirect a different topic
09:46or maybe a transfer to an external system also and then at the end of this we have a last one which
09:52is action which can call an action to perform an automated task now if your question is how many
09:59types of topics can be there well the answer is two you can have custom topics or system topics
10:06custom topics are those topics that you create or you may be inherited from an existing template
10:12custom topics represent the anticipated conversational dialogues that your agent can support when you
10:19create an agent it usually includes some predefined topics for some common conversational dialogues such
10:25as greetings and farewells it may also include some lesson topics that are provided as an example to help
10:32developers understand how to build their own topics on the other hand system topics are triggered by the
10:39system events such as conversation initiation errors or some unexpected input you can't create or delete
10:46system topics but you can disable them if you do not require in a particular agent scenario if more than
10:52one triggers qualifies triggers get executed in order to creation with the oldest first if you'd like to
10:59change that behavior you can set the priority in the nodes priority span we will try this kind of things when
11:06we do the lab part of this particular module this diagram is actually showing you a fallback topic
11:13the fallback system topic is particularly useful because it enables the agent to respond gracefully
11:19when a user enters an unexpected input that doesn't match the trigger of any custom topic you can follow
11:25the flow on the slide to see how the fallback topics can handle the unexpected input so you can see in the first
11:32case in the left side we have a user input when user submits an input the agent is going to use a natural
11:39language understanding model to pass that input into the user's intent and then based on the intent it's
11:46going to attempt to find a custom topic with the corresponding trigger with that if we found the custom topic
11:53great but if there is no matching custom topic available then it will go into the fallback topic
11:58the fallback topic is triggered through the unknown intent trigger the fallback trigger can then ask
12:05the user to rephrase their input a reasonable number of times before giving up and redirecting the
12:12conversation to the escalate topic you can see in this slide it's showing you that it's going to give
12:18users three attempts to rephrase this and after that also if it is not done it's going to going into escalate
12:24topic section which can be used at the end of the conversation and it's going to connect to a human
12:30operator where you can understand simply that your chatbot agent is not able to answer the question
12:37so that human can answer that this is a typical fallback topic logical workflow which is always
12:42suitable in most of the cases of chatbots now this is a very important slide because it's showing you
12:49how you can create generative answers using a generative ai now generative ai is a type of
12:56artificial intelligence system that is using large language models to generate natural language responses
13:02based on prompts and we all know this thing if you are not familiar i request you to check out my
13:07other videos which are focusing on generative ais to use generative ai in a topic you can use create
13:14generative answers node as you can see in the slide we have a create generative answers node in which
13:20we are configuring it to send prompt usually to the user's input to an llm and then it's going to
13:26return the ai generated response basically this is going to make a call to your llm and then processing
13:33is going to happen at the large language model the response which is generated from the large language
13:38model will be provided here in this particular flow you can set additional configuration options
13:44also where you can include knowledge stores on which based on that you can provide your own data
13:50and you can generate answers you can also specify custom moderations to set the balance between
13:56generating creative responses versus more relevant answers and you can also do prompt customizations
14:03to add additional instructions to the prompt that affects that how your llm will respond now as we
14:09have seen in the previous slide that one of the option which was mentioned was knowledge source now by
14:15default generative ai functionality in copilot studio is based on the general knowledge which is actually
14:21available from the web however you can add a custom knowledge source as it is visible in this particular
14:27slide you can actually add your knowledge source which can be coming from azure ai search kind of a service
14:33or maybe an azure sql database or maybe you can also connect with some salesforce or zendesk kind of an
14:39accounts with that remember this kind of enterprise data connections are right now in the preview but
14:44very soon is going to be available for global availability you can configure this in your create
14:50generative answers node to use only a specific knowledge sources and optionally you can fail over
14:56to general knowledge from the web if there are no answers which are found in the knowledge sources which
15:01you have provided when you are using a website as a generative ai resource there are few things which you
15:07have to keep in mind first make sure that you use a real url and not the one which is redirecting to
15:13another page when you are using a real url then only is going to allow you to retrieve the knowledge base
15:20from that you cannot point to a website that requires authentication because there is no automated
15:25authentication mechanism available with this kind of an agent so your website that requires authentication
15:31or not indexed by the bing cannot be used with this also you need to have a website url for generative
15:38answers can have up to two levels of depth so you can see right now as visible in the slide your urls can
15:45have two levels of depth like a trailing forward slash however is allowed for example if you have this
15:52kind of retail slash store slash us then it's something which is going to be working like this so up to
15:58retail and store is going to work but not with the multiple depth with that so up to two levels depth
16:04after base url you can have one and two slashes it is fine but not more than two so this kind of a
16:10slashes and further categories will not work so please keep all these things in mind now when you are
16:16going to use documents for generative ai you can upload files that can actually contain knowledge
16:22this files can be documents with unstructured text or maybe a structured data which is maybe
16:28in the format of csv comma separated value files also make a note that when you upload files these
16:35files are going to be stored in data verse and is going to be indexed which can take some time before
16:41the knowledge which available in the file is available for generative ai usage you should note that while
16:48the files are stored securely to prevent the direct access to them in the data verse the contents of the
16:54file are visible to all users of the agent so there is no way to set permissions that do not allow some
17:00of the agent users to access the knowledge while preventing the access to by other users so you
17:06cannot have this kind of permission based configurations also keep in mind the file size is limited to maximum
17:12512 mb per upload also only the text mail files are recommended for this kind of a knowledge base
17:19your images audio video and other executable files or binary files are not supported in this
17:26now this is a diagram which is actually showing you how you can use conversational boosting for the
17:32topic the conversational boosting system topic is going to provide a way to generate ai answers to
17:38your user questions for which there is no matching custom topic trigger it inserts an attempt to use
17:44generative ai to respond to an unknown intent before failing over to the fallback topic if the create
17:51generate answer node in the topic generates a relevant ai response it is written to the users otherwise the
17:58conversation flow moves into a fallback topic and that is exactly what which is visible here now in the
18:04previous slide when we have seen this thing as you can understand this is a user input which is provided
18:11if we found the matched input with the custom topic it will go into that custom topic if not it's going
18:17to be going into conversational boosting topic in this case it will create a generated answer with that
18:23if we got the generated answer great it's going to find the relevant answers generated by the ai
18:29if not then it's going to go into fallback topic in that also is going to try multiple times so maybe
18:35multiple attempts are going to be made to rephrase that from the user side
18:39if it is still not possible to get the proper answer it will hand over that to a human operator
18:45this bottom configurational diagram is actually exactly same which we have seen in the fallback
18:51topic the only thing is conversational boosting topic is just adding one additional
18:56loop inside this which can be possible when you want to make sure that you want to boost your
19:01conversation with your system topic now let's understand how we can enable generative ai for intent
19:08recognition identifying the intent of the user is a very important task by default copilot studio
19:15use classic language understanding model to parse and interpret user's input and determine the user's
19:21intent with that as an alternative approach you can enable generative ai to determine the most
19:28appropriate topics and actions to trigger based on the user input you should also keep in mind that all the
19:35generative ai functionality in the topics that we have covered so far is actually available in either
19:42of this particular mode however if you want to have an agent which is triggered action automatically
19:48based on the user input then you need to enable generative ai automatic task with actions actions are going
19:56to enable you to move your agent beyond and purely conversational solution so it's not always true that you're
20:03going to give answer in the conversation sometimes you have to do an automated action with that and that is where
20:08actions are going to help you and that is where your actions are going to act as an ai agent and is going to
20:14automate the task on user's behalf your actions can be implemented as a power automate flows or maybe a custom skill
20:22you can also use connectors to automate tasks in an external service
20:26one way you can accomplish this is to include a call and action kind of a node in the topic flow
20:33this approach works regardless of whether the agent is using generative ai or a classic language
20:38understanding model to determine the user's intent in case of connectors to a service you can use
20:45connectors to maybe manipulate a spreadsheet in an excel online or maybe you want to send an email or maybe
20:52you want to get a forecast from an msn weather information api when your agent is configured to
20:58use generative ai to interpret the user's intent you can create actions that are triggered automatically
21:05by the agent in much the same way the topics are executed in that in this approach actions are triggered
21:12directly by the agent and do not need to be included in the topic flow these kind of actions are going to
21:18be triggered automatically by your agent now let's talk about publishing and distributing before you
21:25publish you have to prepare to publish so when you're all the agent has all the topics and actions
21:31which you need you have configured it properly you have to make sure that your generative ai
21:36functionalities are properly tested in the copilot studio environment so once you are ready to publish it
21:43and distribute to the users you have to first configure the security settings particularly for
21:49authentication methods which you want your users to restrict the access of your agent as well as
21:55the authentication method which you want to choose to determine that which channels you can deliver it
22:00through authentication options which are included in copalets are no authentication where basically anyone
22:07can use the agent through any channel or microsoft entra authentication which you can deliver through
22:13the agent where they are going to pass through microsoft teams and power apps or maybe microsoft 365 copilot
22:21and then you can also have manual authentication where you will be implementing a custom authentication solution
22:28using any particular identity provider such as entra id or any oauth 2.0 provider
22:35after all this thing when you are ready to publish you can publish your agent and deliver it to the
22:40users through the available channels the channels which are included in this are microsoft teams
22:46websites email or social media platforms as you can see in the screenshot social media platforms like
22:53facebook skype line twilio telegram are actually available here as a partner channels and please keep in mind
23:02each channel needs to be configured independently obviously once publishing is done our work is not done
23:08once your agent has been published successfully you have to focus on monitoring and agent analytics data
23:14in our copala studio you can view the usage metrics which includes summary customer satisfaction sessions
23:22billing and boost conversation kind of thing most of the time customer satisfactions are going to
23:28associate with rating from customers using your agent your sessions are going to be showing you downloadable
23:34transcript of agent sessions your billing is going to show you details about the cost which is incurred
23:40by your agent while the boost conversations are going to show you the details of how often generative ai
23:46found relevant answers and it's going to break down of reasons for the times it fails to do so
23:53so basically how good your agent or how bad it is in giving a conversational responses to your user
24:00is something which you can analyze using this and basically that's what which is going to be visible
24:05in the summary the right side screenshot is showing you the summary tab where it's actually showing
24:10you an overall usage summary associated with this obviously you can deep deep into any of the particular tabs
24:17and you can see more detailed summarize information about that now last but not the least at the end
24:23of this particular module i want to add on that if you really want to deep dive into microsoft copilot
24:29studio and microsoft copilot this is a link which i'm highlighting here this link is going to help you
24:36to start your journey to explore microsoft copilots you can see these are just four steps which i've mentioned
24:42on this page step one you understand copilot step two you add up copilots step three you extend it
24:49and step four you build it for your own purpose and remember at the below links of all four sections
24:55you have couple of videos by which you can watch and learn these things so what are you waiting for
25:01start exploring microsoft copilot today and i'm going to see you in my next video thank you

Recommended