v2.5.8
March 6, 2026
Automate the full Gmail workflow with new tools and service account authentication
GmailTools has been extended with a broader set of email management functions and a new service account authentication path. Teams can now handle more of the Gmail workflow, including reading, drafting, sending, replying, labeling, and searching, directly from an agent, while platform teams gain a credential-free auth option suited for server-side and multi-user deployments.
from agno.agent import Agent
from agno.tools.google.gmail import GmailTools
agent = Agent(tools=[GmailTools()])
agent.print_response("Show me my latest 5 unread emails", markdown=True)
Details:
- New tools cover the full email lifecycle:
get_emails_by_date,get_emails_by_thread,send_email_reply,create_draft_email,mark_email_as_read,mark_email_as_unread,list_custom_labels,apply_label,remove_label, anddelete_custom_label - Service account authentication provides a governed, non-personal credential path for automated and multi-tenant workflows
- Existing OAuth credential flows (
creds,credentials_path,token_path) continue to work with no migration required - Use
include_toolsorexclude_toolsto expose only the subset of tools your agent needs
See Gmail docs for reference.
