Skip to main content

Hi all, I’m trying to explore the different ways we can programmatically create diagrams using the APIs. I’ve seen the standard import API, but it requires you to have a JSON. If we want to simply import a csv flowchart, how can we do that? Like this example here. I see that we can link data to different shapes within the JSON, but I’m not sure how to straight up just use the csv to make the flowchart. I’ve seen there’s an extension sdk, but I’d rather not go through such a huge hassle to make the complex extension myself if Lucid is already able to understand the csv as a flowchart with manual importing.

 

If there is a clean way to import the csv example that I linked using an API, please let me know what the JSON of that would look like. Thanks!

Hi ​@Goated Intern , thanks for posting. We don’t currently support importing CSVs in the process diagram format you referenced through our public APIs. However, you could certainly use a CSV like that to make the JSON file required for our Standard Import.

I recommend taking a look through the /standard-import folder in Lucid's repository of Sample Lucid REST Applications for an example .lucid ZIP file that you could use as a basis for a project to convert the CSV to the required Standard Import format. If you want to create a JSON from scratch, you could use one of these samples and modify it using the flowchart shapes examples in our our Standard Import docs.

I hope this helps! Feel free to reply with any additional questions below. 


Reply