Create Context Graph is likeDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/neo4j-labs/create-context-graph/llms.txt
Use this file to discover all available pages before exploring further.
create-next-app, but for AI agents with graph memory. Give it an industry domain and an agent framework, and it generates a complete full-stack application in under 5 minutes: a FastAPI backend with a configured AI agent, a Next.js frontend with streaming chat and interactive graph visualization, a Neo4j schema tailored to your domain, and realistic demo data ready to query.
Quick start
Get a running context graph app in under 5 minutes
Domain catalog
Browse all 22 built-in industry domains
Framework comparison
Compare all 8 supported agent frameworks
CLI reference
Every flag and option, with defaults and examples
Key features
22 built-in domains
Healthcare, financial services, real estate, manufacturing, software engineering, wildlife management, and 16 more. Each ships with a complete ontology, agent tools, demo scenarios, and fixture data.
8 agent frameworks
PydanticAI, Claude Agent SDK, OpenAI Agents SDK, LangGraph, CrewAI, Strands, Google ADK, and Anthropic Tools. Pick the framework you know, or try something new.
Streaming chat
Responses stream token-by-token via Server-Sent Events. Tool calls appear as a live timeline with spinner indicators as each executes. The graph visualization updates incrementally after each tool completes.
Interactive graph visualization
An NVL-powered graph explorer with schema view, double-click to expand nodes, drag and zoom, node hover tooltips, and a property detail panel. Clicking any node surfaces an “Ask about this” button that sends a chat query directly.
Three-memory architecture
Every generated agent uses short-term memory (conversation history), long-term memory (entity knowledge graph), and reasoning memory (decision traces with full provenance). Powered by neo4j-agent-memory.
Custom domains
Describe your domain in plain English and the LLM generates a complete ontology with entity types, relationships, agent tools, and demo scenarios. Or write your own YAML definition from scratch.
SaaS connectors
Import real data from GitHub, Slack, Jira, Notion, Gmail, Google Calendar, or Salesforce to populate your graph instead of (or alongside) synthetic demo data.
Rich demo data
Each domain ships with LLM-generated fixture data: 80–90 entities, 25+ professional documents (discharge summaries, trade confirmations, lab reports), and 3–5 multi-step decision traces. Loaded via
make seed.What gets generated
Runningcreate-context-graph produces a complete project directory:
POST /chat/stream endpoint for Server-Sent Events streaming and a GET /expand endpoint for graph neighbor queries. The Next.js frontend connects to these at runtime — no extra configuration needed.
Architecture overview
The CLI reads a domain ontology YAML, merges it with a base POLE+O schema, and renders Jinja2 templates into a complete project. Only the agent implementation differs between frameworks — the FastAPI layer, Neo4j client, and frontend are identical across all 8 options.Supported domains
22 industry domains, each with a purpose-built ontology, sample data, agent tools, and demo scenarios:| Domain | Key entities |
|---|---|
| Financial Services | Account, Transaction, Decision, Policy |
| Healthcare | Patient, Provider, Diagnosis, Treatment |
| Retail & E-Commerce | Customer, Product, Order, Review |
| Manufacturing | Machine, Part, WorkOrder, Supplier |
| Scientific Research | Researcher, Paper, Dataset, Grant |
| GenAI / LLM Ops | Model, Experiment, Prompt, Evaluation |
| Agent Memory | Agent, Conversation, Memory, ToolCall |
| Gaming | Player, Character, Quest, Guild |
| Personal Knowledge | Note, Contact, Project, Topic |
| Digital Twin | Asset, Sensor, Reading, Alert |
| Product Management | Feature, Epic, UserPersona, Metric |
| Real Estate | Property, Listing, Agent, Inspection |
| Vacation & Hospitality | Resort, Booking, Guest, Activity |
| Oil & Gas | Well, Reservoir, Equipment, Permit |
| Data Journalism | Source, Story, Claim, Investigation |
| Trip Planning | Destination, Hotel, Activity, Itinerary |
| GIS & Cartography | Feature, Layer, Survey, Boundary |
| Wildlife Management | Species, Sighting, Habitat, Camera |
| Conservation | Site, Species, Program, Funding |
| Golf & Sports Management | Course, Player, Round, Tournament |
| Software Engineering | Repository, Issue, PR, Deployment |
| Hospitality | Hotel, Room, Reservation, Service |
Supported agent frameworks
| Framework | Streaming | Required API key |
|---|---|---|
| PydanticAI | Full (token-by-token) | ANTHROPIC_API_KEY |
| Claude Agent SDK | Full (token-by-token) | ANTHROPIC_API_KEY |
| OpenAI Agents SDK | Full (token-by-token) | OPENAI_API_KEY |
| LangGraph | Full (token-by-token) | ANTHROPIC_API_KEY |
| CrewAI | Tool events + text at end | ANTHROPIC_API_KEY |
| Strands | Tool events + text at end | ANTHROPIC_API_KEY |
| Google ADK | Full (token-by-token) | GOOGLE_API_KEY |
| Anthropic Tools | Full (token-by-token) | ANTHROPIC_API_KEY |
Conversation memory uses local
sentence-transformers embeddings by default — no OPENAI_API_KEY required. If you set OPENAI_API_KEY in your .env, the generated app automatically upgrades to OpenAI text-embedding-3-small.What’s next
Quick start
Scaffold your first context graph app step by step
Why context graphs?
How graph memory differs from RAG and why it matters
Neo4j setup options
Aura, Docker, or neo4j-local — pick the right option
Custom domains
Generate a full ontology from a plain-English description
