New user here. I am trying to download files from Gmail message. However, I only want to send to LlamaIndex PDF files (as Llama only takes PDF).
I had written some code (from Gemini), but when I try sending the file to LlamaIndex, it seems to fail. Llama returns “Cannot read properties of undefined (reading ‘name’)” error.
What is the error message (if any)?
Cannot read properties of undefined (reading ‘name’)
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Any assistance would be greatly appreciated. Thank you.
1) Splitting out attachments
Credit to @Jon for this tip. By doing it this way, you keep all the proper attributes when splitting out the file attachments from the email.
2) Using the LlamaParse API v1
I noticed you are using the older llamaParse API which is a bit flakey and may be deprecated very soon. I shared an updated example in the following post.