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

# Squire: AI-powered medical consultation for EHR

> Squire integrates AI transcription and structured report generation into your EHR system. Get started with the SDK or pre-built widgets in minutes.

Squire is an AI-powered platform that helps healthcare providers document consultations faster. By integrating the Squire JavaScript SDK or pre-built Widgets into your Electronic Health Record (EHR) system, you can capture audio during consultations and receive structured, ready-to-use medical notes — automatically.

<CardGroup cols={2}>
  <Card title="Portal Setup" icon="building" href="/portal">
    Create your API keys and manage your integration from the Squire Portal.
  </Card>

  <Card title="Integration Overview" icon="plug" href="/integration/overview">
    Understand your two integration options: SDK and Widgets.
  </Card>

  <Card title="Authentication" icon="key" href="/integration/authentication">
    Learn how to request access tokens and authenticate SDK calls.
  </Card>

  <Card title="SDK Installation" icon="code" href="/integration/sdk/installation">
    Install the Squire JavaScript SDK and start your first integration.
  </Card>
</CardGroup>

## How it works

Squire listens to a consultation via the microphone, transcribes the audio, and generates a structured medical report in real time. Reports are delivered through the SDK's event system and can be written directly into your EHR.

<Steps>
  <Step title="Get your API key">
    Log in to the [Squire Portal](https://app.squire.eu) and create an API key for your environment.
  </Step>

  <Step title="Authenticate your users">
    Exchange your API key for a short-lived access token by calling the Squire Token API from your backend.
  </Step>

  <Step title="Integrate the SDK or Widget">
    Initialize the Squire SDK on the client side with the access token, then start recording consultations.
  </Step>

  <Step title="Receive structured reports">
    Listen for the `summary-ready` event to receive structured consultation data and write it to your EHR.
  </Step>
</Steps>

## Integration paths

<CardGroup cols={2}>
  <Card title="JavaScript SDK" icon="js" href="/integration/sdk/installation">
    Full control over UI and behavior. Ideal for custom EHR integrations built on any frontend framework.
  </Card>

  <Card title="Pre-built Widgets" icon="window" href="/integration/widgets/introduction">
    Drop-in UI components ready in minutes. Fully themeable to match your application.
  </Card>
</CardGroup>

## Explore further

<CardGroup cols={2}>
  <Card title="Output & Data" icon="file-medical" href="/integration/output">
    Understand the structure of consultation reports returned by Squire.
  </Card>

  <Card title="Templates" icon="layer-group" href="/integration/templates">
    Customize the output format using built-in or custom templates.
  </Card>

  <Card title="FHIR Interface" icon="hospital" href="/fhir">
    Receive consultation data as structured FHIR resources.
  </Card>

  <Card title="Support" icon="life-ring" href="/support">
    Contact our integration team for help.
  </Card>
</CardGroup>
