Getting pdf data via Webhook and attaching to Gmail

Hello Make Community!

I’m working on a scenario that receives a pdf generated with ChatGPT via a Webhook module and attaches it to an email draft in Gmail. The problem is, the pdf always ends up blank within the email.

I’m trying my darnedest to troubleshoot this. I think that maybe the binary data is getting truncated in the webhook, but I’m not sure. Here’s the output bundle from the webhook module:

[ { "to": "``test@example.com``", "subject": "Test Email with Base64 Encoded Attachments", "body": "Test Body", "attachments": [ { "fileName": "1.pdf", "data": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDcKL0tpZHMgWyAzIDAgUiA0IDAgUiA1IDAgUiA2..." }, { "fileName": "2.pdf", "data": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDcKL0tpZHMgWyAzIDAgUiA0IDAgUiA1IDAgUiA2..." } ] } ]

I’m not sure if this is the Make.com UI truncating the data or if that’s actually what’s coming through.

Has anyone else encountered this issue?

Thanks!

Welcome to the Make community!

We’d love to help, however, you have not provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any issue/s and/or error/s.

Could you please upload screenshots of how you are attaching the data to the email?

To allow others to assist you with your scenario, please provide the following:

1. All Relevant Screenshots

We need to see what you’re working with to give you the best advice. Screenshots are extremely important because Make is a visual editor — a picture provides us with more context.

It would help us identify the issue by having screenshots of:

  • the full scenario,
  • any error messages,
  • individual module fields,
  • relevant filter settings (conditions), and
  • each module’s output bundles
  • any external services (spreadsheet headers, sample data, regex101.com, etc.)

You can upload images here using the Upload icon in the text editor:

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and avoid tracking cookies from third-party websites.

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

Sharing these details will make it easier for others to assist you.

Thank you for the reply. After some digging I found that Make webhooks have a data limit that I was exceeding. So I’m going to try to solve the problem in a different way.