Introducing Custom Engine agents
Key Takeaways
This video introduces custom engine agents, intelligent bots built for Microsoft 365 and Microsoft Teams, using Teams AI Library, Azure OpenAI, and RAG with Azure AI Search, demonstrated through the example of Career Genie, a HR expert agent.
Full Transcript
imagine building an agent that works on Microsoft 365 uses the AI model of your choice runs with customer or castration leverages retrieval augmented generation with Azure Integrations I mean really really custom one that my developer friends are now called custom engine agents hi my name is aab Bash I'm Cloud developer Advocate at Microsoft in this video we're going to break down custom engine agents if you want to learn anything and everything about custom engine agents keep on watching let's Di in I want to show you this awesome Human Resources expert career Genie career Genie is a b framework based agent that works on teams it's powered by team's AI library and Azure open AI it's friendly and helps with HR queries as you can see but let's have a closer look to its user experience first thing we recognize is the AI generated label and we also have the sensitivity label right next to it we also have feedback loop with thumbs up and thumbs down buttons where we can share more feedback about what we like and dislike about this answer this all really looks and feels like a co-pilot experience we can also ask career Genie complex questions like suggest me. net developers who can speak Spanish as career Genie is connected to Azure AI search and can apply Vector search on top of a diverse set of rumes we can get the best candidate suggestions for our specific query career gening can do much more than just retrieval augmented generation with Azure AI search to start with it can authenticate users with single sign on and it can handle much more complex tasks for you for example when we get some candidate suggestions we can actually create list of candidates using career Genie and career Genie understands the task thanks to the natural language processing and takes an action accordingly recognize that it can also handle complex queries like add Anthony in the same list with Isaac and easily get the task done it can summarize our list and also can create multiple lists let's create another list for python developers and add Sarah in it can also keep track of changes in the list for example we can remove Anthony from the net list and add Anthony in the new Talent list we can keep making many other changes and career joury will be able to keep track of that it will be able to create much more lists than just three it can add more candidates in the list and be able to make all these adjustments in real time and once we are settled with our list of candidates we can ask send my list to HR and it will be able to send my list to HR for scheduling interviews if I quickly go ahead and check my inbox I should be able to see lists of candidates sent to HR for scheduling interviews career Genie definitely looks cool but I'm pretty sure you already have some questions how can we make career Genie work so smoothly on teams how does it handle diverse data set with Rag and have this awesome characteristic Behavior also have co-pilot like user experience let me show you how our custom engine agent career journey is powered by teams Library let's go through the core components in our source code let's start with app. TS we start with the AI components here first we have the model we want to use open AI model helps us call the Azure open AI then prompt manager manages prompt creation using the files under the prompts folder then we have the action planner that uses large language model to generate plans and calls Azure open Ai and finally application utilizes all of these AI components like model planner and so on and replaces the activity Handler class in a typical bot framework bot let's have a look at the prompts folder under the prompts folder we have chat folder then we have config.js that has all the settings about our prompt and then we have skap prompt. txd that keeps the meta prompt and defines the behavior of our bot in this case it's career Genie that helps Human Resources team finding right candidates it's friendly professional likes using emojis and so on so far these are the core components of a custom engine agent let's take it one step further and see how we can include Azure AI search as a data source if you go to config.js you will recognize that we have data sources here and this is the place where we Define Azure AI search as a data source and if you look at the details here you will see asure AI search endpoint index name key cury type as vector and embedding model all right the next step is customizing the user experience using powered by AI kit in teams AI Library I'll go back to app. TS here the first feature I want to show you is feedback R you can add thumbs up and down buttons in each response of the AI for users to share their feedback and then the citations you can actually customize the citations using predicted say command and adaptive card another great feature available in powered by AI kit is generated by AI label where we can add in each AI response to highlight that this is generated by Ai and finally we have the sensitivity label where we can Define the confidentiality of the data are AI is sharing let's continue with another important capability we can add in our custom engine agents which is authentication you can use the authentication component available in teams library and enable single sign on finally let's talk about actions which is one of the most important components that adds the complexity in our conversation with AI to handle complex tasks like creating lists adding candidates making changes adjustments to handle all these actions we will need to create another prompt that means our default prompt will be choosing in between two different prompts the monologue folder under the prompts folder handles all the actions related tasks in the actions. Json we Define all the actions here such as create list delete list add candidates remote candidates s lists that is for HR and then we will need to register actions in our app our Ai and planner will decide which action to call and once we hit the action we will be calling the related function available in the AC actions. TS all right how do you build one of these from scratch well we are going to use teams toet in vs code select team toit icon then create a new app you should select custom engine agent and then basic AI chatbot select the language of your choice aure open AI enter your keys and point deployment name select the default folder give your application a name then we are ready to go to have the basic functionalities of career Genie the first thing you should do is to go to skape from txc update here with career Genie's behavior and then hit F5 if you're trying this for the first time you can use teams app test tool which will be a lot easier to test and see the results and because we don't currently have Azure AI search integration and all these complex capabilities we should start by asking simple question like can you help me write a job post with senior developer role make sure C is a part of it and career gen is already helping us right away are you already interested in building one I have a amazing news for you we are introducing a new virtual Workshop called co-pilot developer camp we have series of labs where you can follow to build your own custom engine agent AKA career Genie with its capabilities including rag powered by AI authentication actions and much more check out co-pilot developer camp today to start building your own custom engine agent thanks for watching And subscribe to our channel for more co-pilot development content See you in the next video bye
Original Description
Join Ayca Bas as she walks you through custom engine agents—intelligent bots built for Microsoft 365 and Microsoft Teams. Learn how to build agents like Career Genie using Teams AI Library, Azure OpenAI, and RAG with Azure AI Search.
0:00 – 0:30 – Introduction
0:31 – 2:38 – Overview of custom engine agents - Career Genie demo
2:39 – 2:57 – Custom engine agent core skills
2:58 – 4:02 – Core components
4:03 – 4:22 – Retrieval Augmented Generation with Azure AI Search
4:23 – 5:00 – UX enhancements with Powered by AI kit
5:01– 5:11 – Authentication
5:12 – 6:00 – Actions
6:01 – 6:56 – Build custom engine agents with Teams Toolkit from scratch
6:57 – end – Try the Copilot Developer Camp Labs!
Custom engine agents documentation:
Teams Toolkit - https://aka.ms/teams-toolkit
Teams AI library - https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/teams-conversational-ai/teams-conversation-ai-overview
Copilot Developer Camp - https://aka.ms/copilotdevcamp
✅SUBSCRIBE TO OUR CHANNEL: www.youtube.com/Microsoft365Developer?sub_confirmation=1
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Microsoft 365 Developer · Microsoft 365 Developer · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Adaptive Cards community call-February 2019
Microsoft 365 Developer
PowerApps community call-February 2019
Microsoft 365 Developer
Microsoft Graph community call-March 2019
Microsoft 365 Developer
Office Add ins community call-March 2019
Microsoft 365 Developer
PowerApps community call-March 2019
Microsoft 365 Developer
Microsoft Teams community call-March 2019
Microsoft 365 Developer
Using React and Office UI Fabric React Components
Microsoft 365 Developer
Build Microsoft Teams customization using SharePoint Framework
Microsoft 365 Developer
Microsoft Graph community call-April 2019
Microsoft 365 Developer
Using Change Notifications and Track Changes with Microsoft Graph
Microsoft 365 Developer
Office Add Ins community call-April 2019
Microsoft 365 Developer
Adaptive Cards community call-April 2019
Microsoft 365 Developer
Microsoft Teams community call-April 2019
Microsoft 365 Developer
Getting Started with Microsoft Graph and Application Registration
Microsoft 365 Developer
Getting Started with Microsoft Graph and the Directory API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Microsoft Teams
Microsoft 365 Developer
Getting Started with Microsoft Graph Explorer
Microsoft 365 Developer
Getting Started with Microsoft Graph
Microsoft 365 Developer
Getting Started with Microsoft Graph and Mail API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Office 365 Groups
Microsoft 365 Developer
Getting Started with Microsoft Graph and the Calendar API
Microsoft 365 Developer
Getting Started with the Microsoft Graph Toolkit
Microsoft 365 Developer
Getting Started with Microsoft Graph and JavaScript SDKs
Microsoft 365 Developer
Getting Started with Microsoft Graph and .NET SDKs
Microsoft 365 Developer
Discover how businesses can be more productive with Microsoft 365 integrations
Microsoft 365 Developer
Adaptive Cards community call-May 2019
Microsoft 365 Developer
Office Add-ins community call-May 2019
Microsoft 365 Developer
Why We Built on Microsoft Teams
Microsoft 365 Developer
Microsoft Teams community call-May 2019
Microsoft 365 Developer
Microsoft Graph community call-June 2019
Microsoft 365 Developer
Build Angular SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
Office Add -ins community call-June 2019
Microsoft 365 Developer
Build Android native apps with the Microsoft Graph Android SDK - June 2019
Microsoft 365 Developer
Build MVC apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Authenticate and connect with Microsoft Graph - June 2019
Microsoft 365 Developer
Microsoft Graph data connect - June 2019
Microsoft 365 Developer
Change notifications with Microsoft Graph - June 2019
Microsoft 365 Developer
Build iOS native apps with the Microsoft Graph REST API - June 2019
Microsoft 365 Developer
Build Node.js Express apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Smart UI with Microsoft Graph - June 2019
Microsoft 365 Developer
Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Microsoft 365 Developer
Build UWP apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Build React SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
Getting Started with Microsoft Graph and Batching
Microsoft 365 Developer
Getting Started with Microsoft Graph and Change Notifications
Microsoft 365 Developer
Getting Started with Microsoft Graph and Consent Permissions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Education
Microsoft 365 Developer
Getting Started with Microsoft Graph and Financials
Microsoft 365 Developer
Getting Started with Microsoft Graph and Excel
Microsoft 365 Developer
Getting Started with Microsoft Graph and Data Connect
Microsoft 365 Developer
Getting Started with Microsoft Graph and Intune
Microsoft 365 Developer
Getting Started with Microsoft Graph and Notifications
Microsoft 365 Developer
Getting Started with Microsoft Graph and OneNote
Microsoft 365 Developer
Getting Started with Microsoft Graph and OneDrive
Microsoft 365 Developer
Getting Started with Microsoft Graph and Open Extensions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Paging
Microsoft 365 Developer
Getting Started with Microsoft Graph and Schema Extensions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Security API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Query Parameters
Microsoft 365 Developer
Getting Started with Microsoft Graph and Reporting API
Microsoft 365 Developer
More on: RAG Basics
View skill →Related Reads
📰
📰
📰
📰
AnswerSurvivalRAG: What Happens When RAG Finds the Answer, Then Drops It?
Medium · Machine Learning
A RAG evaluator that admits what it can't judge
Dev.to · Melissa D. Ellison
RAG on Google Cloud in Regulated Environments: A Lifecycle Playbook from Inception to…
Medium · Machine Learning
Solving One of the Hardest Problems in Code RAG: Context Retrieval
Medium · RAG
Chapters (9)
0:30 – Introduction
0:31
2:38 – Overview of custom engine agents - Career Genie demo
2:39
2:57 – Custom engine agent core skills
2:58
4:02 – Core components
4:03
4:22 – Retrieval Augmented Generation with Azure AI Search
4:23
5:00 – UX enhancements with Powered by AI kit
5:12
6:00 – Actions
6:01
6:56 – Build custom engine agents with Teams Toolkit from scratch
6:57
end – Try the Copilot Developer Camp Labs!
🎓
Tutor Explanation
DeepCamp AI