Git Product home page Git Product logo

Comments (4)

manthanhd avatar manthanhd commented on April 28, 2024

How might this work with persisted context? In real world, context will be persisted somewhere in a redis database. This means that as of now, the mapping will have to be relied upon the skill name.

Also, when a followUp flag is set, should the response automatically be marked final or can multiple skills mark their own followUps? How will this scale to multiple responses?

Potentially, upon a multiple response to multiple followups, the bot could split the response into a stack and then pass the response one by one to each of the followup skills who can then decide what to take off of the stack.

from talkify.

manthanhd avatar manthanhd commented on April 28, 2024

Mapping is relied upon the skill name.
Response is automatically marked as final.

from talkify.

manthanhd avatar manthanhd commented on April 28, 2024

How can a skill release a follow-up? Think about the following conversation:

YOU:[1]> I'd like to make a payment
BOT:[2]> Sure! What's your payment method? <----------- Lock acquired
YOU:[3]> You know what, nevermind.
BOT:[4]> No problem                <----------- Lock naturally released

Here the natural locking works quite well. However, it does not for the following:

YOU:[1]> I'd like to make a payment
BOT:[2]> Sure! What's your payment method? <----------- Lock acquired
YOU:[3]> Actually, what's my balance?
BOT:[4]> It is £350.00. <----------- Lock manually released, sentence gets re-evaluated.

from talkify.

manthanhd avatar manthanhd commented on April 28, 2024

In case 2, the skill will have to set a custom message to the response.message object and finish the execution like so:

response.message = new Message('ReevalRequested', 'Cannot process this message. Irrelavent to the skill.');
return response.final();

The code handling the bot, with the final callback to the resolve method could interpret the message and call the bot back for re-evaluation.

from talkify.

Related Issues (20)

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.