Thanks for the article. This is how bots must be written, to avoid the proliferation of new useless ones (the previous failed hype wave).

This is awesome, because this is the exactly same concept that we built our platform ( I’ve been a game developer previously, so I created the initial Fred’s bot machine architecture as a game loop, for exactly the same reason that you pointed: “player state”. But we also carry “game state” and “game environment”.

All conversations have a permanent persistent state associated with them, which we call “attributes” in our machine. This allows for very complex and transactional bots to simpler ones.

Also attributes can be moved and updated anytime, as well new ones added dynamically at any stage (no schema constraint).

Example in a game:

Now transforming this to an example in our engine, considering an user assembling a pizza:

And this data is ALWAYS accessible anywhere in any message. Attributes are added/updated via API calls (store toppings, drinks, working delivery hours, etc), user input, etc.

With a single concept, basically ANY kind of bot, for any kind of company can be assembled, because everything is state and data transit.



Autistic Savant software engineer with 25+ years of development experience. Also an indie game developer and digital artist.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store