- Express
- Botkit
This tool uses Express and Botkit to deploy a bot server that communicates with Telegram messaging. Visiting the root path allows you to upload a Twine HTML file which will "train" the bot with story dialog. This works by first converting the Twine to a graph object, then traversing the graph with Botkit dialog/thread building API. Once trained, you can interact with the bot through Telegram and navigate the story based on your responses to the bot.
- Each node name starts with a scene label/ID
- Normalize responses/variables
- yes
- no
- no response
- {VARIABLE_NAME}
- Would be better to set scene labels (e.g. 1.3A) as tags rather than the title
- NLU for better intents using DialogFlow, Wit, Watson, etc.
- Timing logic for "no response"
- Check length of message text to determine if it's short or long
- https://www.watershed.co.uk/studio/projects/tendencyto-spill-using-chatbot-storytelling-platform
- https://www.wordstream.com/blog/ws/2017/10/04/chatbots
yarn install
yarn dev
yarn build && yarn deploy