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

# Macros

> Define pre-built content that is automatically injected into specific sections of your AI-generated notes on Android.

Macros let you define pre-built content that is automatically injected into specific sections of your note. This reduces editing time and ensures consistent, clinically relevant documentation across visits.

Macros are configured on a **per-template, per-section** basis within *[Custom Formatting](/android/ambient_ai_scribe/custom-formatting)* in AI Studio.

## Dynamic Macros

A dynamic macro contains default content that can be **overridden based on what is discussed during the visit**. The AI fills in dynamic values from the transcription and adjusts the default content accordingly.

**Example:**

* Default: **EENT**: Denies vision changes, ear pain, nasal congestion or discharge, or sore throat.
* Generated: **EENT**: Patient experienced pain in the right ear and throat inflammation. Denies vision changes and nasal congestion.

## Static Macros

A static macro contains fixed text that is inserted **as-is** into the note regardless of the visit content. Nothing additional is generated for that content.

<Note>
  While dot phrases and static macros both deal with predefined text, static macros are best for independent sentences or paragraphs. *[Dot Phrases](/android/ambient_ai_scribe/dot-phrases)* are better for short phrases that appear throughout a note.
</Note>

## Creating a Macro

<Steps>
  <Step title="Open AI Studio">
    Navigate to **Settings** > **AI Studio** > **Custom Formatting**.
  </Step>

  <Step title="Select a template and section">
    Choose the note template, then find the section where the macro should appear. Tap **+ Add a macro**.

    <Note>
      If you need the same macro in multiple sections, it must be added individually to each section.
    </Note>
  </Step>

  <Step title="Configure the macro">
    Enter the **exam name** (the word you will verbalize to trigger it) and the **macro content**. Then set optional preferences:

    * **Default** — always show this macro if no other macro is triggered for the same exam name
    * **Listed systems** — check to include all discussed systems, or uncheck to show only the systems listed in the macro
    * **Formatting instructions** — add custom formatting rules specific to this macro
    * **Patient demographics** — restrict the macro to specific age or gender groups
  </Step>

  <Step title="Save">
    Tap **Save Rules** at the bottom of the template screen.
  </Step>
</Steps>

## Using Macros During a Visit

During the encounter, **verbalize the exam name** to trigger the macro. The AI will include the macro content in the generated note. You can toggle the highlight feature on to see which values were dynamically filled.

<Note>
  Patient demographics (age, gender) must be mentioned during the visit for demographic-restricted macros to trigger.
</Note>

## Next Steps

<CardGroup cols={2}>
  <Card title="Custom Formatting" icon="pen-ruler" href="/android/ambient_ai_scribe/custom-formatting">
    Set per-template rules for tone, structure, and section formatting.
  </Card>

  <Card title="Dot Phrases" icon="comment-dots" href="/android/ambient_ai_scribe/dot-phrases">
    Set shortcut audio triggers to save time during documentation.
  </Card>
</CardGroup>
