Giter VIP home page Giter VIP logo

cortana-samples's Introduction

Cortana Samples

You can create custom functionality for Cortana using the Cortana Skills kit or the legacy Voice Command (VCD) platform. Here is where you can find relevant samples:

Cortana Skills Kit

Currently Cortana skills are built on top of the Microsoft Bot Framework. As such, majority of Bot Framework samples can be used to create Cortana skills. Here are some places to find samples:

Cortana Skills Kit Resources

Platform Resources
Cortana Skills Kit Developer Dashboard
Documentation
Developer Forums (MSDN)
Stack Overflow forums (cortana-skills-kit)
Bot Framework Developer Portal
Documentation
BotBuilder SDK
BotBuilder SDK Samples
Stack Overflow Forums (botframework)
Luis.ai Developer Forums Developer Portal
Developer Forums (MSDN)
Stack Overflow Forums (luis)
Luis.ai UserVoice
Microsoft Cognitive Services Developer Site
Developer Forums

Voice Commands (VCD)

Here is a list of samples that showcase how you can join Cortana's team of experts:

Adventure Works Voice Command Sample

This app showcases how developers can integrate their apps with Cortana's speech and language understanding capabilities. When Cortana is listening, any of the following voice commands are supported. By default, "London", "Melbourne", and "Yosemite National Park" are provided as sample destinations. New destinations can be added in the app.

  • "Adventure Works, show trip to London"
  • "Adventure Works, when is my trip to London"
  • "Adventure Works, cancel trip to London"

Infix and suffix forms are also supported.

  • "Show trip to London in Adventure Works"
  • "Show my Adventure Works trip to London"

Duplicates can also be handled. For an example of handling disambiguation, add a second trip to London in the app and try the following:

  • "Adventure Works, cancel trip to London"

cortana-samples's People

Contributors

microsoft-github-policy-service[bot] avatar msftgits avatar rbrundritt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cortana-samples's Issues

Cortana "Ask me anything" box disabled in IOS

I have added my sample Bot to cortana. its working good in andriod device , when i ask like "ask sample bot" it will get connected to my bot . like wise I have been running my cortana skill set in andriod device , but in IPad or Iphone cortana when i ask like that , it get connect to bot and immediately the bottom textbox will be disabled , the box is grayed out, and I can't type into it .
Is there any unique specification for IOS cortana for connecting skill set ??
please help me out .!!

Cortana OAuth2 refresh token not working with Custom OAuth Server

Hello,

I want to use a Cortana Skill with our custom OAuth server.

The authorization_code is working fine.
Cortana calls me with:
POST /oauth/token?redirect_uri=https%3A%2F%2Fwww.bing.com%2Fagents%2Foauth&grant_type=authorization_code&code=7GKzNa%3F3P0eb5EkhYLp%21mJ38fkKm HTTP/1.1
Host: localhost:51138
User-Agent: Go-http-client/1.1
Content-Length: 126
Accept-Encoding: gzip, deflate
Authorization: Basic U2VzZU5hOjBFU0QycmppUGQ/MEpFTUhjMDAzdUd5ZXRYJE41cFZKTSE/OXYwcnZuP1UwcWgtTw==
Content-Type: application/x-www-form-urlencoded
X-Forwarded-For: 199.30.21.57
X-Forwarded-Proto: https
X-Original-Host: 6f3241e.ngrok.io

redirect_uri=https%3a%2f%2fwww.bing.com%2fagents%2foauth&grant_type=authorization_code&code=7GKzNa%3f3P0eb5EkhYLp!mveOQJ38fkKm

And my server returns a correct acces token:
{
"access_token": "RFPcxTAcK1OVhcsdf5GA3Adr-4Nn_cx0ZbrfJZhYutNkLJnwHRY!6Zc?tQt87UYk",
"token_type": "Bearer",
"expires_in": 599,
"refresh_token": "0M7LuK6PJ11E?xke$RFqPBJJB3S5tZzgK-seHqW8?V-BXLuSowq27JnE9ut?2@P?t0GU$nSzR3xG!MZ8bKKk@4xJMKmCtnRCcz?Lp8@oUHRvxhm$p-oE57gbDVNmv-NieJm4_BMeoBEn2G3PB7_qY12!P8bRWowP3dzoeqTNc2gHQGyr0MOq-X7eZ!D4ddBwJFe8oiXwYsL3w40bQgowwnMshmWkMkqnrm@16WAvNDZ0tB0Vx0nL8Peegv1@FEnW",
"scope": "offline_access"
}

An then the call from cortana to my skill is fine with the acces_token:
{
"type": "message",
"id": "HdGn4RogHcs",
"timestamp": "2017-11-02T11:25:02.9013553Z",
"serviceUrl": "https://CortanaBFChannelEastUs.azurewebsites.net/",
"channelId": "cortana",
"from": {
"id": "F7E7D5EF843ABE1C7EB07093D87290FEAF267AC662D90BF0FC245513E2977340"
},
"conversation": {
"id": "2f1d9129-5794-47b7-afa0-451b2d9e6e4f"
},
"recipient": {
"id": "sesechatbot"
},
"entities": [
{
"type": "AuthorizationToken",
"token": "RFPcxTAcK1OVhcsdf5GA3Adr-4Nn_cx0ZbrfJZhYutNkLJnwHRY!6Zc?tQt87UYk",
"status": 1
}

The problem is that when I call 10 minutes later, Cortana call me to refresh the token:
POST /oauth/token?redirect_uri=https%3A%2F%2Fwww.bing.com%2Fagents%2Foauth&grant_type=refresh_token&refresh_token=0M7LuK6PJ11E%3Fxke%24RFqPBJJB3S5tZzgK-seHqW8%3FV-BXLuSowq27JnE9ut%3F2%40P%3Ft0GU%24nSzR3xG%21MZ8bKKk%404xJMKmCtnRCcz%3FLp8%40oUHRvxhm%24p-oE57gbDVNmv-NieJm4_BMeoBEn2G3PB7_qY12%21P8bRWowP3dzoeqTNc2gHQGyr0MOq-X7eZ%21D4ddBwJFe8oiXwYsL3w40bQgowwnMshmWkMkqnrm%4016WAvNDZ0tB0Vx0nL8Peegv1%40FEnW HTTP/1.1
Host: localhost:51138
User-Agent: Go-http-client/1.1
Content-Length: 378
Accept-Encoding: gzip, deflate
Authorization: Basic U2VzZUNoYXRCb3RDb3J0YW5hOjBFU0QycmppUGQ/MEXRYJE41cFZKTSE/OXYwcnZuP1UwcWgtTw==
Content-Type: application/x-www-form-urlencoded
X-Forwarded-For: 157.55.7.170
X-Forwarded-Proto: https
X-Original-Host: 6f3241b.ngrok.io

redirect_uri=https%3a%2f%2fwww.bing.com%2fagents%2foauth&grant_type=refresh_token&refresh_token=0M7LuK6PJ11E%3fxke%24RFqPBJJB3S5tZzgK-seHqW8%3fV-BXLuSowq27JnE9ut%3f2%40P%3ft0GU%24nSzR3xG!MZ8bKKk%404xJMKmCtnRCcz%3fLp8%40oUHRvxhm%24p-oE57gbDVNmv-NieJm4_BMeoBEn2G3PB7_qY12!P8bRWowP3dzoeqTNc2gHQGyr0MOq-X7eZ!D4ddBwJFe8oiXwYsL3w40bQgowwnMshmWkMkqnrm%4016WAvNDZ0tB0Vx0nL8Peegv1%40FEnW

And my server answer a ok with the message:
{
"access_token": "wkoSu$MXuvgBU_Af?HDMush_!cO!FUzR-063HsrQX5uLeWD$1m3VzmmU8$P9z1k0",
"token_type": "Bearer",
"expires_in": 599,
"refresh_token": "pVZ6cotHA_gLuuR9wAiHR!1pbWVs$t@2at2Nu_xjxXO7c!K@teL@wKLWeHd9oZH!f3Mcytg8UpYmxdm@zXNAkp6XpErgsWHuUNQLTfSCe7LyDMt?_yzqkJ_jrsuBzT84@ms41LG1JGmq6BoxPJjOckFy9RyeZLbO_MsitTrRZb!k0@By_ybss1n_ZfzxmoG@GdB4SttrB?Q5OFizFmCBVMm9CL__gc5pWAaJVsfh85CH5WHxKu7$b_ScNKArje6C",
"scope": "offline_access"
}

The cortana calls me but with no AuthorizationToken

{
"type": "message",
"id": "64BvKsbXFVi",
"timestamp": "2017-11-02T11:33:17.0984314Z",
"serviceUrl": "https://CortanaBFChannelEastUs.azurewebsites.net/",
"channelId": "cortana",
"from": {
"id": "F7E7D5EF843ABE1C7EB07093D87290FEAF267AC662D90BF0FC245513E2977340"
},
"conversation": {
"id": "cdbaa5a5-8967-47be-8905-fa2433d9ebd7"
},
"recipient": {
"id": "sesechatbot"
},

What is wrong with the refresh token behaviour with cortana?

Privacy concern

Hi,

My girlfriend is working on a "paper" for her university to bring some answers regarding the Cortana API. How does it work when you use Cortana in your app ? Does the developer have access to the voice input data (eg : saving it into a file or sending back to a developer's server and then being able to read it in some way), and in the meantime does it also send the data back to Microsoft servers ? I hope that you will be able to give me a feedback for this, because I can't find anything in the official documentation. What kind of permission should the user accept and what consequences does it have ?
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.