GithubHelp home page GithubHelp logo

scorablebot's Introduction

scorablebot

scorablebot

Invocation order

  1. For all scorables bot framework does the following :
  • calls HasScore()
  • if HasScore() then GetScore()
  1. Bot framework then Compare scorables and
  2. Call PostAsync() on highest scorable (this is where to inject the dialog)
  3. Call DoneAsync() on all scorables

scorablebot's People

Contributors

jamesemann avatar

Stargazers

Leticia Croffi avatar Arun Thomas avatar Alexandru Fatu avatar Sean Campbell avatar

Watchers

James Cloos avatar  avatar Alexandru Fatu avatar Sean Campbell avatar  avatar

Forkers

piffarettig

scorablebot's Issues

Stack keeps growing

I really like this idea and kind of think that bots should you a graph or a state machine rather than a stack. However, using _stack.Call(new dialog) in this example, keeps adding to the stack and things keep piling up.
For example, I added
await context.PostAsync($"[ScorableCheckBalanceDialog] Which account - Current or Savings? (Frames: {context.Frames.Count})");
to ScorableCheckBalanceDialog.cs
and
await context.PostAsync($"[ScorableMakePaymentDialog] Who would you like to pay? (Frames: {context.Frames.Count})");
to ScorableMakePaymentDialog.cs

and after saying "make payment" and "check balance" repeatedly, the stack keeps growing and growing and never gets unwinded.

I'll try to see if there's a way but it would be really nice to suspend the current dialog when the scorable gets triggered (or resume if the user was in an active dialog) rather than keeping adding to the stack.

Gabo

Repeat prompt after scorable returns to previous dialog

Hi James

First of all, thank you for your video and coding example on building flexible conversations using Scorable dialogs. It is extremely helpful, and provides one's bot with an extra level of intelligence.

I started implementing scorable dialogs in our bot, and it works pretty well. However, on resume, I would like to re-prompt the user with the last bot prompt before the dialog was interrupted by the IScorable, without expecting the user to provide an input first.

Could you provide me with some advice in how I can achieve this?

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.