Gmail
In order to read Gmail messages click Use this process and template of process will copy to your environment.
##Process description
System process
Generates regular signal to Reading process to get unread messages.
In the example - once in 10 min. (value is set in Wait
node).
Reading
Gets unread messages and send its ID one by one to Message info to get more detailed information.
Message info
Gets unread information by message ID.
Forms parameters for notifications about new message:
message_text
- text of the messagesubject
- message subjectfrom
- senderattachments
- links to download attachments
Transmits data in Mark messages as READ process to mark message as read.
Mark messages as READ
Marks messages as read. And to be precise, removes "UNREAD" label from message.
Launch
1) Customize processes and get ACCESS_TOKEN
, as it was written in template OAuth authentication.
On step 8 of instruction, create request for getting access_token with Reference = gmail
2) Copy state diagram ID State token
(ID_DIAGRAM) from the start node's information block.
You will need this value below.
3) In System process process set required values and press Deploy
:
email
- gmail addresstoken
- construction for getting ACCESS_TOKEN from State diagram
{{conv[ID_DIAGRAM].ref[gmail].access_token}}
4) In Message info process set logic for sending and processing the notification about new messages.
For example, in Sender through
Sender form logic
(available for process, placed in company)
5) Switch to View
mode of System process process, press New task
, and then Add task
.