Triode
Triode is a visual programming tool I designed and built for Hexagram, as an add-on for their in-house cloud platform Saga. The original goal was to allow for quick and easy authoring of branching conversations and event flows like the ones in my game Subtext. However, the system is flexible enough to have other applications beyond that.
A Triode flow consists of a series of Action, Wait, and Decision blocks. Action and Event types are user-defined in Saga, so an Action block can do anything that a JavaScript function can do, from sending an SMS or email message to triggering an IoT device in a physical installation. Wait blocks can wait for any number of different event types (with arbitrary filters applied), or for a timer specified by a JavaScript expression.
Importantly, flows can also be nested to allow the same logic to be reused in multiple places. For instance, a flow can be created to ask a user to pick between two options in a text conversation:
This flow takes parameters that are passed in from the parent, which can be any JavaScript expression. So now the decision logic can be reused wherever it is needed.
Flows are authored through a web interface, built with native Web Components on the frontend and Node.js Express on the backend. Finished flows are saved to Hexagram's Saga platform, where they can be run for many users simultaneously.
Triode is now used in production to power experiences for Hexagram's clients. If you've got a project that it would be helpful for, feel free to reach out to them for a demo.