How to describe a tree of communication with the bot in json?

I need to develop a format for the description of the communication with the bot in json, so you can feed this json to the engine and launch the bot.

No NLP we have no plans, just a tree of questions with preset answers. Did a little digging Botovo frameworks, but all that was found, focuses on the recognition of real speech and creates a maximum of one level of nesting in the conversation (they call it "context"). And I need a stupid bot with prepared questions/answers, but with unlimited levels of nesting.

In the end, I think you will need to describe something like a directed cyclic graph with the meta-information at each node.

Before you reinvent the wheel, I want to see if something similar already exists. If someone faced with similar tree format of communication is json, write in the comments links to resources please. I would be grateful.
July 9th 19 at 10:15

Find more questions by tags BotsJSON