Ingest, process, and package business context for AI assistants
Project description
ContextBase Onboarding Service
Ingest, process, and package organizational context for AI assistants.
context-onboard extracts knowledge from your team's existing tools and surfaces it as structured knowledge graphs, ready-to-use system prompts for Claude/GPT/Gemini, and beautiful HTML reports.
Features
- ๐ Multi-source ingestion โ Slack, Email (IMAP), Google Drive, Airtable
- ๐ง Knowledge graph โ Deduplicates entities, merges relationships, computes statistics
- ๐ AI prompts โ Generates system prompts for Claude, GPT-4, and Gemini
- ๐ Deliverable packaging โ Creates ZIP archives with graph JSON, prompts, and HTML reports
- ๐ง MCP-style config โ Tool-use configuration for Model Context Protocol
Quick Start
# Install
pip install context-onboard
# With all extras
pip install "context-onboard[all]"
Usage
1. Ingest โ Pull data from your sources
Create a config file (config.yaml):
output_dir: ./data
ingestors:
slack:
token: xoxb-your-bot-token
enabled: true
email:
host: imap.gmail.com
username: user@gmail.com
password: "app-password"
max_messages: 200
enabled: true
drive:
token:
token: ya29...
refresh_token: 1//...
max_files: 100
enabled: true
airtable:
api_key: patXXXX...
base_ids:
- appXXXX1
enabled: true
Then run:
context-onboard ingest --config config.yaml
2. Build โ Generate knowledge graph and prompts from existing data
context-onboard build --data ./data --company "Acme Corp" --output ./output
3. Package โ Create a deliverable ZIP
context-onboard package --data ./output --output ./deliverable --company "Acme Corp"
Architecture
context_onboard/
โโโ __init__.py # Package init, version 0.1.0
โโโ models.py # Core data models (Entity, Relationship, ContextPackage)
โโโ cli.py # CLI entry point (argparse)
โโโ ingestors/
โ โโโ base.py # BaseIngestor ABC
โ โโโ slack.py # SlackIngestor (slack_sdk)
โ โโโ email.py # EmailIngestor (imaplib โ stdlib)
โ โโโ drive.py # GoogleDriveIngestor (google-api-python-client)
โ โโโ airtable.py # AirtableIngestor (requests)
โโโ processors/
โ โโโ knowledge_graph.py # Deduplication, merging, graph stats
โ โโโ prompt_library.py # Claude, GPT, Gemini prompt generation + MCP config
โโโ output/
โโโ package.py # ZIP packaging + HTML report generation
Data Models
| Model | Description |
|---|---|
EntityType |
Enum: PERSON, TEAM, PROJECT, DOCUMENT, TOOL, PROCESS, GLOSSARY_TERM |
Entity |
A node in the context graph (id, name, type, description, metadata) |
Relationship |
A typed, weighted edge between two entities (0-1 strength) |
ContextPackage |
A complete snapshot from one ingest source or the merged graph |
Optional Dependencies
| Feature | Install command |
|---|---|
| Slack | pip install "context-onboard[slack]" |
| Google Drive | pip install "context-onboard[google]" |
| Airtable | pip install "context-onboard[airtable]" (requests included by default) |
| YAML config | pip install "context-onboard[yaml]" |
| All | pip install "context-onboard[all]" |
Email ingestor uses stdlib only (imaplib, email) โ no extra deps needed.
Development
git clone https://github.com/contextbase/context-onboard.git
cd context-onboard
pip install -e ".[dev]"
pytest
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file context_onboard-0.1.0.tar.gz.
File metadata
- Download URL: context_onboard-0.1.0.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a707988fb00fc26b4add83f8ec4df72867f3a4583cb5e59ac217d4e0d3b149d2
|
|
| MD5 |
7fc75689d6549608e6060745371df26a
|
|
| BLAKE2b-256 |
33aea84226bd39b6248fc2d5ebe70593a7e26034d94b22fc0d5fc59654eb879c
|
File details
Details for the file context_onboard-0.1.0-py3-none-any.whl.
File metadata
- Download URL: context_onboard-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2651e0bb449899b16637940d8f7843e20397871cb9bd827d0ce03debfc7991d1
|
|
| MD5 |
a968b52ada691d67d5ed6b8ea360741f
|
|
| BLAKE2b-256 |
a9ee4be21b29229e803067412c846b96fa31b59ccec5db53bd37be2c2d183d4f
|