Skip to main content
Open in Hubv The Gmail integration allows your bot to chat with users via your Gmail address.
Once you’ve successfully configured the Gmail integration, the email address you provided will begin responding to all incoming emails as your bot. Please be aware of this behaviour before configuring the integration.

Setup

You will need:
1
In Botpress Studio, select Explore Hub in the upper-right corner.
2
Search for the Gmail integration, then select Install Integration.
3
In the Configuration menu, select Authorize Gmail.
4
Follow the instructions to connect Botpress to your Google account.
When using basic configuration, a Botpress-managed Gmail application will be used to connect to your Gmail account. However, actions taken by the bot will be attributed to the user who authorized the connection rather than the application.For this reason, we don’t recommend using personal Gmail accounts for this integration. You should set up a service account and use that account to authorize the connection.

Using the integration

Once you’ve successfully configured the integration, the email address you provided will begin responding to all incoming messages as your bot. If this is your desired behaviour, no additional setup is required. You can also use the integration’s Cards to interact with your Gmail inbox. This allows you to manage threads, drafts, attachments, and other data associated with your inbox.

Limitations

Botpress shall not be held responsible for any costs you may incur on the Google Cloud Platform while using the Gmail integration, should you choose to use the manual configuration mode. Ensure that you are aware of the costs associated with using the Gmail API and the Google Cloud Platform before using the manual configuration mode.
Standard Gmail API limitations apply to the Gmail integration in Botpress. These limitations include rate limits, message size restrictions, and other constraints imposed by the Gmail and Google Cloud platforms. Ensure that your bot adheres to these limitations to maintain optimal performance and reliability.More details are available in the Gmail API documentation.

Cards

Here’s a reference for all Cards available with the integration:

Change Message Labels

output
object
This Card has no output.

Create Draft

Create Label

Delete Draft

output
object
This Card has no output.

Delete Label

output
object
This Card has no output.

Delete Message

output
object
This Card has no output.

Get Draft

Get Label

Get Message Attachment

output
object

Get Message Attachment From Mail

output
object

Get Thread

List Drafts

input
object
This Card has no input fields.

List Labels

input
object
This Card has no input fields.

List Threads

input
object
This Card has no input fields.

Send Draft

Trash Message

output
object
This Card has no output.

Trash Thread

output
object
This Card has no output.

Untrash Message

output
object
This Card has no output.

Untrash Thread

output
object
This Card has no output.

Update Draft

Update Label

Last modified on January 20, 2026