Send pdf that the user uploads to the webhook

Hi, does anyone know if it’s possible to send a PDF uploaded by the user to a webhook in PDF format? I mean, I can get the PDF to be sent to the webhook, but it arrives as text (string). Is there a way to send it to the webhook in PDF format exactly as the user uploads it? Another alternative I tried is dumping it into a large text file and then using the PDF conversion action to convert it into this format and send it to the webhook, but I’m not sure if this would involve high token costs

That’s not possible. The document is either immediately turned into embeddings in the Knowledge Base or (if it’s small) dumped in its entirety into the context window.

As far as I know, there is no way to access the document for Actions, but maybe @stephenasuncion has something to add

1 Like

Hi @bruno12345,

It’s not possible at the moment, but what you can do is send a link of the file and process it with actions, similar to how audio files are handled in @ab2308’s example:Uploading audio for transcription, get an analysis and then download it - #2 by ab2308

1 Like