This is my first time going instant! I’ll say that it has a distinctly ‘instant’ flavor, but it’s not altogether bad once you accept it for what it is. I went with verve because of a Wirecutter article that had it highly ranked. The other option I considered is an instant coffee from cometeer you have to keep frozen for up to 3 days before use. It seemed too fussy for me initially, but I think I’ll give it a try next time.
You’re describing what Oracle Intelligent Advisor (OIA) tries to deliver with their interviews. After you write your code, an interview can be automatically generated which collects data and infers which questions need to be asked based on previous answers. For data representation, it is unfortunately either captured in Microsoft Word or within their interview screens as logic, which does not meet your graphical representation needs. It seemed to be close enough that I thought it worth mentioning. It’s original use case was for tax purposes but I use it professionally to determine eligibility to public assistance programs.
Similar to @steph’s answer ErgoAI is a prolog derivative with a syntax rather similar to .dot (from what I gather). This tool would capture the data in a format you like, but does not generate a fillable form for you, but I believe it could be made to do so in a manner similar to OIA above.