Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

context_onboard-0.1.0.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

context_onboard-0.1.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

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

Hashes for context_onboard-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a707988fb00fc26b4add83f8ec4df72867f3a4583cb5e59ac217d4e0d3b149d2
MD5 7fc75689d6549608e6060745371df26a
BLAKE2b-256 33aea84226bd39b6248fc2d5ebe70593a7e26034d94b22fc0d5fc59654eb879c

See more details on using hashes here.

File details

Details for the file context_onboard-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for context_onboard-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2651e0bb449899b16637940d8f7843e20397871cb9bd827d0ce03debfc7991d1
MD5 a968b52ada691d67d5ed6b8ea360741f
BLAKE2b-256 a9ee4be21b29229e803067412c846b96fa31b59ccec5db53bd37be2c2d183d4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page