# Example workflow using GMail, ReadPDF and Dropbox

**URL:** <https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787>\
**Category:** Questions\
**Created:** [July 14, 2020, 12:08pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787 "2020-07-14T12:08:07Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 14, 2020, 12:08pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/1 "2020-07-14T12:08:07Z")

</div>

Hi all,

for a long time I’ve been trying to use n8n solution to automate a very simple workflow which would:

1. fetch email from GMail
2. check if the email is from specific email address and contains a single PDF attachment
3. if it does, it would extract PDF and the year value (current year is ok, but since PDF file name contains YEAR value, it would be greate to fetch that value from the PDF filename) and upload it to the specific folder on Dropbox (/example folder/$YEAR$ - invoices)

So far, I am stuck on ReadPDF node.

I have no idea how to configure that node in order to extract PDF file from input data and use that (binary data) as an input binary for Dropbox node

This is what I tried (would be logical to me)

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/c/ce9c9a8132ebe40fe0316beb73a518a8835c8a59.png)

Can someone please push me into the right direction?

Thank you very much for your help in advance!

Regards,  
Igor

P.S.  
I tried the same thing using [https://www.integromat.com/](https://www.integromat.com/) service (free for the test) and I was able to do it in half an hour. Don’t get me wrong. I really like n8n and would like to use it on my own, but even such a simple workflow something I can’t figure out in it. Not to mention something more difficult

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 14, 2020, 12:19pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/2 "2020-07-14T12:19:28Z")

</div>

Welcome to the community @mihha!

Sorry to hear that you have problems. Yes totally agree in two ways:

1. There is no example there yet. We are however in the process of adding documentation and an example for every node
2. The node is simply very bad in general and we should totally replace in the future

Anyway here a simple example:

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 14, 2020, 12:38pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/3 "2020-07-14T12:38:06Z")

</div>

Hi,

thank you very much for your prompt reaction and answer

Your example didn’t actually help me 😀

But I was able to pass the ReadPDF node successfully with lots of trials and errors

I have now another issue with the Dropbox node, but I believe that this is possibly a bug

The thing is that I have the following folder stricture in Dropbox  
/Documents/Računi/2020 - računi/

You can see that folder names have my local characters (Latin literals)

When I try to upload a file to that folder, I get the following error

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/5/523a3055f0ce8696b0dbf3e05dcc9430c588f018.png)

Is there some trick to use Latin characters in the folder names with Dropbox node?

Regards,  
Igor

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [July 14, 2020, 4:34pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/4 "2020-07-14T16:34:06Z")

</div>

@mihha cheking this out. Looks like you are not the only one having this issue [International characters in filenames - Dropbox Community](https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/International-characters-in-filenames/td-p/175750)

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 14, 2020, 4:49pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/5 "2020-07-14T16:49:38Z")

</div>

Hi,

thank you for checking this out. I am sure that this is something that can be fixed. I mentioned earlier Integromat service which I tested. They don’t have this kind of issue so I guess it is not impossible to resolve

I know that I shouldn’t compare with other services and I mean no harm by doing that. Just saying that it can be solved (somehow) I guess

Thank you for your effort

Regards,  
Igor

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [July 14, 2020, 5:46pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/6 "2020-07-14T17:46:04Z")

</div>

@mihha just fixed the issue. We will let you know when is released. Thanks for reporting it.

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 14, 2020, 5:57pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/7 "2020-07-14T17:57:49Z")

</div>

Wow! You are really fast!

Thank you very much for such a prompt reaction

Regards,  
Igor

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 15, 2020, 10:55am UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/8 "2020-07-15T10:55:29Z")

</div>

Got released with n8n@0.74.0

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 15, 2020, 11:13am UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/9 "2020-07-15T11:13:50Z")

</div>

Thank you for this notification and prompt reaction

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 15, 2020, 11:35am UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/10 "2020-07-15T11:35:49Z")

</div>

Hi,

this might be a silly question but how do I update to the latest version?

I tried to execute  
npm update -g n8n

but I still have version  
n8n/0.73.1 linux-x64 node-v14.5.0

Regards,  
Igor

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 15, 2020, 11:38am UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/11 "2020-07-15T11:38:46Z")

</div>

That is strange. This should work. Maybe if you are more specific it does. So maybe try something like:

```bash
npm update -g n8n@0.74.0
# or
npm update -g n8n@latest

```

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 15, 2020, 11:40am UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/12 "2020-07-15T11:40:46Z")

</div>

I already tried both

Maybe I am checking the version in a wrong way?

How can I check which version is actually installed?

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 15, 2020, 11:43am UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/13 "2020-07-15T11:43:13Z")

</div>

You can also check within n8n by typing:

```bash
n8n -v

```

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 15, 2020, 11:51am UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/14 "2020-07-15T11:51:49Z")

</div>

Yes, then I am doing it in a correct way

When I execute `npm update -g n8n@0.74.0` I get no progress in the CLI

[https://asciinema.org/a/kRXdsUHwx7Ics77mP2QL7YyJT](https://asciinema.org/a/kRXdsUHwx7Ics77mP2QL7YyJT)

Regards,  
Igor

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 15, 2020, 11:57am UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/15 "2020-07-15T11:57:13Z")

</div>

Sadly have no idea what is going on there and are also not able to help you to figure it out for exactly that reason. Are simply not an npm expert. It is an npm related problem and maybe a bug in it? Because the last released n8n version is 0.74.0:  
[https://www.npmjs.com/package/n8n](https://www.npmjs.com/package/n8n)

The only other things I can advise you to do are:

- use the n8n docker-images instead (that is generally the best way to run n8n)
- uninstall n8n and reinstall it
- upgrade npm

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 15, 2020, 12:02pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/16 "2020-07-15T12:02:14Z")

</div>

Hi,

I will try to figure it out

1. docker image is out of the question. I hate docker technology. People tend to use docker today but I have an impression that they don’t know what is going on behind the scene. I like to know what is going on and I like to set up my own system in a way I want it

2. npm is at latest version which is 14.5

3. I will try to reinstall n8n as a last resort

Thank you for all

Regards,  
igor

---

<div class="post-metadata">

**Author:** ![mihha](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mihha/32/1424_2.png) [@mihha](https://community.n8n.io/u/mihha)\
**Post date:** [July 15, 2020, 8:39pm UTC](https://community.n8n.io/t/example-workflow-using-gmail-readpdf-and-dropbox/1787/17 "2020-07-15T20:39:33Z")

</div>

I ended up removing completely nodejs, npm and all modules from the system

Only after that, I was able to install latest version of n8n again

No idea why to be honest, but I could afford it since this installation is the only nodejs installation on the server so far

Will dig into it at some time in the future
