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.
Sounds like an opinion about another's opinion, which in my opinion means you might be a dick. But that's just my opinion about your opinion. ๐ค๐ฌ