A single interaction between user and bot. Could be a command to trigger a callback, a request for data or just a connecting line of dialogue.
Index signature for looping through attributes
intent that executes the bit, consecutively from
a prior bit, or with a
scope attribute to become a "global" entry point
to a one time interaction or continuing scene.
A subsequent bit can even lead back to its own parent or any other bit, creating a mesh of possible conversational pathways.
A bit without a
intent can still be executed by calling
doBit with its
id. This could be useful for defining integration logic
that does something outside chat, but can be triggered by chat scripts.
Function to call when executing bit (after any defined sends)
To send if response unmatched by branch
Function to call when response unmatched by branch
Regex or string converted to regex for branch to trigger bit
For scene and/or dialogue, branch running the bit (required)
Key for language processed intent to match for execution
Key/s (strings) for consecutive bits (implicitly creates scene)
Key/val options for scene and/or dialogue config
String/s to send when doing bit (must have this or callback)
Do stuff with current bot state (e.g. send replies and/or call callbacks)
Generated using TypeDoc