First of all let me clarify that I am not asking for mentorship, with this question. More like pointing to the right direction, if there is such a direction. There is a strong chance that there is not something similar implemented, so in this case, don’t let me take your time.
My question is if there is a dialogue system in Inform7 (or in some other framework) , that is based on knowledge of a predefined set of data. For instance the protagonist to be able to query for any one of that data and to store that information in such a way, that the next answer to reveal even more data. Or the knowledge itself to enable the protagonist to make more specific questions. The answer I would like, is not how to implement such a system, of course, but only a reference of the type “have a look at this extension of Inform7” or “there is no such thing implemented” or “there is no such thing, but you could draw inspiration from this”. Nothing more than that! I have thought of a potential implementation, treating data as things that are visible or not, and the knowledge to be treated as “possession” of those things, but I am not certain it is the right approach.
First of all, re. the Inform 6/7 question: Inform 7 is a full programming language, and you do not need to drop to Inform 6 to code behavior. In the early years there were things that were hard to express in Inform 7, especially mathematical things or elements that accessed files or manipulated on-screen behavior, but most of those elements do now have an Inform 7 wrapper available. Occasionally people still choose to insert Inform 6 chunks inside an Inform 7 program for various reasons, but it isn’t required.
Likewise, when you say “to implement AI,” this is such a big and fuzzy question that it’s hard to answer without more of a breakdown.
Inform 7 is good — and indeed much better than Inform 6 — for handling rule-based decision-making and firing off character interactions within the model world; the main issue here is performance if you’re driving a large number of characters or asking them to plan over complex world state. The rule-based aspects of Inform 7 in fact have influenced other approaches to game AI in larger game applications, as Elan Ruskin discusses in one of his GDC talks.
For other AI approaches, you’d have to do quite a bit more work; for instance, it isn’t really designed to make use of any natural language processing methods outside of its own rich and complex parsing mechanism, and if you wanted to do something that for instance tried to guess what the player meant by words that weren’t in the game’s dictionary but might be similar to ones that were, you’d more likely use some kind of special pre-processing layer or a call out to an external script, because it doesn’t provide ways to e.g. access WordNet or a word2vec model. Likewise, it’s not designed to plug together with SpaCy or Google NLU or any of the external tools that have come into being over the past decade+ to help interpret the semantic structure of a piece of input. It might be interesting to explore how that would work, but that doesn’t exist currently.
Inform plus machine learning is a slightly more interesting point of conversation, because the TextWorld project exists, and there are researchers who are exploring how to use an Inform-based world model as a sandbox environment for training ML agents to solve a text-based game.
That’s different again from the idea of an ML agent designed not to solve an IF game but to be a companion or competitor within an IF game, for the sake of enhancing the player’s experience. There are relatively few IF games in which it would even really be meaningful to talk about a competitor character within a game, because most IF doesn’t have mechanics designed for competitive play (though Kerkerkruip might work). My old game When in Rome 2 also featured an NPC with dynamically selected characteristics who might work counter to the intentions of the player, and it was possible in some cases to be bested or even killed by this creature, if you went up against a clever one and it got resources ready faster than you could.
Now, on to the main question.



June 9 is the deadline to apply to exhibit a game or to speak at
Narrascope is set for June 14-16 in Boston, MA. This is a new games conference that will support interactive narrative, adventure games, and interactive fiction by bringing together writers, developers, and players. Both Graham Nelson and I will be there and will speak; I’ll be on a panel about Bandersnatch, and Graham will be updating people on the current status of Inform. 
“What manner of fool are you: the shrewd knave ever ready with a venomous quip? The renowned artiste at pains to stay above the political fray? The bawdy buffoon known as much for off-stage antics as on-stage mirth? Or the clever counselor whose real audience is the noble ear they whisper into? …The kingdom itself will be shaped by your choices!”
IntroComp is an annual contest that aims to give designers feedback on as-of-yet unpublished works that are not completely finished. Entries should be far enough along in the development process that they are playable, and all entries should also be interactive fiction. Cash prizes are available for the top few games (more information can be found on the site.)