Reading flow chat databases

My database in json has description of a flow chart. A flow chart editor can read the database and render the flow diagram. I would intend LLM to train on this syntax and semantics and create similar databases of flow charts as requested by users to it in spoken english, are there some prescriptions on how to reuse existing tools and techinques?