I’d like to pass email content and attachments from Gmail to Pinecone. I use simply Gmail Trigger connected to Pinecone and it works fine.
However I cannot get both email content and the attachments. By defaul I only get the content, without attachments. If I toggle “download attachments” switch under Simplify, then I get the attachments but not the content.
Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.
```
<your workflow>
```
That implies to any JSON output you would like to share with us.
Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!
You have both. It is just they are saved under different variables, json and binary respectfully. See Data structure | n8n Docs. They also treated differently as a result.
I now updated my workflow on the original question.
You are right indeed that gmail trigger outputs both the binary and the json. They both arrive to Default Data Loader fine. But then the data loader can only be set to either json or binary. How can I design the workflow so that both the json and binary data are loaded to Pinecone ? If I need two data loaders how should I wire them up ?
There is no node to convert DOCX file to some other format that could be converted to a text of some sort before feeding it to a vector store. You would need to utilize 3rd party service to achieve that. See some discussions about it