Introducing Custom Engine agents

Microsoft 365 Developer · Beginner ·🔍 RAG & Vector Search ·1y ago

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 Adaptive Cards community call-February 2019
Adaptive Cards community call-February 2019
Microsoft 365 Developer
2 PowerApps community call-February 2019
PowerApps community call-February 2019
Microsoft 365 Developer
3 Microsoft Graph community call-March 2019
Microsoft Graph community call-March 2019
Microsoft 365 Developer
4 Office Add ins community call-March 2019
Office Add ins community call-March 2019
Microsoft 365 Developer
5 PowerApps community call-March 2019
PowerApps community call-March 2019
Microsoft 365 Developer
6 Microsoft Teams community call-March 2019
Microsoft Teams community call-March 2019
Microsoft 365 Developer
7 Using React and Office UI Fabric React Components
Using React and Office UI Fabric React Components
Microsoft 365 Developer
8 Build Microsoft Teams customization using SharePoint Framework
Build Microsoft Teams customization using SharePoint Framework
Microsoft 365 Developer
9 Microsoft Graph community call-April 2019
Microsoft Graph community call-April 2019
Microsoft 365 Developer
10 Using Change Notifications and Track Changes with Microsoft Graph
Using Change Notifications and Track Changes with Microsoft Graph
Microsoft 365 Developer
11 Office Add Ins community call-April 2019
Office Add Ins community call-April 2019
Microsoft 365 Developer
12 Adaptive Cards community call-April 2019
Adaptive Cards community call-April 2019
Microsoft 365 Developer
13 Microsoft Teams community call-April 2019
Microsoft Teams community call-April 2019
Microsoft 365 Developer
14 Getting Started with Microsoft Graph and Application Registration
Getting Started with Microsoft Graph and Application Registration
Microsoft 365 Developer
15 Getting Started with Microsoft Graph and the Directory API
Getting Started with Microsoft Graph and the Directory API
Microsoft 365 Developer
16 Getting Started with Microsoft Graph and Microsoft Teams
Getting Started with Microsoft Graph and Microsoft Teams
Microsoft 365 Developer
17 Getting Started with Microsoft Graph Explorer
Getting Started with Microsoft Graph Explorer
Microsoft 365 Developer
18 Getting Started with Microsoft Graph
Getting Started with Microsoft Graph
Microsoft 365 Developer
19 Getting Started with Microsoft Graph and Mail API
Getting Started with Microsoft Graph and Mail API
Microsoft 365 Developer
20 Getting Started with Microsoft Graph and Office 365 Groups
Getting Started with Microsoft Graph and Office 365 Groups
Microsoft 365 Developer
21 Getting Started with Microsoft Graph and the Calendar API
Getting Started with Microsoft Graph and the Calendar API
Microsoft 365 Developer
22 Getting Started with the Microsoft Graph Toolkit
Getting Started with the Microsoft Graph Toolkit
Microsoft 365 Developer
23 Getting Started with Microsoft Graph and JavaScript SDKs
Getting Started with Microsoft Graph and JavaScript SDKs
Microsoft 365 Developer
24 Getting Started with Microsoft Graph and .NET SDKs
Getting Started with Microsoft Graph and .NET SDKs
Microsoft 365 Developer
25 Discover how businesses can be more productive with Microsoft 365 integrations
Discover how businesses can be more productive with Microsoft 365 integrations
Microsoft 365 Developer
26 Adaptive Cards community call-May 2019
Adaptive Cards community call-May 2019
Microsoft 365 Developer
27 Office Add-ins community call-May 2019
Office Add-ins community call-May 2019
Microsoft 365 Developer
28 Why We Built on Microsoft Teams
Why We Built on Microsoft Teams
Microsoft 365 Developer
29 Microsoft Teams community call-May 2019
Microsoft Teams community call-May 2019
Microsoft 365 Developer
30 Microsoft Graph community call-June 2019
Microsoft Graph community call-June 2019
Microsoft 365 Developer
31 Build Angular SPA's with Microsoft Graph - June 2019
Build Angular SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
32 Office Add -ins community call-June 2019
Office Add -ins community call-June 2019
Microsoft 365 Developer
33 Build Android native apps with the Microsoft Graph Android SDK - June 2019
Build Android native apps with the Microsoft Graph Android SDK - June 2019
Microsoft 365 Developer
34 Build MVC apps with Microsoft Graph - June 2019
Build MVC apps with Microsoft Graph - June 2019
Microsoft 365 Developer
35 Authenticate and connect with Microsoft Graph - June 2019
Authenticate and connect with Microsoft Graph - June 2019
Microsoft 365 Developer
36 Microsoft Graph data connect - June 2019
Microsoft Graph data connect - June 2019
Microsoft 365 Developer
37 Change notifications with Microsoft Graph - June 2019
Change notifications with Microsoft Graph - June 2019
Microsoft 365 Developer
38 Build iOS native apps with the Microsoft Graph REST API - June 2019
Build iOS native apps with the Microsoft Graph REST API - June 2019
Microsoft 365 Developer
39 Build Node.js Express apps with Microsoft Graph - June 2019
Build Node.js Express apps with Microsoft Graph - June 2019
Microsoft 365 Developer
40 Smart UI with Microsoft Graph - June 2019
Smart UI with Microsoft Graph - June 2019
Microsoft 365 Developer
41 Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Microsoft 365 Developer
42 Build UWP apps with Microsoft Graph - June 2019
Build UWP apps with Microsoft Graph - June 2019
Microsoft 365 Developer
43 Build React SPA's with Microsoft Graph - June 2019
Build React SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
44 Getting Started with Microsoft Graph and Batching
Getting Started with Microsoft Graph and Batching
Microsoft 365 Developer
45 Getting Started with Microsoft Graph and Change Notifications
Getting Started with Microsoft Graph and Change Notifications
Microsoft 365 Developer
46 Getting Started with Microsoft Graph and Consent Permissions
Getting Started with Microsoft Graph and Consent Permissions
Microsoft 365 Developer
47 Getting Started with Microsoft Graph and Education
Getting Started with Microsoft Graph and Education
Microsoft 365 Developer
48 Getting Started with Microsoft Graph and Financials
Getting Started with Microsoft Graph and Financials
Microsoft 365 Developer
49 Getting Started with Microsoft Graph and Excel
Getting Started with Microsoft Graph and Excel
Microsoft 365 Developer
50 Getting Started with Microsoft Graph and Data Connect
Getting Started with Microsoft Graph and Data Connect
Microsoft 365 Developer
51 Getting Started with Microsoft Graph and Intune
Getting Started with Microsoft Graph and Intune
Microsoft 365 Developer
52 Getting Started with Microsoft Graph and Notifications
Getting Started with Microsoft Graph and Notifications
Microsoft 365 Developer
53 Getting Started with Microsoft Graph and OneNote
Getting Started with Microsoft Graph and OneNote
Microsoft 365 Developer
54 Getting Started with Microsoft Graph and OneDrive
Getting Started with Microsoft Graph and OneDrive
Microsoft 365 Developer
55 Getting Started with Microsoft Graph and Open Extensions
Getting Started with Microsoft Graph and Open Extensions
Microsoft 365 Developer
56 Getting Started with Microsoft Graph and Paging
Getting Started with Microsoft Graph and Paging
Microsoft 365 Developer
57 Getting Started with Microsoft Graph and Schema Extensions
Getting Started with Microsoft Graph and Schema Extensions
Microsoft 365 Developer
58 Getting Started with Microsoft Graph and Security API
Getting Started with Microsoft Graph and Security API
Microsoft 365 Developer
59 Getting Started with Microsoft Graph and Query Parameters
Getting Started with Microsoft Graph and Query Parameters
Microsoft 365 Developer
60 Getting Started with Microsoft Graph and Reporting API
Getting Started with Microsoft Graph and Reporting API
Microsoft 365 Developer

This video teaches how to build custom engine agents, like Career Genie, using Teams AI Library, Azure OpenAI, and RAG with Azure AI Search, and demonstrates how to create a co-pilot like user experience. It covers the core components of a custom engine agent, including AI components, prompts, and actions, and shows how to customize the user experience using the powered by AI kit in Teams AI Library.

Key Takeaways
  1. Create a new custom engine agent using Teams Toolkit in VS Code
  2. Select the language and enter Azure OpenAI keys
  3. Update the skap prompt with the agent's behavior
  4. Test the agent using Teams App Test Tool
  5. Integrate Azure AI Search as a data source
  6. Customize the user experience using powered by AI kit
  7. Add authentication and actions to the agent
💡 Custom engine agents can be built using Teams AI Library, Azure OpenAI, and RAG with Azure AI Search to create AI-powered chatbots with a co-pilot like user experience.

Related Reads

📰
AnswerSurvivalRAG: What Happens When RAG Finds the Answer, Then Drops It?
Learn how RAG systems can fail even when they find the correct answer, and why it matters for reliable AI performance
Medium · Machine Learning
📰
A RAG evaluator that admits what it can't judge
Learn how to build a reliable RAG evaluator that acknowledges its limitations, a crucial aspect of AI safety and robustness
Dev.to · Melissa D. Ellison
📰
RAG on Google Cloud in Regulated Environments: A Lifecycle Playbook from Inception to…
Learn to implement RAG on Google Cloud in regulated environments with a lifecycle playbook
Medium · Machine Learning
📰
Solving One of the Hardest Problems in Code RAG: Context Retrieval
Learn to solve context retrieval in code RAG systems, a crucial challenge in automation code generation, and improve your skills in RAG and code analysis.
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!
Up next
RRF vs DBSF with Qdrant: Hybrid Retrieval Fusion for RAG in Python
Professor Py: AI Engineering
Watch →