Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Documents, PDF & OCR

Documents, PDF & OCR

Fill a Google Docs Template with Images

When you run it, it copies a template document from Google Drive, finds its image placeholders and replaces them with your images.

What it does

OPTIONAL If you want to create multiple documents with multiple images then create a template in your GDrive folder with a placeholder image that you want to replace. This template will be copied each time you run the flow, and the ID of that new document will be passed to find image ID in Docx to find the relevant image to replace with your image url. If you are just doing this for a single document then remove the find and copy docx template node. If you do this step, follow the [n8n guide]({{ $env.WEBHOOK_URL }} on how to connect to your GDrive account.

The steps

  1. When clicking ‘Test workflow’
  2. Find Image ID in Docx
  3. Make file shareable publically (optional)
  4. Image URL
  5. Find & Copy Docx Template
  6. Own datasource
  7. Replace Image in Docx
  8. Download File - Docx
  9. Download File - PDF
  10. Error Handler
  11. Stopanderror 1
  12. Error Handler for 16bbf5da
  13. Error Handler for 60325192
  14. Error Handler for d33a913a

32 steps in total.

Similar automations