Overview
Phinite’s Gmail predefined tool lets workspace assistants call Gmail APIs through DevStudio after you save a connection under Integrations → Predefined tools. Read, search, draft, send, and reply to emails…Predefined tools require a saved connection before they appear in Graph Studio’s tool picker. See Predefined Tools in GraphStudio.
What this integration enables
- Automate workflows using this predefined tool from agent graphs
- Connect once under Integrations and reuse across assistants
- Enable individual subtools per agent in Graph Studio
Required credentials
- Email
email(required) - App Password
app_password(required)
Setup steps
- Enable 2-Step Verification on the Google account and create an App Password under Google Account security settings.
- Use the Gmail address and app password in Phinite.
- Log into your Phinite workspace at app.phinite.ai
- Navigate to Integrations → Predefined tools
- Select Gmail
- Click + Add Configuration
- Enter the credential fields listed above
- Select assistants that should use this connection
- Click Save Configuration
Configure in Graph Studio
- Open an agent in Graph Studio
- Select the agent node → Tools tab → Add a new tool
- Choose GmailTool (or search for Gmail)
- Select your saved connection or add a new one
- Enable the subtools your workflow needs and save
Predefined tools
Phinite provides 11 subtools for Gmail:- Get Latest Emails: Get the latest X emails from the user’s inbox
- Get Emails From User: Get X number of emails from a specific user (name or email)
- Get Unread Emails: Get the X number of latest unread emails from the user’s inbox
- Get Starred Emails: Get X number of starred emails from the user’s inbox
- Get Emails By Context: Get X number of emails matching a specific context or search term
- Get Emails By Date: Get emails based on date range. start_date is an integer representing
- Get Emails By Thread: Retrieve all emails from a specific thread
- Search Emails: Get X number of emails based on a given natural text query. Searches
- Create Draft Email: Create and save a draft email. to and cc are comma separated string
- Send Email: Send an email immediately. to and cc are comma separated string of
- Send Email Reply: Respond to an existing email thread
Documentation & resources
- Official documentation:
https://developers.google.com/gmail/api - Phinite documentation: Gmail
Notes
- Store API keys and tokens securely; many providers show secrets only once
- Use separate connections for Dev, UAT, and Prod environments where possible
- Test with a minimal subtool call after saving credentials

