Skip to content

CareerGenie is a custom engine agent built using Teams Toolkit for Visual Studio Code. It utilizes Azure OpenAI models and a predefine prompts. It's a demo after going through Copilot Developer Camp https://aka.ms/copilotdevcamp

Notifications You must be signed in to change notification settings

mohammadamer/career-genie-custom-engine-agent

Repository files navigation

Overview of the Basic AI Chatbot template

This app template is built on top of Teams AI library. It showcases a bot app that responds to user questions like ChatGPT. This enables your users to talk with the AI bot in Teams.

Get started with the template

Prerequisites

To run the template in your local dev machine, you will need:

For local debugging using Teams Toolkit CLI, you need to do some extra steps described in Set up your Teams Toolkit CLI for local debugging.

  1. First, select the Teams Toolkit icon on the left in the VS Code toolbar.
  2. In file env/.env.testtool.user, fill in your Azure OpenAI key SECRET_AZURE_OPENAI_API_KEY=<your-key>, endpoint AZURE_OPENAI_ENDPOINT=<your-endpoint>, and deployment name AZURE_OPENAI_DEPLOYMENT_NAME=<your-deployment>.
  3. Press F5 to start debugging which launches your app in Teams App Test Tool using a web browser. Select Debug in Test Tool.
  4. You can send any message to get a response from the bot.

Congratulations! You are running an application that can now interact with users in Teams App Test Tool:

Basic AI Chatbot

What's included in the template

Folder Contents
.vscode VSCode files for debugging
appPackage Templates for the Teams application manifest
env Environment files
infra Templates for provisioning Azure resources
src The source code for the application

The following files can be customized and demonstrate an example implementation to get you started.

File Contents
src/index.ts Sets up the bot app server.
src/adapter.ts Sets up the bot adapter.
src/config.ts Defines the environment variables.
src/prompts/chat/skprompt.txt Defines the prompt.
src/prompts/chat/config.json Configures the prompt.
src/app/app.ts Handles business logics for the Basic AI Chatbot.

The following are Teams Toolkit specific project files. You can visit a complete guide on Github to understand how Teams Toolkit works.

File Contents
teamsapp.yml This is the main Teams Toolkit project file. The project file defines two primary things: Properties and configuration Stage definitions.
teamsapp.local.yml This overrides teamsapp.yml with actions that enable local execution and debugging.
teamsapp.testtool.yml This overrides teamsapp.yml with actions that enable local execution and debugging in Teams App Test Tool.

Extend the template

You can follow Build a Basic AI Chatbot in Teams to extend the Basic AI Chatbot template with more AI capabilities, like:

Additional information and references

About

CareerGenie is a custom engine agent built using Teams Toolkit for Visual Studio Code. It utilizes Azure OpenAI models and a predefine prompts. It's a demo after going through Copilot Developer Camp https://aka.ms/copilotdevcamp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published