by langgenius · v0.2.6
Dify's integration with Gmail that can help you read, send, list, draft, and manage Gmail emails with OAuth2.0 authentication.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
A comprehensive Gmail integration plugin for Dify that provides essential mail-related actions using OAuth2.0 authentication. This plugin extends beyond basic email reading to offer a complete Gmail management solution.
The plugin supports Gmail's powerful search syntax:
from:example@gmail.com, to:colleague@company.comsubject:meeting, subject:"project update"after:2024/01/01, before:2024/12/31is:unread, is:read, is:starred, is:importanthas:attachment, filename:pdflarger:10M, smaller:1Mlabel:work, label:personalfrom:boss@company.com subject:meeting after:2024/01/01 has:attachmentThe plugin requests the following Gmail API scopes:
https://www.googleapis.com/auth/gmail.readonly - Read emailshttps://www.googleapis.com/auth/gmail.send - Send emailshttps://www.googleapis.com/auth/gmail.compose - Create draftshttps://www.googleapis.com/auth/gmail.modify - Modify emails (labels, flags)https://www.googleapis.com/auth/gmail.labels - Manage labelstool: search_messages
parameters:
query: "in:inbox"
max_results: 10
include_body: false
tool: search_messages
parameters:
query: "is:important subject:urgent after:2024/01/01"
max_results: 20
include_body: true
tool: send_message
parameters:
to: "recipient@example.com"
subject: "Meeting Reminder"
body: "Hi, this is a reminder about our meeting tomorrow."
cc: "manager@example.com"
tool: draft_message
parameters:
to: "team@company.com"
subject: "Weekly Update"
body: "Here's our weekly team update..."
tool: flag_message
parameters:
message_id: "18c1a2b3d4e5f6g7"
action: "flag"
# First, get message details with attachments
tool: get_message
parameters:
message_id: "18c1a2b3d4e5f6g7"
include_attachments: true
# Then, download the attachment using the attachment_id from above
tool: download_attachment
parameters:
message_id: "18c1a2b3d4e5f6g7"
attachment_id: "ANGjdJ8wXYZ..."
| Tool | Description | Key Parameters |
|---|---|---|
search_messages | Advanced Gmail search | query, max_results, include_body |
get_message | Get detailed message information | message_id, include_body, include_attachments |
| Tool | Description | Key Parameters |
|---|---|---|
send_message | Send email immediately | to, subject, body, cc, bcc, reply_to |
draft_message | Create draft email | to, subject, body, cc, bcc, reply_to |
list_drafts | List draft emails | max_results, include_body |
send_draft | Send draft email | draft_id |
| Tool | Description | Key Parameters |
|---|---|---|
download_attachment | Download attachment content | message_id, attachment_id |
add_attachment_to_draft | Add file to draft | draft_id, file_path |
flag_message | Flag/unflag for follow-up | message_id, action |
The plugin provides comprehensive error handling:
This plugin is built using the Dify plugin framework and follows best practices:
This plugin is provided as-is for use with Dify. Please refer to Dify's licensing terms for usage rights.