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
- Basic configuration
- Manual configuration
You will need:
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
Costs
Costs
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.
API limits
API limits
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
This Card has no output.
Create Draft
Create Label
Delete Draft
This Card has no output.
Delete Label
This Card has no output.
Delete Message
This Card has no output.
Get Draft
Get Label
Get Message Attachment
Get Message Attachment From Mail
Get Thread
List Drafts
This Card has no input fields.
List Labels
This Card has no input fields.
List Threads
This Card has no input fields.
Send Draft
Trash Message
This Card has no output.
Trash Thread
This Card has no output.
Untrash Message
This Card has no output.
Untrash Thread
This Card has no output.