How to detect a gmail message


How can I detect a new Gmail message with the RPA Express in order to automate a quick response, I have already automated the login and body of the message using the Xpath, but I do not know how to detect when a new message arrives, because the idea is receive the message and answer it automatically, some idea.


I think the trick is how to create a view or folder in gmail that only contains unread messages:

Once you have that view you can loop at the emails in it and process eaxh one for example until RPAx detects the image of an empty folder (wait for image action).