Text Generator

Dear Community, I hope someone can help me with this: I am using the Text Generator in my Obsidian Vault. I am wondering how I can generate text based on specific Metadata. I have a note called “Climate Solutions” and I need to draft a document based on all the documents that are connected to this note. Is there any solution for this? Any suggestions would be greatly appreciated.