> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview of Corti Text Generation

> Learn about text generation capabilities and endpoints in the Corti API

Corti's text generation is purpose-built for clinical workflows. Two core capabilities — **fact extraction** and **document synthesis** — work together to turn transcripts, dictations, and existing documents into clinically reliable, source-grounded notes. Both are available via a small, consistent set of API endpoints designed for real-time and asynchronous integration patterns.

The two core capabilities in the platform:

<CardGroup cols={2}>
  <Card title="FactsR — clinical fact extraction" href="/textgen/factsr" icon="list-tree">
    FactsR extracts clinically relevant facts from ambient conversations. Proven to increase downstream note completeness while keeping notes concise and source-grounded.
  </Card>

  <Card title="Guided Documents for Clinical Synthesis" href="/textgen/summarization" icon="wand-sparkles">
    Transform transcripts, extracted facts, and existing documents into precise, structured, and schema-controlled clinical documentation.
  </Card>
</CardGroup>

<br />

## What sets Corti's textgen apart

Compared to the many Ambient Scribe solutions that offer inflexible, limited APIs and general-purpose LLMs unfit for the healthcare domain, Corti's platform offers clinical-grade, easy-to-build-with and flexibly designed capabilities and endpoints that enable you to build exactly the workflow that serves your customers best.

<CardGroup cols={2}>
  <Card title="Beyond just note generation" icon="database-zap">
    More than simple note generation or template-based documentation — don't just output text but **structure** it for enhanced control, EHR field mapping, and downstream structured-data pipelines, analytics, and CDS.
  </Card>

  <Card title="Flexibility" icon="shuffle">
    Generate notes from **multi-source inputs** — transcript, facts, existing documents – not just an ambient transcript.
  </Card>

  <Card title="Control" icon="target">
    **Guided synthesis rules** to steer precise clinical documentation. **Schema-driven** with typed outputs (list, dict, integer, boolean, etc.) instead of free-form text strings only.
  </Card>

  <Card title="Embedded in Corti's Clinical Orchestration Platform" icon="bot">
    Ready for **agent-enhanced workflows** that enrich clinical documentation outputs. Ready for **agent-driven workflows** that create the relevant sections for EHR fields on the fly.
  </Card>

  <Card title="End-to-end pipeline — open at both ends" icon="waypoints">
    **Upstream**: pair with [Corti's standard-setting Speech-to-Text](/stt/overview) for clinical-grade transcription, or bring transcripts from any source — the platform is open. **Downstream**: use outputs to enrich via [Medical Coding](/coding/introduction) and other structured-data workflows.
  </Card>
</CardGroup>

Read more about [reasons to choose and build on the Corti API in general](/about/introduction).

## What are you looking for?

<CardGroup cols={3}>
  <Card title="New to Corti textgen" href="/textgen/beginners-guide" icon="graduation-cap">
    Start with the **Beginner's guide** for a walkthrough of the concepts, then explore [Core Capabilities](/textgen/factsr) to see what's possible.
  </Card>

  <Card title="Specific capability guidance" href="#corti-text-generation-endpoints" icon="book-marked">
    Dive into the core guides — [Manage Templates in Console](/textgen/console-templates/get-started), [Sections & Templates](/textgen/sections-templates-overview), [Guided Documents](/textgen/documents-guided-synthesis), or the [Prompting Cookbook](/textgen/prompting-cookbook). Or browse by endpoint below.
  </Card>

  <Card title="Get started quickly" href="/textgen/quickstart" icon="zap">
    Jump straight to the **Quickstart** and make your first API call.
  </Card>
</CardGroup>

## Corti Text Generation Endpoints

<Columns cols={2}>
  <Card title="Streams" href="/textgen/facts_realtime" icon="radio-tower">
    Real-time fact extraction to power intelligent ambient documentation and decision support workflows
  </Card>

  <Card title="FactsR™" href="/textgen/facts_async" icon="list-tree">
    Stateless REST endpoint to extract facts from text input
  </Card>

  <Card title="Guided Document Synthesis" href="/textgen/documents-guided-synthesis" icon="wand-sparkles">
    <Badge className="accent-badge" shape="rounded">Beta</Badge><br />Generate structured, schema-controlled documents on `POST /documents` — four template-supply paths, interaction-optional
  </Card>

  <Card title="Sections & Templates" href="/textgen/sections-templates-overview" icon="puzzle">
    <Badge className="accent-badge" shape="rounded">Beta</Badge><br />Author, version and publish your own sections and templates as first-class, UUID-addressable resources
  </Card>

  <Card title="Documents Classic" href="/textgen/documents-standard" icon="file-text">
    Original `POST /interactions/{id}/documents` flow with `templateKey` and inline section overrides. Covers Classic templates & sections too. **Planned for deprecation** — see the [migration guide](/textgen/migrate-from-classic).
  </Card>
</Columns>

### Endpoint Functionality

|                        | <Tooltip tip="Generate structured, schema-controlled documents on POST /documents (Beta)">[Guided Documents](/textgen/documents-guided-synthesis)</Tooltip> | <Tooltip tip="Original Documents flow on POST /interactions/{id}/documents — planned for deprecation">[Documents Classic](/api-reference/documents/generate-document)</Tooltip> | <Tooltip tip="Real-time FactsR extraction">[Streams](/api-reference/streams/)</Tooltip> | <Tooltip tip="REST FactsR extraction">[Extract-Facts](/api-reference/facts/extract-facts)</Tooltip> |
| :--------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------: |
| **Connection**         |                                                                             REST                                                                            |                                                                                       REST                                                                                      |                                           WSS                                           |                                                 REST                                                |
| **Data processing**    |                                                                         Synchronous                                                                         |                                                                                   Synchronous                                                                                   |                                       Synchronous                                       |                                             Synchronous                                             |
| **Architecture**       |                                                              Stateless or Stateful<sup>1</sup>                                                              |                                                                                     Stateful                                                                                    |                                         Stateful                                        |                                              Stateless                                              |
| **Text Gen**           |                                                                          Documents                                                                          |                                                                                    Documents                                                                                    |                                          FactsR                                         |                                                FactsR                                               |
| **Based on Templates** |                                                                             Yes                                                                             |                                                                                       Yes                                                                                       |                                            No                                           |                                                  No                                                 |
| **Quality Assurance**  |                                                                        `coming soon`                                                                        |                                                                                    Guardrails                                                                                   |                                      `coming soon`                                      |                                                 N/A                                                 |

<sup>1</sup> Guided Documents is **interaction-optional**: supply `context` (text / transcript / facts) for a stateless call, or supply `interactionId` to pull facts and transcripts attached to an existing interaction implicitly. The two are mutually exclusive today; combining them is on the roadmap.

<br />

<Tip>
  Please review the [languages page](/stt/languages/) to learn more about languages supported per endpoint and language code to use in API requests.
</Tip>

<Note>Please [contact us](https://help.corti.app) if you are interested in features that are not listed here, need help determining the best text generation endpoint for your needs, or have questions about how to configure your API requests.</Note>
