silentrob / superscript-editor

NOT MAINTAINED - A Editor for authoring chatbots with SuperScript
MIT License
27 stars 16 forks source link

Is it possible to collate multiple response values ? #24

Closed hipitihop closed 9 years ago

hipitihop commented 9 years ago

How do I structure a gambit reply chain where each reply asks for a separate piece of information and when the user responds, the value is stored and a further question is asked by the bot. At the end of the chain of question responses I want to call one function with all collected values as parameters.

e.g.

+ book event 
- what's the name ?
% what's the name ?
     + * ; <--- response1
     - what's the location ?
     % what's the location ?
         + * ; <- response2
         - ^myFuction(response1, response2)

Also how is this chain done in the editor, is the ">" button the same as specifying "%" in above notiation ?

@silentrob is there a slack or irc channel where I can ask these questions more interactively ?