Trying to download PDF file posted to slack to pass to LLM
No error. But when I try to use the HTTP Request Node to get the file (from the URL after it was added to Slack), it only returns HTML. I have added the Response option and set it to “file”. This makes a binary file, but the file is still HTML and NOT the PDF. If I can get the PDF, I would upload it to OpenAI to provide a summary.
Is this even the correct way to go about getting a file from Slack?
Thank you @Franz . I’ve added a Get File slack node. Interestingly, it still seems to provide the same format as the Slack Trigger, in that it provides URLs, but not an actual binary file. That was why I introduced the HTTP Request Node. Here are some updated images.
For the sake of context, the Edit Fields node is there because I also need to capture the message from slack and use it, as well, when I pass the PDF to the LLM.
So, while I can “get” URLs of the file in Slack, I still don’t seem to be able to download it into n8n.
Unfortunately, this is not possible with the Slack node directly.
However, the HTTP node does allow you to use the same credentials. It works when using Slack OAuth2 API credentials.