You can follow the below steps to import or pipe emails from your Gmail or Google Workspace account.
1. Set connection in general settings
Set Gmail as a connection in Support → Settings → Email Piping → General, as shown in the below screenshot.
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-1-1-1024x609.png)
2. Create a Google Cloud Project
A Google Cloud project is required to use Google Workspace APIs. Click the link below to create and give the project a name. We will name it as SupportCandy.
https://console.cloud.google.com/projectcreate
![](https://supportcandy.net/wp-content/uploads/2024/07/workspace-2-1024x391.png)
3. Select the project
After you press the Create button in the above step, it may take up to a few minutes for the project to be available for selection. Once it is ready, select the project shown in the screenshot below.
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-3-1024x609.png)
4. Enable Gmail APIs
Click the Menu → APIs and services → Library
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-4-1024x503.png)
Search for “Gmail API” and click the result shown in the screenshot below.
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-5-1024x449.png)
Click Enable to enable the Gmail APIs, as shown in the below screenshot.
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-6-1024x263.png)
5. Setup OAuth consent screen
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-7-1024x506.png)
![](https://supportcandy.net/wp-content/uploads/2024/07/workspace-5-2-300x112.png)
![](https://supportcandy.net/wp-content/uploads/2024/07/workspace-5-3-300x135.png)
![](https://supportcandy.net/wp-content/uploads/2024/07/workspace-5-4-300x135.png)
![](https://supportcandy.net/wp-content/uploads/2024/07/workspace-5-5-300x159.png)
Add scopes for the app, click on ADD OR REMOVE SCOPES AND select all Gmail API scopes.
Click SAVE AND CONTINUE.
6. Create new credentials
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-15-1024x397.png)
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-16-1-1024x609.png)
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-17-1024x640.png)
![](https://supportcandy.net/wp-content/uploads/2022/08/gmail-18-1024x494.png)
7. Connect to the Gmail APIs
![](https://supportcandy.net/wp-content/uploads/2024/07/workspace-7-4-1024x505.png)
All done! Now new emails should imported as tickets.
8. Real-time CRON setup
WordPress CRON is not reliable for consistent email piping. It only gets executed when you have the visitor on the website. You can follow the below link if you haven’t set up real-time CRON for your WordPress website.
https://www.hostgator.com/help/article/how-to-replace-wordpress-cron-with-a-real-cron-job