Git Product home page Git Product logo

Comments (4)

rampatra avatar rampatra commented on May 18, 2024

Hi,

Can you give a particular use case where you need to skip conversation to get the work done easily which would be instead cumbersome with the existing framework?

from jbot.

johkin avatar johkin commented on May 18, 2024

If you have a story with two or more branches, it would be nice if you could jump to the branch depending on the input.
I've been tinkering with jbot to create a time reporting bot, and when handling illness my story has at least two branches. The branches can't be handled by the backing queue, it would then require a graph for the conversation steps.

from jbot.

rampatra avatar rampatra commented on May 18, 2024

@johkin You may be right about jumping between conversation steps but I think your problem will be solvable with the existing queue as well. You can mention your conversation steps here and I can try to help.

For example, let's say you have a food ordering bot and the 2 branches according to you can be:

  1. User ordered pizza -> pizza size -> flavour -> quantity
  2. User ordered burger -> chicken/beef/pork burger -> quantity

Or you can have 1 branch as (with the existing conversation queue structure):

  1. Take order (pizza or burger) -> If pizza ask size & flavour and if burger ask type -> quantity

from jbot.

johkin avatar johkin commented on May 18, 2024

In my current example I'm trying to build a time-reporting bot, and the first case I've looked into is handling sickness.

Client: I'm feeling ill.
Bot: Are you ill?
Client: Yes/No
if (no) {
Bot: Oh, I misunderstood! [End conversation]
} else {
Bot: Have you been ill all day?
Client: Yes/No
if (yes) {
Bot: Noted! [End conversation]
} else {
Bot: How long have you been ill?
Client: Half day
Bot: Ok, noted. Get well! [End conversation]
}
}

This conversation can probably be refactored to something using the queue, but after looking at "wit.ai" which now supports branching it seems like a natural thing to support a graph instead of a queue.

from jbot.

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.