Skip to content

[Feature Request] Integrate Gmail Tool #3189

@Pakchoioioi

Description

@Pakchoioioi

Required prerequisites

Motivation

Please integrate the Gmail tool into CAMEL, including both actions ( function_call) and triggers.
Each trigger must define clearly whether it is supported via Polling or Webhook.

Solution

Functional Reference

Tool-call:

  1. Send Email 【P0】
  2. Reply to Email / Reply to Email Thread【P0】
  3. Forward Email
  4. Create Email Draft【P0】
  5. Send Draft【P0】
  6. Fetch Emails (with filters & pagination)【P0】
  7. Fetch Message by ID / Thread ID
  8. Modify Email Labels (Add / Remove)
  9. Move to Trash / Delete Message
  10. Get Attachment【P0】
  11. List Threads
  12. List Drafts
  13. List Gmail Labels
  14. Create Label
  15. Delete Label
  16. Modify Thread Labels
  17. Get Profile
  18. Get Contacts / Search People【P0】

Triggers:

New Email Received (Webhook preferred, Polling fallback)
Triggered when a new email arrives in the mailbox.

New Email Matching Search (Webhook preferred, Polling fallback)【P0】
Triggered when an email matching specified criteria (sender, subject, keywords, labels) is received.
Enables automation like invoice processing, lead routing, or security alerts.

New Conversation Started
Triggered when a completely new conversation (thread) begins.
Useful for tracking customer support requests or new opportunities.

New Labeled Email (Polling)【P0】
Triggered when an email is assigned a specified label (e.g., “Urgent,” “Finance,” “Support”).
Common in enterprise workflows where labeling is automated by filters.

New Attachment Received (Polling)【P0】
Triggered when an incoming email contains one or more attachments.
Enterprise use case: automatically process invoices, hr, contracts, or reports.

Alternatives


Additional context

No response

Metadata

Metadata

Labels

EigentP0Task with high level priorityenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions