Steps of overall workflow of an app :
- Creating Project on Goggle Cloud Console, enable Gmail APIs and set OAuth 2.0 credentials.
- Set package.json and install required packages.
- Set up an Express application.
- Set oauth2Client credentials.
- Provide necessary Goggle API Scopes.
- Created an endpoint for Authentication URL.
- Copy queries from that URL and attach with next Endpoint to get User authorized and achieve further functionalities.
- Make Function for Labeling, checking for auto-replies and to auto-reply to unread mails.
- run that function for random intervals between 45 to 120 Seconds.