You can use activity get “IMAP Mail Message” for get email from gmail and configuration same below

Config
MailFolder : Input
Host: imap.gmail.com
Port: 993
Username: (your Gmail username)
Password: (your Gmail password)


Output

Note
If Error you must allow gmail less secure