Generate dynamic reports with custom plugins

Hey there, we are having a very unique use case of populating a Figma template with production data and sharing prototypes and storing the raw the Figma file canvases.
Need some help with the approach to build plugins and storing, creating Figma templates, prototypes as a link and store files as and when report is generated.

Let me know if you guys have any ideas.

Thanks in advance