To make it less ambiguous, you could let the user describe the diagram with what the software is supposed to do in some sort of more rigid unambiguous reduced English /s

This would have the added benefit of being able to describe to the computer exactly what you want to happen and how.

Feels like we're onto something here.

And them we can just use some process to turn those words into machine language. Maybe we can call it a compiler or an intepreter?