Code Monkey home page Code Monkey logo

zyin.intentbot's People

Contributors

sidecus avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lulzzz

zyin.intentbot's Issues

Integrate with entities from intent service

NLP services like Luis supports entity extraction as part of the intent understanding.
It'll be better to connect PromptManager with those entities so that we don't have to ask user the info again.

It'll require IntentContext base class to have a new method which takes a parameter like a Dictionary and being able to automatically assign the entity value to corresponding user input properties.

Not too hard but didn't have time to implement it yet.

When user doesn't authentication in time (OAuthPromptSettings.TimeOut), our OAuthDialog fails with NullReference

OAuthPromptSettings.TimeOut configures how long the OAuth prompt will be waiting for user input. We are using 30 seconds right now. If a user doesn't authentication in time, next message will result in an empty TokenResponse.

We have code to save some user info based on the token (OAuthDialog.SaveUserInfoAsync). This code right now doesn't handle null token well so we end up with a NullReferenceException.

We should return a user friendly message instead here.

Unit test

I am just too lazy for this leisure time toy. If this turns out to be useful for others, I'll think about adding unit tests for the library to ensure quality.

I could not resist caching the token...

I just could not resist caching the user token, so I added some code to do that in user states.
Yeah it may not be that secure, it's not suggested.
It's just faster for "simple" single turn intents.

Opening this to track giving library user an option to turn the token caching behavior off.

Switch to AdaptiveCard templates

I create some simple classes to help json based adaptive card formatting.
Later I realized that AdaptiveCard team is working on something called AdaptiveCard templates which does exactly the same thing.

It's still in early stage, but we should switch to the new AdaptiveCard templates when it's stable.

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.