In the era of digital transformation, having a custom copilot for your team can be a game-changer. A copilot can assist in various tasks, making your team more efficient and productive. This post will guide you on how to create your custom copilot and integrate it into Microsoft Teams.
Creating a custom copilot involves training an AI model with specific skills that your team needs. This could range from coding assistance to project management tasks. The key is to identify the tasks that take up most of your team’s time and automate them using the copilot.
Let’s get started with our no-code flow for creating our own custom copilot with our own custom data in markdown format.
Setting up a team environment
The very first thing we need is to install the Visual Studio Code extension named Teams Toolkit as we are going to perform this exercise inside Visual Studio Code aka VS Code.

Once the extension is installed, you will see a new icon on your toolbar, as shown below.

Click on the Teams icon on the toolbar and it will open up the screen as shown below. Select the options highlighted below.
![]()
Select the Chat With Your Data option so that we can ask questions on our own data.

Select the Azure AI Search option, as we need to index our custom data in Azure AI Search.

Select Python as your language and then select Azure OpenAI as our LLM.

At this point, you should have an instance of Azure OpenAI as well as Azure AI Search ready in the Azure portal. Grab those values and pass them on to the guided wizard.
If everything is done correctly, then you will see all the files listed in your VS Code under your app name:

Till here, we are done with our initial setup. The next steps are pretty straightforward, as we just need to follow the configuration mentioned in the README file.
Creating a Virtual Environment
It is recommended to create a virtual environment for every Python project so that we don’t mix up the dependencies. In this example, we already have the requirements.txt file ready under the src directory, so we will be using that as an input to create our virtual environment. Here is my requirements.txt.


Comments
Join the conversation! Your thoughts help the community grow.