← 返回
沟通协作 Key 中文

Composio Integration

Access and manage Gmail emails and Google Tasks via Composio's unified API with tools for sending, searching, creating tasks, and more.
通过 Composio 统一 API 访问和管理 Gmail 邮件与 Google 任务,支持发送、搜索、创建任务等功能。
rita5fr
沟通协作 clawhub v1.0.0 1 版本 99777 Key: 需要
★ 3
Stars
📥 3,072
下载
💾 93
安装
1
版本
#latest

概述

Composio Integration Skill

Access 600+ apps and services through Composio's unified API. Currently connected: Gmail and Google Tasks.

🔑 API Key Location

Saved securely in: /home/sidharth/clawd/memory/composio-credentials.md

Also in: ~/.bashrc (line 135) - auto-loads on terminal start

API Key: ak_AXxQjyexBuSiJXTYOTPB

📦 Connected Accounts

Gmail (ca_0cxayHx2BME1)

  • Email: sonukumar5fr@gmail.com
  • Status: ACTIVE ✅
  • Capabilities: Read/send emails, manage labels, drafts, contacts

Google Tasks (ca_kSNnWG4OHngG)

  • Email: sonukumar5fr@gmail.com
  • Status: ACTIVE ✅
  • Capabilities: Create/update/delete tasks and task lists

🛠️ Available Tools

Gmail Tools (20+)

  • GMAIL_FETCH_EMAILS - Fetch emails
  • GMAIL_SEND_EMAIL - Send emails
  • GMAIL_CREATE_EMAIL_DRAFT - Create draft
  • GMAIL_REPLY_TO_THREAD - Reply to email
  • GMAIL_SEARCH_EMAILS - Search inbox
  • GMAIL_ADD_LABEL_TO_EMAIL - Manage labels
  • GMAIL_DELETE_MESSAGE - Delete emails
  • And 13+ more...

Google Tasks Tools (17)

  • GOOGLETASKS_INSERT_TASK - Create task
  • GOOGLETASKS_LIST_TASKS - List tasks
  • GOOGLETASKS_LIST_ALL_TASKS - List all tasks across all lists
  • GOOGLETASKS_UPDATE_TASK - Update task
  • GOOGLETASKS_DELETE_TASK - Delete task
  • GOOGLETASKS_CREATE_TASK_LIST - Create task list
  • GOOGLETASKS_BULK_INSERT_TASKS - Bulk create tasks
  • And 10+ more...

📝 Usage Examples

List Available Tools

export COMPOSIO_API_KEY="ak_AXxQjyexBuSiJXTYOTPB"
node scripts/list-tools.mjs gmail        # Gmail tools only
node scripts/list-tools.mjs googletasks  # Google Tasks tools
node scripts/list-tools.mjs              # All tools (paginated)

Execute a Tool

Fetch Gmail Emails:

node scripts/execute-tool.mjs GMAIL_FETCH_EMAILS ca_0cxayHx2BME1 '{"maxResults":5}'

Create Google Task:

node scripts/execute-tool.mjs GOOGLETASKS_INSERT_TASK ca_kSNnWG4OHngG '{"title":"My Task","notes":"Task details"}'

Send Email:

node scripts/execute-tool.mjs GMAIL_SEND_EMAIL ca_0cxayHx2BME1 '{"to":"recipient@example.com","subject":"Hello","body":"Hi there!"}'

🔧 Implementation Details

Base URL (v3 API)

https://backend.composio.dev/api/v3/

Authentication

All requests use header:

x-api-key: ak_AXxQjyexBuSiJXTYOTPB

User ID

All tool executions use:

user_id: pg-test-228260f1-217f-40f6-a08a-41fdd0b8d8e6

Scripts Location

/home/sidharth/clawd/skills/composio-integration/scripts/
├── list-tools.mjs       # List available tools
├── execute-tool.mjs     # Execute any tool
└── (future scripts)

🎯 Common Use Cases

Morning Email Summary

node scripts/execute-tool.mjs GMAIL_FETCH_EMAILS ca_0cxayHx2BME1 '{"maxResults":10,"labelIds":["INBOX"]}'

Add Task from Email

  1. Fetch email
  2. Extract key info
  3. Create task:
  4. node scripts/execute-tool.mjs GOOGLETASKS_INSERT_TASK ca_kSNnWG4OHngG '{"title":"Follow up: Email subject","notes":"From: sender@example.com"}'
    

Send Follow-up Email

node scripts/execute-tool.mjs GMAIL_SEND_EMAIL ca_0cxayHx2BME1 '{
  "to":"client@example.com",
  "subject":"Re: Your inquiry",
  "body":"Thank you for reaching out..."
}'

🔄 Adding New Apps

To connect more apps (Calendar, Notion, Slack, etc.):

  1. Visit: https://app.composio.dev/apps
  2. Click "Connect" on desired app
  3. Complete OAuth flow
  4. Note the connected_account_id
  5. Use with execute-tool.mjs

📚 API Reference

Full v3 API Docs: https://docs.composio.dev/rest-api/

Key Endpoints Used:

  • GET /api/v3/tools - List tools
  • GET /api/v3/tools/:slug - Get tool schema
  • POST /api/v3/tools/execute/:slug - Execute tool
  • GET /api/v3/connected_accounts - List connections

✅ Tested & Working

  • ✅ API key authentication
  • ✅ Gmail email fetching
  • ✅ Tool discovery (600+ apps)
  • ✅ Connected account management
  • ✅ v3 API compliance (no deprecated endpoints)

🚀 Next Steps

  • [ ] Create wrapper functions for common tasks
  • [ ] Add Google Calendar integration
  • [ ] Build email-to-task automation
  • [ ] Create morning digest generator
  • [ ] Add error handling & retry logic

Last Updated: 2026-01-20

Status: ✅ Fully Operational

Integration Time: ~30 minutes

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 15:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,585
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,678
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 113 📥 52,404