Skip to content

Stay on top of your health-tracker data with this GPT-4 powered assistant. [Microsoft Teams Global Hack 2023]

Notifications You must be signed in to change notification settings

ckauth/HACK_OuraTeamsAI

Repository files navigation

Oura Bot

Oura is an AI assistant named after a smart ring that helps track activity, readiness, and sleep. Its purpose is to act as a personal coach and care about the user's wellbeing. It consults the user's activity 🏃‍♀️, readiness ⚡, and sleep 😴 scores, along with other contextual data. Oura's replies are concise, using data from the ring, explaining interpretations in simple terms, and occasionally incorporating emojis to add a touch of lightheartedness ❤️.

TeamsOura

How to use this Oura app

You'll need your SECRET_OPENAI_API_KEY and SECRET_OURA_API_KEY keys. Place them into a file env/.env.local.user and see the magic happen 🪄.

Prerequisites

Debug

  • From Visual Studio Code: Start debugging the project by hitting the F5 key in Visual Studio Code.
  • Alternatively use the Run and Debug Activity Panel in Visual Studio Code and click the Run and Debug green arrow button.
  • From TeamsFx CLI:
    • Install ngrok and start your local tunnel service by running the command ngrok http 3978.
    • In the env/.env.local file, fill in the values for BOT_DOMAIN and BOT_ENDPOINT with your ngrok URL.
      BOT_DOMAIN=sample-id.ngrok.io
      BOT_ENDPOINT=https://sample-id.ngrok.io
      
    • Executing the command teamsfx provision --env local in your project directory.
    • Executing the command teamsfx deploy --env local in your project directory.
    • Executing the command teamsfx preview --env local in your project directory.

Edit the manifest

You can find the Teams app manifest in ./appPackage folder. The folder contains one manifest file:

  • manifest.json: Manifest file for Teams app running locally or running remotely (After deployed to Azure).

This file contains template arguments with ${{...}} statements which will be replaced at build time. You may add any extra properties or permissions you require to this file. See the schema reference for more information.

Deploy to Azure

Deploy your project to Azure by following these steps:

From Visual Studio Code From TeamsFx CLI
  • Open Teams Toolkit, and sign into Azure by clicking the Sign in to Azure under the ACCOUNTS section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click Provision from DEPLOYMENT section or open the command palette and select: Teams: Provision.
  • Open the Teams Toolkit and click Deploy or open the command palette and select: Teams: Deploy.
  • Run command teamsfx account login azure.
  • Run command teamsfx provision --env dev.
  • Run command: teamsfx deploy --env dev.

Note: Provisioning and deployment may incur charges to your Azure Subscription.

Preview

Once the provisioning and deployment steps are finished, you can preview your app:

  • From Visual Studio Code

    1. Open the Run and Debug Activity Panel.
    2. Select Launch Remote (Edge) or Launch Remote (Chrome) from the launch configuration drop-down.
    3. Press the Play (green arrow) button to launch your app - now running remotely from Azure.
  • From TeamsFx CLI: execute teamsfx preview --env dev in your project directory to launch your application.

Validate manifest file

To check that your manifest file is valid:

  • From Visual Studio Code: open the command palette and select: Teams: Validate Application.
  • From TeamsFx CLI: run command teamsfx validate in your project directory.

Package

  • From Visual Studio Code: open the Teams Toolkit and click Zip Teams App Package or open the command palette and select Teams: Zip Teams App Package.
  • Alternatively, from the command line run teamsfx package in the project directory.

Publish to Teams

Once deployed, you may want to distribute your application to your organization's internal app store in Teams. Your app will be submitted for admin approval.

  • From Visual Studio Code: open the Teams Toolkit and click Publish or open the command palette and select: Teams: Publish.
  • From TeamsFx CLI: run command teamsfx publish in your project directory.

Further reading

Bot

About

Stay on top of your health-tracker data with this GPT-4 powered assistant. [Microsoft Teams Global Hack 2023]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published