Skip to content

Synthesis

TeamLoop’s synthesis feature generates structured documents from your knowledge graph. Transform curated subgraphs into ADRs, PRDs, executive briefs, and more.

  1. Create a subgraph with relevant entities
  2. Select a template (brief, PRD, ADR)
  3. Start synthesis job
  4. Poll for completion and get output
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Subgraph │───▶│ Template │───▶│ Output │
│ (entities) │ │ Engine │ │ Document │
└─────────────┘ └─────────────┘ └─────────────┘
teamloop_synthesize:
subgraph_id: "your-subgraph-uuid"
template_type: "adr"
additional_context: "Focus on security implications"

Parameters:

ParameterRequiredDescription
subgraph_idYesThe subgraph to synthesize from
template_typeYesbrief, prd, or adr
additional_contextNoExtra instructions or focus areas

Response:

Synthesis job created!
- **Job ID:** abc-123-def-456
- **Template:** Architecture Decision Record (adr)
- **Status:** pending
Use `teamloop_get_synthesis_job` with this job_id to check progress.
teamloop_get_synthesis_job:
job_id: "abc-123-def-456"

Response (in progress):

## Synthesis Job Status
- **Job ID:** abc-123-def-456
- **Status:** processing
- **Progress:** 45%
- **Started:** 2024-12-15T10:30:00Z

Response (completed):

## Synthesis Job Status
- **Job ID:** abc-123-def-456
- **Status:** completed
- **Progress:** 100%
- **Completed:** 2024-12-15T10:32:00Z
---
## Output
# ADR-001: Adopt OAuth 2.0 for Authentication
## Status
Accepted
## Context
The team needed to implement single sign-on (SSO) capabilities
for enterprise customers...
## Decision
We will adopt OAuth 2.0 with PKCE for all authentication flows...
## Consequences
### Positive
- SSO support for enterprise customers
- Industry-standard security
...

Executive summary of the knowledge in a subgraph.

Best for:

  • Leadership updates
  • Project summaries
  • Quick overviews

Structure:

  • Executive summary
  • Key decisions
  • Timeline highlights
  • Current status
  • Next steps

Product requirements derived from knowledge.

Best for:

  • Feature specifications
  • Project scoping
  • Planning documents

Structure:

  • Overview
  • Problem statement
  • Goals and non-goals
  • User stories
  • Requirements
  • Success metrics

Formal documentation of architectural decisions.

Best for:

  • Technical documentation
  • Decision records
  • Architecture reviews

Structure:

  • Title and status
  • Context
  • Decision
  • Consequences (positive/negative)
  • Alternatives considered

First, query and extract relevant knowledge:

# Query for authentication-related content
teamloop_query:
query: "authentication architecture decisions"
sources: "github,notion"
# Save extracted entities
teamloop_save_knowledge:
entities:
- type: DECISION
name: "Adopt OAuth 2.0"
rationale: "Need SSO for enterprise"
event_date: "2024-06-15"
alternatives: ["SAML", "Custom JWT"]
- type: COMPONENT
name: "Auth Service"
description: "Central authentication service"
teamloop_create_subgraph:
name: "Auth System ADR Context"
query: "authentication OAuth SSO"
limit: 25
teamloop_expand_subgraph:
subgraph_id: "..."
depth: 1
include_types: ["DECISION", "COMPONENT"]
auto_add: true
teamloop_synthesize:
subgraph_id: "..."
template_type: "adr"
additional_context: "This ADR documents our move from session-based auth to OAuth 2.0"
teamloop_get_synthesis_job:
job_id: "..."

Cancel pending or in-progress jobs:

teamloop_cancel_synthesis_job:
job_id: "abc-123-def-456"

Better input = better output:

# Too broad
teamloop_create_subgraph:
query: "decisions"
limit: 100
# Better - focused
teamloop_create_subgraph:
query: "database technology PostgreSQL MySQL"
limit: 20

Guide the synthesis:

teamloop_synthesize:
subgraph_id: "..."
template_type: "prd"
additional_context: "Focus on the mobile app requirements. Target audience is the iOS development team."

Synthesis output is a starting point:

  • Review for accuracy
  • Add missing context
  • Adjust tone and style
  • Validate technical details
Use CaseTemplate
Leadership updatebrief
New feature specprd
Technical decision recordadr

Synthesis quality depends on:

  1. Subgraph richness - Include decisions, rationale, alternatives
  2. Entity completeness - Fill in descriptions, dates, relationships
  3. Context clarity - Use additional_context to guide focus
  4. Temporal coverage - Include historical context
  • Synthesis may take 30-120 seconds
  • Maximum subgraph size: 100 entities
  • Output is AI-generated - always review
  • Complex topics may need multiple synthesis runs

Completed synthesis outputs are saved as entities:

**Saved as Entity ID:** ghi-789-jkl-012

Query them later:

teamloop_query:
query: "Auth System ADR"