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

# Imitation Learning

> Record your browser actions and narration to automatically generate custom agents

## What is Imitation Learning?

Imitation Learning lets you **show** Narada how to do something by recording your browser actions while narrating what you're doing. Narada watches your actions, listens to your narration, and automatically generates a reusable agent workflow.

<Info>
  Think of it as screen recording meets AI. You demonstrate a task once, and Narada creates an agent that can repeat it.
</Info>

## How It Works

<Steps>
  <Step title="Record your actions">
    Perform the task in your browser while narrating what you're doing. Narada captures your clicks, typing, navigation, screenshots, and audio.
  </Step>

  <Step title="Narada processes the recording">
    Your narration is transcribed, actions are analyzed, and element selectors are validated for robustness.
  </Step>

  <Step title="A workflow is generated">
    Narada generates a complete agent workflow from your recording that can be reviewed, edited, and reused.
  </Step>
</Steps>

## Getting Started

### Starting a Recording

You can start an Imitation Learning recording from the **Agent Studio**:

<Steps>
  <Step title="Open Agent Studio">
    Navigate to the **Agent Studio** from the Narada sidebar.
  </Step>

  <Step title="Click Create">
    Click the **+ Create** button to open the creation dialog.
  </Step>

  <Step title="Select Imitation Learning">
    Choose **Imitation learning** from the options. The description reads: "Record your actions to teach the agent by example."

    <Frame>
      <img src="https://mintcdn.com/naradaai/pruXFeeEFZta0axq/images/imitation-learning-button.png?fit=max&auto=format&n=pruXFeeEFZta0axq&q=85&s=583c002705ca133fc5a9cf1f160f4937" alt="Imitation Learning option in the Agent Studio create dialog" width="572" height="406" data-path="images/imitation-learning-button.png" />
    </Frame>
  </Step>

  <Step title="Review tips and start">
    You'll see an intro screen with tips for best results:

    * **Narrate your actions** as you perform them
    * **Go at a natural pace**
    * **Speak clearly** to describe what you're doing

    Click **Start Recording** when you're ready.

    <Frame>
      <img src="https://mintcdn.com/naradaai/pruXFeeEFZta0axq/images/imitation-learning-start-recording.png?fit=max&auto=format&n=pruXFeeEFZta0axq&q=85&s=d276482587f2555a14750f42997b8928" alt="Imitation Learning intro screen with tips and Start Recording button" width="712" height="946" data-path="images/imitation-learning-start-recording.png" />
    </Frame>
  </Step>
</Steps>

<Note>
  The Narada Chrome Extension must be installed for Imitation Learning to work. If it's not installed, you'll be prompted to install it.
</Note>

### During Recording

Once recording starts, you'll see a recording interface in the Narada side panel:

<Frame>
  <img src="https://mintcdn.com/naradaai/pruXFeeEFZta0axq/images/imitation-learning-recording.png?fit=max&auto=format&n=pruXFeeEFZta0axq&q=85&s=8b8c14c4d022d5331ec18c3f3dee194e" alt="Active recording UI showing red recording indicator, timer, and audio waveform" width="708" height="1106" data-path="images/imitation-learning-recording.png" />
</Frame>

* A **red pulsing indicator** shows that recording is active
* A **timer** tracks elapsed time (MM:SS format)
* An **audio waveform** visualizes your microphone input in real-time
* A **live workflow editor** shows captured steps as they're detected

**Controls available during recording:**

| Button             | Action                                               |
| ------------------ | ---------------------------------------------------- |
| **Pause**          | Temporarily pause recording (indicator turns yellow) |
| **Resume**         | Continue recording after a pause                     |
| **Stop Recording** | End the recording and start processing               |

<Warning>
  Recordings have a maximum duration of **5 minutes**. If you reach the limit, the recording will automatically stop and begin processing.
</Warning>

### What Gets Captured

During your recording, Narada captures:

<CardGroup cols={2}>
  <Card title="Browser Actions" icon="mouse-pointer">
    Clicks, text input, keyboard events (Tab, Enter, Escape), and page navigation
  </Card>

  <Card title="Audio Narration" icon="microphone">
    Your voice narration is transcribed with timestamps for each segment
  </Card>

  <Card title="Screenshots" icon="camera">
    Visual snapshots of the page at key moments during your workflow
  </Card>

  <Card title="Page Structure" icon="code">
    HTML snapshots and element selectors for robust action replay
  </Card>
</CardGroup>

### After Recording

When you click **Stop Recording**, Narada processes your recording through several stages:

<Steps>
  <Step title="Selector filtering">
    Element selectors are validated and filtered for robustness. You'll see progress: "Filtering X/Y selectors..."
  </Step>

  <Step title="Audio transcription">
    Your narration is transcribed into text with segment-level timestamps.
  </Step>

  <Step title="Workflow generation">
    Narada analyzes the recording context (actions, narration, screenshots, and page structure) to generate a complete agent workflow. This usually takes a few minutes.

    <Frame>
      <img src="https://mintcdn.com/naradaai/pruXFeeEFZta0axq/images/imitation-learning-processing.png?fit=max&auto=format&n=pruXFeeEFZta0axq&q=85&s=0dba1be1bbeefde9a4ff5a44cca8d4d1" alt="Processing screen showing spinner with Analyzing the recorded actions message" width="710" height="578" data-path="images/imitation-learning-processing.png" />
    </Frame>
  </Step>

  <Step title="Review your workflow">
    Once generation is complete, you'll see a success screen with an **Open Workflow** button. Click it to review and edit the generated workflow in the Agent Studio.

    <Frame>
      <img src="https://mintcdn.com/naradaai/pruXFeeEFZta0axq/images/imitation-learning-success.png?fit=max&auto=format&n=pruXFeeEFZta0axq&q=85&s=368efd3ddb6994492d68ca77363e0398" alt="Workflow Created success screen with Open Workflow button" width="3008" height="1402" data-path="images/imitation-learning-success.png" />
    </Frame>
  </Step>
</Steps>

## Editing the Generated Workflow

The generated workflow opens in the Agent Studio editor where you can:

* **Review each step** to verify it matches your intent
* **Edit step instructions** to refine the automation
* **Add or remove steps** to customize the workflow
* **Test the workflow** by running it directly

<Tip>
  The generated workflow uses robust element selectors with Operator agent fallback, so it can adapt to minor UI changes on the target website.
</Tip>

## Tips for Best Results

<CardGroup cols={2}>
  <Card title="Narrate Clearly" icon="microphone">
    Describe what you're doing and **why** as you perform each action. The narration helps Narada understand your intent, not just the mechanics.
  </Card>

  <Card title="Go at a Natural Pace" icon="gauge">
    Don't rush through actions. Give Narada time to capture each step properly.
  </Card>

  <Card title="Keep It Focused" icon="bullseye">
    Record one specific workflow per session. Complex multi-part tasks are better split into separate recordings.
  </Card>

  <Card title="Use Clear Websites" icon="globe">
    Ensure pages are fully loaded before interacting with them. Avoid recording during loading spinners.
  </Card>
</CardGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Recording won't start">
    * Ensure the Narada Chrome Extension is installed and you're signed in
    * Check that your browser has microphone permissions enabled for Narada
    * Try refreshing the page and starting again
  </Accordion>

  <Accordion title="Generated workflow doesn't match my actions">
    * Make sure you narrated clearly during recording. Narration significantly improves generation quality
    * Try recording at a slower pace
    * You can always edit the generated workflow in Agent Studio to fix specific steps
  </Accordion>

  <Accordion title="Audio not being captured">
    * Check your browser's microphone permissions
    * Ensure your microphone is not muted at the OS level
    * Try a different microphone if available
  </Accordion>
</AccordionGroup>
