✨

iGPT Email Intelligence

iGPT Email Intelligence · v1.0.0
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(LOWERCASE_NAME,NO_FRONTMATTER)。我们仍保留下载,方便你自行查看内容。
安全 unknown 级 作者 sammy-spk 公开目录收录
522 下载 2 安装 1.6k 收藏 1 浏览

简介

iGPT Email Intelligence

原始描述

Secure, per-user-isolated semantic email search via the iGPT API. Hybrid semantic + keyword retrieval across a user's full Gmail, Outlook, or IMAP inbox hist...

通过你的 Agent 添加

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

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

或者手动安装

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

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

技能正文

name: igpt-email-search
description: >
  Search a user's email history using semantic + keyword hybrid search. Returns relevant messages
  and threads ranked by meaning, not just keyword overlap. Powered by iGPT's Context Engine,
  which indexes entire email histories across Gmail, Outlook, and IMAP providers.
  Use this skill when you need to find specific emails, threads, or conversations by topic,
  participant, date range, or content. Unlike basic email search, this understands what you
  mean, not just what you typed. Returns retrieval results only (no reasoning layer).
  For answers and analysis, use igpt-email-ask instead.

iGPT Email Search

Search a user's email by meaning, not just keywords. Hybrid semantic + keyword retrieval across their entire inbox history.

What This Skill Does

This skill queries iGPT's recall/search endpoint to find relevant emails and threads from a user's connected inbox. The search engine:

  1. Combines semantic vector search (understands meaning) with keyword matching (catches exact terms)
  2. Searches across the user's full indexed email history (not limited to 90 days like some providers)
  3. Supports date range filtering for time-bounded queries
  4. Returns ranked results with relevance scoring
  5. Includes attachment references when present

This is retrieval only. It finds and returns email content. It does not reason over it, summarize it, or extract structured data. For that, use igpt-email-ask.

When to Use This Skill

  • Find emails about a specific topic, project, or person
  • Locate threads within a date range
  • Retrieve raw email content for further processing
  • Feed email context into another tool or agent step
  • Check what was discussed about a topic before taking action
  • Pull recent correspondence with a specific contact or company

When to Use igpt-email-ask Instead

If you need any of these, use the ask skill, not search:

  • Summarized or synthesized answers
  • Structured data extraction (tasks, decisions, contacts)
  • Sentiment analysis
  • Reasoning across multiple threads
  • Questions that require understanding, not just finding

Rule of thumb: If your prompt is a question, use ask. If your prompt is a lookup, use search.

Prerequisites

  • An iGPT API key (get one at https://igpt.ai/hub/apikeys/)
  • A connected email datasource (user must have completed OAuth authorization via connectors/authorize)
  • Python >= 3.8 with 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: Search by topic

from igptai import IGPT
import os

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

results = igpt.recall.search(query="board meeting notes")
print(results)

Returns a ranked list of relevant emails and threads matching the query, ordered by relevance.

Search with date range

Narrow results to a specific time window:

results = igpt.recall.search(
    query="budget allocation",
    date_from="2026-01-01",
    date_to="2026-01-31"
)
print(results)

Limit number of results

Control how many results come back:

results = igpt.recall.search(
    query="partnership proposals",
    max_results=10
)
print(results)

Search for a specific person's emails

The semantic engine understands participant context:

results = igpt.recall.search(
    query="emails from Sarah about the product launch",
    date_from="2026-01-01"
)
print(results)

Combine with ask for a two-step workflow

A common pattern: search first to see what's there, then ask for analysis:

# Step 1: Find relevant threads
results = igpt.recall.search(
    query="Acme Corp contract negotiation",
    max_results=20
)
print(f"Found {len(results)} relevant threads")

# Step 2: Ask for structured analysis
analysis = igpt.recall.ask(
    input="Summarize the current status of the Acme Corp contract negotiation. What are the open issues and who owns them?",
    output_format="json"
)
print(analysis)

Parameters

Parameter Type Required Description
query string Yes Search query. Supports natural language (semantic) and exact terms (keyword).
user string Yes (or set in constructor) Unique user identifier scoping the query to their connected data
date_from string No Start date filter in YYYY-MM-DD format
date_to string No End date filter in YYYY-MM-DD format
max_results integer No Maximum number of results to return

Error Handling

Same no-throw pattern as all iGPT SDK methods:

results = igpt.recall.search(query="Q4 planning")

if isinstance(results, dict) and results.get("error"):
    error = results["error"]
    if error == "auth":
        print("Check your API key")
    elif error == "params":
        print("Check your request parameters")
    elif error == "network_error":
        print("Network issue, retry")
else:
    for result in results:
        print(result)

How It Differs from Basic Email Search

Basic email/Gmail search iGPT Email Search
Keyword matching only Semantic + keyword hybrid
Misses related content that uses different words Understands meaning and finds conceptually related emails
Limited to Gmail's search operators Natural language queries work
Provider-specific (Gmail OR Outlook) Searches across all connected providers
Often limited history (Nylas: 90 days) Full email history indexed
Returns raw MIME data Returns clean, structured results

Example Queries

These all work as natural language:

  • "board meeting notes" — finds emails about board meetings even if they don't contain that exact phrase
  • "emails about the product launch timeline" — semantic understanding of the topic
  • "anything from legal about compliance" — understands department and topic context
  • "invoices from Q4 2025" — combines topic with implicit date context
  • "conversations where deadlines were mentioned" — conceptual search

Resources

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

标签

没有标签

同类 Skill