Knowledge Graph Builder
Expert knowledge graph creation system that transforms disconnected support content into an interconnected web of concepts, relationships, and solutions. This skill provides structured workflows for mapping knowledge domains, defining relationships, and powering intelligent support experiences.
Knowledge graphs enable support systems to understand context, not just keywords. When a customer asks about "billing issues," a knowledge graph knows this relates to invoices, payment methods, subscription plans, and potentially churn risk. This skill helps you build that connective intelligence.
Built on semantic web principles and knowledge engineering best practices, this skill combines domain modeling, relationship mapping, and practical implementation to create knowledge graphs that power smarter support.
Core Workflows
Workflow 1: Domain Modeling
Define the concepts and entities in your knowledge domain
Entity Identification
- Core Entities: Products, features, concepts
- Customer Entities: Accounts, users, segments
- Support Entities: Issues, solutions, articles
- Process Entities: Workflows, procedures, steps
- Context Entities: Use cases, personas, scenarios
Entity Types for Support
| Entity Type |
Examples |
Purpose |
| Product |
App, Feature, Module |
What customers use |
| Issue |
Bug, Error, Question |
What customers face |
| Solution |
Fix, Workaround, Guide |
How to resolve |
| Article |
FAQ, How-to, Reference |
Content resources |
| Concept |
Term, Process, Capability |
Understanding |
| Persona |
Admin, User, Developer |
Who needs help |
Entity Properties
Entity: Feature
Properties:
- id: unique identifier
- name: display name
- description: what it does
- status: active/deprecated/beta
- complexity: basic/intermediate/advanced
- related_persona: who uses it
- documentation_url: help article link
Entity Extraction Sources
- Product documentation
- Support ticket taxonomy
- FAQ categories
- Help center structure
- Feature specifications
- User research findings
Workflow 2: Relationship Mapping
Define how entities connect to each other
Core Relationship Types
| Relationship |
From |
To |
Example |
| SOLVES |
Solution |
Issue |
"Password reset SOLVES login failure" |
| PART_OF |
Feature |
Product |
"Dashboard PART_OF Analytics" |
| REQUIRES |
Feature |
Feature |
"Export REQUIRES Pro plan" |
| CAUSES |
Issue |
Issue |
"API limit CAUSES sync failure" |
| DOCUMENTED_IN |
Concept |
Article |
"Billing DOCUMENTED_IN pricing guide" |
| APPLIES_TO |
Solution |
Persona |
"Workaround APPLIES_TO admin users" |
Relationship Properties
Relationship: SOLVES
Properties:
- confidence: how reliable (0-1)
- conditions: when this applies
- effectiveness: success rate
- last_verified: date checked
Relationship Discovery
- Analyze support ticket resolution paths
- Map help article cross-references
- Identify co-occurring issues
- Study user journey patterns
- Review expert knowledge
Relationship Strength
- Strong: Always true, well documented
- Moderate: Usually true, common pattern
- Weak: Sometimes true, contextual
- Suggested: Possible, needs validation
Workflow 3: Graph Construction
Build the actual knowledge graph structure
Graph Architecture
Nodes (Entities):
- Unique identifier
- Entity type
- Properties
- Metadata (created, updated, source)
Edges (Relationships):
- From node
- To node
- Relationship type
- Properties
- Metadata
Implementation Options
| Approach |
Best For |
Tools |
| Graph Database |
Complex queries, scale |
Neo4j, Amazon Neptune |
| RDF Triple Store |
Semantic web, standards |
Apache Jena, Stardog |
| Property Graph |
Flexible modeling |
Neo4j, TigerGraph |
| Embedded |
Simple use cases |
NetworkX, GraphQL |
Schema Design
- Define node labels/types
- Define relationship types
- Set required properties
- Define constraints (uniqueness, existence)
- Create indexes for query performance
Data Population
- Bulk import from existing sources
- API ingestion from live systems
- Manual expert curation
- Automated extraction (NLP)
- Continuous updates from support activity
Workflow 4: Query & Inference
Extract value from the knowledge graph
Query Patterns
| Query Type |
Use Case |
Example |
| Traversal |
Find related content |
"Articles related to X" |
| Path finding |
Solution discovery |
"Steps from issue to resolution" |
| Pattern matching |
Similar issues |
"Issues like X" |
| Aggregation |
Analytics |
"Most common issue per feature" |
| Recommendation |
Suggestions |
"Other users also viewed" |
Inference Rules
- If A CAUSES B and B CAUSES C, suggest A might relate to C
- If Solution S SOLVES Issue I, suggest similar solutions for similar issues
- If Article A DOCUMENTED_IN B and B REQUIRES C, show C as prerequisite
- If many users navigate A → B → C, suggest shortcut
Semantic Search Enhancement
- Expand search with related concepts
- Rank by graph centrality
- Surface related articles
- Suggest alternative terms
- Understand context from relationships
Conversational AI Integration
- Map user intent to graph entities
- Follow relationships to find answers
- Generate responses from connected content
- Explain reasoning through graph path
Workflow 5: Maintenance & Evolution
Keep the knowledge graph accurate and growing
Quality Monitoring
- Track usage patterns
- Identify dead-end paths
- Find orphaned nodes
- Monitor relationship accuracy
- Measure search success rates
Update Triggers
- New product releases
- Documentation changes
- Support ticket patterns
- User feedback
- Expert curation sessions
Validation Process
- Expert review of new relationships
- A/B test graph-powered features
- Monitor accuracy metrics
- User feedback collection
- Regular audits
Growth Strategies
- Automated entity extraction from tickets
- ML-based relationship suggestion
- User contribution mechanisms
- Expert knowledge capture sessions
- Cross-reference with external sources
Quick Reference
| Action |
Command/Trigger |
| Create entity |
"Add entity [type] for [name]" |
| Define relationship |
"Create relationship [type] from [A] to [B]" |
| Query graph |
"Find [entity] related to [entity]" |
| Find path |
"Show path from [issue] to [solution]" |
| Graph statistics |
"Show knowledge graph metrics" |
| Validate relationships |
"Audit relationships for [entity]" |
| Extract from tickets |
"Extract entities from recent tickets" |
| Generate documentation |
"Export graph as documentation" |
| Find gaps |
"Identify missing relationships" |
| Visualize graph |
"Visualize graph around [entity]" |
Best Practices
Domain Modeling
- Start with core product concepts
- Model from customer perspective
- Keep entity types focused
- Document entity definitions clearly
- Version your schema
Relationship Design
- Use verb-based relationship names
- Make relationships directional
- Add confidence/strength properties
- Avoid redundant relationships
- Document relationship semantics
Graph Construction
- Start small, grow iteratively
- Validate with domain experts
- Index frequently queried properties
- Plan for scale from start
- Maintain data lineage
Query Optimization
- Profile query performance
- Create appropriate indexes
- Cache common traversals
- Paginate large results
- Monitor query patterns
Maintenance
- Schedule regular audits
- Track content freshness
- Remove stale nodes/edges
- Validate automated additions
- Document changes
Knowledge Graph Schema
Core Entities
Product:
properties:
- id: string (required, unique)
- name: string (required)
- description: text
- version: string
- status: enum [active, deprecated, beta]
- tier: enum [free, pro, enterprise]
Feature:
properties:
- id: string (required, unique)
- name: string (required)
- description: text
- complexity: enum [basic, intermediate, advanced]
- introduced_version: string
- documentation_url: url
Issue:
properties:
- id: string (required, unique)
- title: string (required)
- description: text
- severity: enum [critical, high, medium, low]
- frequency: enum [common, occasional, rare]
- symptoms: array[string]
Solution:
properties:
- id: string (required, unique)
- title: string (required)
- steps: array[string]
- type: enum [fix, workaround, configuration]
- effectiveness: float [0-1]
- applies_to: array[string]
Article:
properties:
- id: string (required, unique)
- title: string (required)
- url: url (required)
- type: enum [faq, how-to, reference, troubleshooting]
- audience: enum [all, admin, developer]
- last_updated: date
Concept:
properties:
- id: string (required, unique)
- term: string (required)
- definition: text (required)
- aliases: array[string]
- domain: string
Core Relationships
PART_OF:
from: [Feature, Concept]
to: [Product, Feature, Concept]
properties:
- required: boolean
SOLVES:
from: Solution
to: Issue
properties:
- confidence: float [0-1]
- conditions: text
- verified_date: date
CAUSES:
from: Issue
to: Issue
properties:
- probability: float [0-1]
- mechanism: text
DOCUMENTED_IN:
from: [Feature, Issue, Solution, Concept]
to: Article
properties:
- section: string
- is_primary: boolean
REQUIRES:
from: [Feature, Solution]
to: [Feature, Permission, Plan]
properties:
- type: enum [prerequisite, dependency, permission]
RELATED_TO:
from: [any]
to: [any]
properties:
- strength: float [0-1]
- type: enum [similar, alternative, complementary]
APPLIES_TO:
from: [Solution, Article]
to: [Persona, Plan, Version]
properties:
- conditions: text
Implementation Guide
Phase 1: Foundation (Week 1-2)
- Define core entity types
- Document property schemas
- Map primary relationships
- Choose technology stack
- Set up development environment
Phase 2: Core Graph (Week 3-4)
- Extract entities from documentation
- Create initial relationships
- Import into graph database
- Build basic query interface
- Validate with domain experts
Phase 3: Integration (Week 5-6)
- Connect to support system
- Implement search enhancement
- Add content recommendation
- Create admin interface
- Set up monitoring
Phase 4: Intelligence (Week 7-8)
- Add inference rules
- Implement similarity scoring
- Enable automated extraction
- Build feedback loops
- Deploy to production
Red Flags
- Disconnected nodes: Entities without relationships
- Relationship soup: Too many weak relationships
- Stale data: Outdated information not updated
- Schema drift: Inconsistent entity modeling
- Query complexity: Simple questions need complex queries
- No validation: Automated additions not verified
- Missing context: Relationships without properties
- Poor coverage: Key concepts not represented
Success Metrics
| Metric |
What It Measures |
Target |
| Graph Coverage |
% of concepts captured |
90%+ |
| Search Improvement |
Relevance vs. keyword |
2x+ |
| Resolution Speed |
Time to find answer |
50% reduction |
| Relationship Accuracy |
Expert validation rate |
95%+ |
| Query Latency |
Response time |
< 100ms |
| User Satisfaction |
CSAT with graph features |
4.0/5.0+ |
| Automation Rate |
Auto-resolved with graph |
30%+ |
| Graph Growth |
New entities/month |
Healthy growth |
1---2name: knowledge-graph-builder3description: Build knowledge graphs for support systems, connecting concepts, articles, and solutions4---56# Knowledge Graph Builder78Expert knowledge graph creation system that transforms disconnected support content into an interconnected web of concepts, relationships, and solutions. This skill provides structured workflows for mapping knowledge domains, defining relationships, and powering intelligent support experiences.910Knowledge graphs enable support systems to understand context, not just keywords. When a customer asks about "billing issues," a knowledge graph knows this relates to invoices, payment methods, subscription plans, and potentially churn risk. This skill helps you build that connective intelligence.1112Built on semantic web principles and knowledge engineering best practices, this skill combines domain modeling, relationship mapping, and practical implementation to create knowledge graphs that power smarter support.1314## Core Workflows1516### Workflow 1: Domain Modeling17**Define the concepts and entities in your knowledge domain**18191. **Entity Identification**20 - **Core Entities**: Products, features, concepts21 - **Customer Entities**: Accounts, users, segments22 - **Support Entities**: Issues, solutions, articles23 - **Process Entities**: Workflows, procedures, steps24 - **Context Entities**: Use cases, personas, scenarios25262. **Entity Types for Support**27 | Entity Type | Examples | Purpose |28 |-------------|----------|---------|29 | Product | App, Feature, Module | What customers use |30 | Issue | Bug, Error, Question | What customers face |31 | Solution | Fix, Workaround, Guide | How to resolve |32 | Article | FAQ, How-to, Reference | Content resources |33 | Concept | Term, Process, Capability | Understanding |34 | Persona | Admin, User, Developer | Who needs help |35363. **Entity Properties**37 ```38 Entity: Feature39 Properties:40 - id: unique identifier41 - name: display name42 - description: what it does43 - status: active/deprecated/beta44 - complexity: basic/intermediate/advanced45 - related_persona: who uses it46 - documentation_url: help article link47 ```48494. **Entity Extraction Sources**50 - Product documentation51 - Support ticket taxonomy52 - FAQ categories53 - Help center structure54 - Feature specifications55 - User research findings5657### Workflow 2: Relationship Mapping58**Define how entities connect to each other**59601. **Core Relationship Types**61 | Relationship | From | To | Example |62 |--------------|------|-----|---------|63 | SOLVES | Solution | Issue | "Password reset SOLVES login failure" |64 | PART_OF | Feature | Product | "Dashboard PART_OF Analytics" |65 | REQUIRES | Feature | Feature | "Export REQUIRES Pro plan" |66 | CAUSES | Issue | Issue | "API limit CAUSES sync failure" |67 | DOCUMENTED_IN | Concept | Article | "Billing DOCUMENTED_IN pricing guide" |68 | APPLIES_TO | Solution | Persona | "Workaround APPLIES_TO admin users" |69702. **Relationship Properties**71 ```72 Relationship: SOLVES73 Properties:74 - confidence: how reliable (0-1)75 - conditions: when this applies76 - effectiveness: success rate77 - last_verified: date checked78 ```79803. **Relationship Discovery**81 - Analyze support ticket resolution paths82 - Map help article cross-references83 - Identify co-occurring issues84 - Study user journey patterns85 - Review expert knowledge86874. **Relationship Strength**88 - **Strong**: Always true, well documented89 - **Moderate**: Usually true, common pattern90 - **Weak**: Sometimes true, contextual91 - **Suggested**: Possible, needs validation9293### Workflow 3: Graph Construction94**Build the actual knowledge graph structure**95961. **Graph Architecture**97 ```98 Nodes (Entities):99 - Unique identifier100 - Entity type101 - Properties102 - Metadata (created, updated, source)103104 Edges (Relationships):105 - From node106 - To node107 - Relationship type108 - Properties109 - Metadata110 ```1111122. **Implementation Options**113 | Approach | Best For | Tools |114 |----------|----------|-------|115 | Graph Database | Complex queries, scale | Neo4j, Amazon Neptune |116 | RDF Triple Store | Semantic web, standards | Apache Jena, Stardog |117 | Property Graph | Flexible modeling | Neo4j, TigerGraph |118 | Embedded | Simple use cases | NetworkX, GraphQL |1191203. **Schema Design**121 - Define node labels/types122 - Define relationship types123 - Set required properties124 - Define constraints (uniqueness, existence)125 - Create indexes for query performance1261274. **Data Population**128 - Bulk import from existing sources129 - API ingestion from live systems130 - Manual expert curation131 - Automated extraction (NLP)132 - Continuous updates from support activity133134### Workflow 4: Query & Inference135**Extract value from the knowledge graph**1361371. **Query Patterns**138 | Query Type | Use Case | Example |139 |------------|----------|---------|140 | Traversal | Find related content | "Articles related to X" |141 | Path finding | Solution discovery | "Steps from issue to resolution" |142 | Pattern matching | Similar issues | "Issues like X" |143 | Aggregation | Analytics | "Most common issue per feature" |144 | Recommendation | Suggestions | "Other users also viewed" |1451462. **Inference Rules**147 - If A CAUSES B and B CAUSES C, suggest A might relate to C148 - If Solution S SOLVES Issue I, suggest similar solutions for similar issues149 - If Article A DOCUMENTED_IN B and B REQUIRES C, show C as prerequisite150 - If many users navigate A → B → C, suggest shortcut1511523. **Semantic Search Enhancement**153 - Expand search with related concepts154 - Rank by graph centrality155 - Surface related articles156 - Suggest alternative terms157 - Understand context from relationships1581594. **Conversational AI Integration**160 - Map user intent to graph entities161 - Follow relationships to find answers162 - Generate responses from connected content163 - Explain reasoning through graph path164165### Workflow 5: Maintenance & Evolution166**Keep the knowledge graph accurate and growing**1671681. **Quality Monitoring**169 - Track usage patterns170 - Identify dead-end paths171 - Find orphaned nodes172 - Monitor relationship accuracy173 - Measure search success rates1741752. **Update Triggers**176 - New product releases177 - Documentation changes178 - Support ticket patterns179 - User feedback180 - Expert curation sessions1811823. **Validation Process**183 - Expert review of new relationships184 - A/B test graph-powered features185 - Monitor accuracy metrics186 - User feedback collection187 - Regular audits1881894. **Growth Strategies**190 - Automated entity extraction from tickets191 - ML-based relationship suggestion192 - User contribution mechanisms193 - Expert knowledge capture sessions194 - Cross-reference with external sources195196## Quick Reference197198| Action | Command/Trigger |199|--------|-----------------|200| Create entity | "Add entity [type] for [name]" |201| Define relationship | "Create relationship [type] from [A] to [B]" |202| Query graph | "Find [entity] related to [entity]" |203| Find path | "Show path from [issue] to [solution]" |204| Graph statistics | "Show knowledge graph metrics" |205| Validate relationships | "Audit relationships for [entity]" |206| Extract from tickets | "Extract entities from recent tickets" |207| Generate documentation | "Export graph as documentation" |208| Find gaps | "Identify missing relationships" |209| Visualize graph | "Visualize graph around [entity]" |210211## Best Practices212213### Domain Modeling214- Start with core product concepts215- Model from customer perspective216- Keep entity types focused217- Document entity definitions clearly218- Version your schema219220### Relationship Design221- Use verb-based relationship names222- Make relationships directional223- Add confidence/strength properties224- Avoid redundant relationships225- Document relationship semantics226227### Graph Construction228- Start small, grow iteratively229- Validate with domain experts230- Index frequently queried properties231- Plan for scale from start232- Maintain data lineage233234### Query Optimization235- Profile query performance236- Create appropriate indexes237- Cache common traversals238- Paginate large results239- Monitor query patterns240241### Maintenance242- Schedule regular audits243- Track content freshness244- Remove stale nodes/edges245- Validate automated additions246- Document changes247248## Knowledge Graph Schema249250### Core Entities251```yaml252Product:253 properties:254 - id: string (required, unique)255 - name: string (required)256 - description: text257 - version: string258 - status: enum [active, deprecated, beta]259 - tier: enum [free, pro, enterprise]260261Feature:262 properties:263 - id: string (required, unique)264 - name: string (required)265 - description: text266 - complexity: enum [basic, intermediate, advanced]267 - introduced_version: string268 - documentation_url: url269270Issue:271 properties:272 - id: string (required, unique)273 - title: string (required)274 - description: text275 - severity: enum [critical, high, medium, low]276 - frequency: enum [common, occasional, rare]277 - symptoms: array[string]278279Solution:280 properties:281 - id: string (required, unique)282 - title: string (required)283 - steps: array[string]284 - type: enum [fix, workaround, configuration]285 - effectiveness: float [0-1]286 - applies_to: array[string]287288Article:289 properties:290 - id: string (required, unique)291 - title: string (required)292 - url: url (required)293 - type: enum [faq, how-to, reference, troubleshooting]294 - audience: enum [all, admin, developer]295 - last_updated: date296297Concept:298 properties:299 - id: string (required, unique)300 - term: string (required)301 - definition: text (required)302 - aliases: array[string]303 - domain: string304```305306### Core Relationships307```yaml308PART_OF:309 from: [Feature, Concept]310 to: [Product, Feature, Concept]311 properties:312 - required: boolean313314SOLVES:315 from: Solution316 to: Issue317 properties:318 - confidence: float [0-1]319 - conditions: text320 - verified_date: date321322CAUSES:323 from: Issue324 to: Issue325 properties:326 - probability: float [0-1]327 - mechanism: text328329DOCUMENTED_IN:330 from: [Feature, Issue, Solution, Concept]331 to: Article332 properties:333 - section: string334 - is_primary: boolean335336REQUIRES:337 from: [Feature, Solution]338 to: [Feature, Permission, Plan]339 properties:340 - type: enum [prerequisite, dependency, permission]341342RELATED_TO:343 from: [any]344 to: [any]345 properties:346 - strength: float [0-1]347 - type: enum [similar, alternative, complementary]348349APPLIES_TO:350 from: [Solution, Article]351 to: [Persona, Plan, Version]352 properties:353 - conditions: text354```355356## Implementation Guide357358### Phase 1: Foundation (Week 1-2)3591. Define core entity types3602. Document property schemas3613. Map primary relationships3624. Choose technology stack3635. Set up development environment364365### Phase 2: Core Graph (Week 3-4)3661. Extract entities from documentation3672. Create initial relationships3683. Import into graph database3694. Build basic query interface3705. Validate with domain experts371372### Phase 3: Integration (Week 5-6)3731. Connect to support system3742. Implement search enhancement3753. Add content recommendation3764. Create admin interface3775. Set up monitoring378379### Phase 4: Intelligence (Week 7-8)3801. Add inference rules3812. Implement similarity scoring3823. Enable automated extraction3834. Build feedback loops3845. Deploy to production385386## Red Flags387388- **Disconnected nodes**: Entities without relationships389- **Relationship soup**: Too many weak relationships390- **Stale data**: Outdated information not updated391- **Schema drift**: Inconsistent entity modeling392- **Query complexity**: Simple questions need complex queries393- **No validation**: Automated additions not verified394- **Missing context**: Relationships without properties395- **Poor coverage**: Key concepts not represented396397## Success Metrics398399| Metric | What It Measures | Target |400|--------|------------------|--------|401| Graph Coverage | % of concepts captured | 90%+ |402| Search Improvement | Relevance vs. keyword | 2x+ |403| Resolution Speed | Time to find answer | 50% reduction |404| Relationship Accuracy | Expert validation rate | 95%+ |405| Query Latency | Response time | < 100ms |406| User Satisfaction | CSAT with graph features | 4.0/5.0+ |407| Automation Rate | Auto-resolved with graph | 30%+ |408| Graph Growth | New entities/month | Healthy growth |