How to get both content and attachments from Gmail?

Describe the problem/error/question

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.

How can I get both ?

What is the error message (if any)?

None

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.74.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: RaspberryPI OS

Welcome to the community @C_Yucel !

Tip for sharing information

Pasting your n8n workflow


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.

Hi @ihortom ,

Thanks for the warm welcome :slight_smile:

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 ?

Thank you

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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.