The Gmail Handler enables seamless interaction with the Gmail API for sending, reading, and managing emails. It handles authentication using OAuth 2.0, and provides methods to fetch user profiles, read emails with attachments, send new emails, and create drafts. It is designed to integrate Gmail into automation workflows securely and efficiently.Documentation Index
Fetch the complete documentation index at: https://docs.superagentx.ai/llms.txt
Use this file to discover all available pages before exploring further.
Example
To create the GmailHandler, initialize it with credentials JSON for OAuth:Retrieve Gmail profile information for the authenticated user.
Fetches the latest emails, including sender, receiver, subject, body, and attachments.
Send an email via Gmail.
Create a draft email that can be sent later.

