🧠

邮件上下文智能分析与推理引擎

iGPT email ask · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
AI 增强 安全 A 级 作者 sammy-spk 公开目录收录
1k 下载 2 安装 3.1k 收藏 10 浏览

简介

基于 iGPT Context Engine 的邮件智能分析工具,支持跨线程推理、任务提取与结构化输出,无需本地文件访问,API 密钥级隔离保障数据安全。

原始描述

Secure, per-user-isolated email reasoning and analysis via the iGPT Context Engine API. Summarizes threads, extracts tasks and decisions, detects sentiment,...

通过你的 Agent 添加

安装目录:igpt-email-ask/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/igpt-email-ask/
Codex CLI~/.codex/skills/igpt-email-ask/
DeepSeek Harness~/.agents/skills/igpt-email-ask/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

igpt-email-ask 是一款面向个人与企业用户的邮件上下文推理工具,通过 iGPT Context Engine API 实现对用户授权邮箱的深度分析。区别于传统邮件检索工具,该技能能够重建完整的对话线程(包括回复、转发、抄送关系),识别决策责任人、待办事项状态及潜在风险点。用户可通过自然语言提问获取摘要、提取结构化数据(JSON 格式)、分析情感倾向或生成会议简报。支持三级质量模式(normal/high/reasoning)匹配不同复杂度需求,并提供 Server-Sent Events (SSE) 流式响应以优化实时交互体验。

显著优点

  1. 深度上下文理解:突破单封邮件限制,实现跨线程、跨时间线的语义关联与推理;
  2. 安全架构设计:采用 API 密钥级用户隔离,OAuth 只读授权,无本地文件系统访问,HTTPS 全链路加密;
  3. 灵活输出格式:支持纯文本、非结构化 JSON 及 JSON Schema 强校验结构化输出,便于下游系统集成;
  4. 质量分级机制:三级推理深度(normal/high/reasoning)让用户在响应速度与分析深度间按需取舍;
  5. 流式响应支持:SSE 流式传输配合指数退避重试机制,提升大规模数据分析场景下的用户体验与稳定性。

潜在缺点或局限性

  1. 前置依赖较重:必须完成 iGPT API 密钥配置及邮箱 OAuth 授权流程后方可使用,新用户上手门槛相对较高;
  2. 生态绑定:深度依赖 iGPT 专有 API 与 Python SDK(igptai),迁移成本较高,存在供应商锁定风险;
  3. 离线不可用:纯云端推理架构,无网络环境或 API 服务中断时完全不可用;
  4. 隐私顾虑:尽管官方声称"无数据保留",但邮件内容仍需传输至 iGPT 服务端处理,对敏感通信场景可能存在合规疑虑;
  5. 成本不透明:文档未明确提及定价模型,企业级高频调用场景下的成本预估存在不确定性。

适合人群

  • 需要高效处理大量商务邮件、提取决策与待办事项的职场人士(高管、项目经理、销售);
  • 希望自动化生成客户沟通简报、跟踪 deal 进展的销售与商务拓展团队;
  • 寻求将非结构化邮件数据转化为结构化任务系统的效率工具开发者;
  • 注重数据隔离与安全合规、同时愿意接受云服务架构的企业用户。

常规风险

  • 授权失效风险:OAuth token 过期或用户撤销授权将导致服务中断,需设计监控与重授权机制;
  • API 速率与配额限制:高频调用可能触发限流,生产环境需实现请求队列与降级策略;
  • 推理质量波动:复杂跨线程问题在 normal 模式下可能出现信息遗漏,关键业务建议采用 reasoning 模式并人工复核;
  • 第三方服务依赖:iGPT 平台稳定性、定价政策及数据处理方式变化将直接影响本技能的可用性与合规性。

技能正文


name: igpt-email-ask description: > Secure, per-user-isolated email reasoning and analysis via the iGPT Context Engine API. Summarizes threads, extracts tasks and decisions, detects sentiment, and reasons across multiple conversations -- no shell access, no filesystem access, API-key scoped only. Supports structured JSON output with schema validation and streaming (SSE). Use when the user needs analysis, summaries, structured data extraction, or answers that require understanding email context. For retrieval/lookup only, use the companion skill igpt-email-search. homepage: https://igpt.ai/hub/playground/ metadata: {"clawdbot":{"emoji":"🧠","requires":{"env":["IGPT_API_KEY"]},"primaryEnv":"IGPT_API_KEY"},"author":"igptai","version":"1.0.0","license":"MIT","tags":["email","analysis","reasoning","summarization","context-engine","productivity"]}

iGPT Email Ask

Ask questions about a user's email and get reasoned, structured answers. Powered by iGPT's Context Engine, which reconstructs conversations, decisions, ownership, and intent across time.

What This Skill Does

This skill queries iGPT's recall/ask endpoint to generate answers grounded in a user's connected email data. Unlike basic retrieval, the Context Engine:

  • Reconstructs full conversation threads across replies, forwards, and CCs
  • Identifies who decided what, who owns what, and what's still open
  • Extracts structured data (tasks, deadlines, contacts, risks) from unstructured email
  • Supports multiple quality tiers for different complexity levels
  • Returns text, JSON, or schema-validated structured output
  • Supports streaming (SSE) for real-time responses

When to Use This Skill

  • Summarize what happened in a thread or across threads
  • Extract action items, decisions, or open questions
  • Analyze sentiment or risk in deal/customer threads
  • Answer questions that require understanding context across multiple emails
  • Generate structured data from email content (JSON, schema-validated)
  • Prepare briefings before meetings based on recent correspondence

Prerequisites

  1. An iGPT API key (get one at https://igpt.ai/hub/apikeys/)
  2. A connected email datasource -- the user must have completed OAuth authorization via connectors/authorize before ask will return results. You can check connection status with datasources.list().
  3. Python >= 3.8 with the igptai package installed

Setup

pip install igptai

Set your API key as an environment variable:

export IGPT_API_KEY="your-api-key-here"

Usage

Basic: Ask a question

from igptai import IGPT
import os

igpt = IGPT(api_key=os.environ["IGPT_API_KEY"], user="user_123")

res = igpt.recall.ask(input="Summarize key risks, decisions, and next steps from this week's meetings.")
if res is not None and res.get("error"):
    print("iGPT error:", res)
else:
    print(res)

Get JSON output

Pass output_format="json" for unstructured JSON, or provide a schema for validated structured output:

# Simple JSON output
res = igpt.recall.ask(
    input="What are the open action items from this week?",
    output_format="json"
)

# Schema-validated structured output
res = igpt.recall.ask(
    input="Open action items from this week",
    quality="cef-1-normal",
    output_format={
        "strict": True,
        "schema": {
            "type": "object",
            "required": ["action_items"],
            "additionalProperties": False,
            "properties": {
                "action_items": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "required": ["title", "owner", "due_date"],
                        "properties": {
                            "title": {"type": "string"},
                            "owner": {"type": "string"},
                            "due_date": {"type": "string"}
                        }
                    }
                }
            }
        }
    }
)
print(res)

Example response:

{
    "action_items": [
        {
            "title": "Approve revised Q1 budget allocation",
            "owner": "Dvir Ben-Aroya",
            "due_date": "2026-01-15"
        },
        {
            "title": "Approve final FY2026 strategic priorities",
            "owner": "Board of Directors",
            "due_date": "2026-01-31"
        }
    ]
}

Use quality tiers

iGPT's Context Engine has three quality tiers:

# Normal: fast, good for straightforward questions
res = igpt.recall.ask(
    input="When is my next meeting with Acme Corp?",
    quality="cef-1-normal"
)

# High: deeper reasoning, better for complex multi-thread analysis
res = igpt.recall.ask(
    input="What is the current negotiation status with Acme Corp and what leverage do we have?",
    quality="cef-1-high"
)

# Reasoning: maximum depth, for complex cross-thread synthesis
res = igpt.recall.ask(
    input="Across all communication with Acme over the past quarter, what patterns suggest risk and what should we do about it?",
    quality="cef-1-reasoning"
)

Stream responses

Streaming returns parsed JSON chunks (dicts), not raw text. Extract content from each chunk:

stream = igpt.recall.ask(
    input="Walk me through the timeline of the Acme deal from first contact to now.",
    stream=True
)

for chunk in stream:
    if isinstance(chunk, dict) and chunk.get("error"):
        print("Stream error:", chunk)
        break
    # Each chunk is a parsed JSON dict
    print(chunk)

Streaming is resilient: if the connection breaks, the iterator yields an error chunk and finishes rather than throwing.

Check datasource connection before asking

# Verify user has a connected datasource
status = igpt.datasources.list()
if status is not None and not status.get("error"):
    print("Connected datasources:", status)
else:
    # Connect a datasource first
    auth = igpt.connectors.authorize(service="spike", scope="messages")
    print("Open this URL to authorize:", auth.get("url"))

Parameters

Parameter Type Required Description
input string Yes The prompt or question to ask.
user string Yes (or set in constructor) Unique user identifier scoping the query to their connected data. Per-call value overrides constructor default.
stream boolean No (default: false) If true, returns a generator yielding parsed JSON dicts via SSE.
quality string No Context Engine quality tier: "cef-1-normal", "cef-1-high", or "cef-1-reasoning".
output_format string or object No "text" (default), "json", or {"strict": true, "schema": <JSON Schema>} for validated structured output.

Error Handling

The SDK does not throw exceptions. It returns normalized error objects:

res = igpt.recall.ask(input="What happened in yesterday's board meeting?")

if res is not None and res.get("error"):
    error = res["error"]
    if error == "auth":
        print("Check your API key")
    elif error == "params":
        print("Check your request parameters")
    elif error == "network_error":
        print("Network issue -- the SDK retries with exponential backoff (3 attempts by default) before returning this")
else:
    print(res)

External Endpoints

This skill communicates exclusively with:

  • https://api.igpt.ai/v1/recall/ask/ -- the reasoning endpoint
  • https://api.igpt.ai/v1/connectors/authorize/ -- only during initial datasource connection setup
  • https://api.igpt.ai/v1/datasources/list/ -- to check connection status

No other external endpoints are contacted. No data is sent to any third-party service. The igptai PyPI package source is available at https://github.com/igptai/igpt-python.

Security & Privacy

  • API-key scoped: All requests authenticate via IGPT_API_KEY sent as a Bearer token over HTTPS. No shell access, no filesystem access, no system commands.
  • Per-user isolation: Every query is scoped to a specific user identifier. User A cannot access User B's email data. Isolation is enforced at the index and execution level, not as a filter layer.
  • OAuth read-only: The email datasource connection uses OAuth with read-only scopes. The skill does not send, modify, or delete emails.
  • No data retention: Prompts are discarded after execution. Memory is reconstructed on-demand, not stored.
  • Transport encryption: All communication occurs over HTTPS. No plaintext endpoints.
  • No local persistence: This skill does not write to disk, modify environment files, or create persistent configuration outside of the standard IGPT_API_KEY environment variable.
  • Built-in retries: The SDK retries failed requests with exponential backoff (default: 3 attempts, 100ms base, 2x factor) before returning a network_error.

For the full security model, see https://docs.igpt.ai/docs/security/model.

What This Skill Does NOT Do

  • Does not send, modify, forward, or delete emails
  • Does not access the filesystem or execute shell commands
  • Does not install persistent services or scheduled tasks
  • Does not contact endpoints other than api.igpt.ai
  • Does not store API keys or OAuth tokens outside the environment variable

Example Questions

These all work as natural language prompts:

  • "Summarize key risks from this week's email threads" -- cross-thread analysis
  • "What are the open action items from yesterday's board meeting?" -- task extraction
  • "What's the current status of the Acme deal?" -- deal intelligence
  • "Who owns the budget approval and when is it due?" -- ownership and deadline extraction
  • "Are there any threads where tone has shifted negatively in the last 7 days?" -- sentiment analysis
  • "Generate a briefing for my meeting with Sarah tomorrow" -- meeting prep

Resources

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

emailanalysisreasoningsummarizationcontext-engineproductivityapi-integrationprivacy-focusedstructured-data

同类 Skill