Handling PDF File Attachment in Email with OpenAI Assistant and Zapier Webhook

Hello,

I am currently developing a feature that requires the OpenAI Assistant to generate a PDF document and send it as an email attachment via a Zapier webhook. I am encountering an issue with the send_email_to_zapier function, which needs to handle the PDF file generated by the Assistant and include it as an attachment in the email.

Here’s a brief overview of the process:

  • The OpenAI Assistant is configured to create a PDF file based on certain user inputs.
  • Once the PDF is generated, I aim to send it as an email attachment through a Zapier webhook.
  • The problem arises when trying to include the generated PDF in the email data payload. The expected field for the file attachment ("file": {"type": "string", "description": "The attached file content encoded in base64"}) does not seem to be received by the send_email_to_zapier function properly.

I am looking for guidance on how to correctly pass the generated PDF from the Assistant