Skip to main content

LlamaIndex Tools Integration: iGPT Email Intelligence

This tool connects to iGPT to give your agent structured, reasoning-ready context from connected email threads.

iGPT handles thread reconstruction, participant role detection, temporal reasoning, and intent extraction before returning results — so agents receive clean, structured JSON instead of raw message data.

To begin, you need to obtain an API key at docs.igpt.ai.

Usage

# %pip install llama-index llama-index-core llama-index-tools-igpt-email

from llama_index.tools.igpt_email import IGPTEmailToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = IGPTEmailToolSpec(api_key="your-key", user="user-id")

agent = FunctionAgent(
    tools=tool_spec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(await agent.run("What tasks were assigned to me this week?"))

ask: Ask a question about email context using iGPT's reasoning engine. Returns structured context including tasks, decisions, owners, sentiment, deadlines, and citations.

search: Search email context for relevant messages and threads. Returns matching email context as Documents with thread metadata (subject, participants, date, thread ID).

This tool is designed to be used as a way to load data as a Tool in an Agent.

Metadata

Release files for llama-index-tools-igpt-email 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-tools-igpt-email 0.2.0
File Size Uploaded
llama_index_tools_igpt_email-0.2.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-igpt-email 0.2.0
File Interpreter ABI Platform
llama_index_tools_igpt_email-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / llama_index_tools_igpt_email-0.2.0.tar.gz

Download URL llama_index_tools_igpt_email-0.2.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e105ce2be9a65eb69f1ed3a521461fb9edcebcb65a0f7b9bc826a8c09616c748
BLAKE2b-256 checksum
How to use checksums
74c27cfafc939fb85ec145c94dcfeba17d851f661c7549c9263ffe2b1a2a150c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_tools_igpt_email-0.2.0-py3-none-any.whl

Download URL llama_index_tools_igpt_email-0.2.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a683c228306981c09d11ca29c79aed3fbcf19878348c3d4502a467299febf917
BLAKE2b-256 checksum
How to use checksums
64920c42de2db99f009e0bc96bc50796be341670986ee0e8662f8bf9ecc4dba6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page