Simplify the flow

Hi, I’m having some issues with a flow that pulls data from Postgres, inserts it into a Google Docs template based on company_customer, adds a table row, and creates a PDF.
Seeing that the flow is very long, I want to simplify the flow. Because actually the flow for NEI, OE, and TEI is the same, while for OFN and GMT it is the same.
Is there a way to simplify this flow?

As much information as a screenshot and context around it can provide, you could try putting some of the entities like document IDs et al into variables and use expressions in your other nodes like gDrive read/write/copy file instead of literals.

I’ve written using variables and using expressions but still confused on how to simplify this flow

Why not posting the workflow using </> button? There is no way to see what’s inside the nodes behind the screenshot. Also pin some data that otherwise wouldn’t be available due to restricted API access.

Here is how: How to get help on n8n community forum fast · GitHub

You can also edit any pinned data to strip sensitive information before posting.

I can’t add a workflow using the </> button because it exceeds the existing limit.

You mentioned there are two groups, each containing subprocesses that share some similarities.

Select the nodes that are common and other that belong so a smaller group (i.e. excluding the bigger group) and post. Hopefully this fit the limit.