Skip to main content

Hello Team,

I am working on a project to extract process flow data from Lucidchart diagrams using the Lucid REST API.

My Goal:
To accurately reconstruct the complete process flow, including annotations provided by Sticky Notes.

The Blocker:
My current data extraction process successfully captures connected shapes and lines. However, many of our diagrams use Sticky Notes that are visually near, but not formally connected by lines, to flow elements. Since these sticky notes are not connected, they are completely missed when I traverse the diagram data extracted via the API. 

My Question:
When using the Lucid REST API, how can I access or associate Sticky Notes that are not physically connected to other shapes in the diagram, so that I can include them in my extracted flow data?

Any guidance on accessing these unconnected items via the API would be greatly appreciated.

Hey ​@vamsi 

 

We had the same problem. Our solution was to group the sticky note with the shape. As groups are exposed on the API you can re-construct the ‘connection’.

To ensure all notes are grouped, we introduced a conditional formatting rule to spot those.. 

 

Hope this helps - Cheers Tobi

 


Hi ​@tobi,

Thanks so much for the suggestion! Using groups to create an explicit link is a fantastic idea, and the conditional formatting rule to enforce it is a great process tip.

I ran a diagnostic script against our target document to check for any "Group" objects, and it turns out the diagrams we need to process don't use this grouping convention. Unfortunately, since we don't have control over how these source documents are created, we can't enforce this as a standard.

Do we have any other approaches which can cleverly identify the sticky notes which is near to any shape, and somehow that can be appended to the flow.


hey ​@vamsi - ah right, well I assumed you have control over the source :( Well in this case I can’t help further. I’d need access to the x/y coordinates of the shape which ASAFIK are not exposed on API.

 

 


but wait, doesn’t the API allow export as PDF/PNG export? One (dirty/one-time) approach could be to feed that to LLM and extract the connections?


You're right, the export option is the next logical step. My only worry is that our flowcharts can get quite large and complex. I'm worried that when we save them as an image, some of the smaller text might become illegible or the AI might get confused by crowded connections, leading to an inaccurate analysis.