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

# Quickstart: Build an RPA with Intuned Agent

In this quickstart, you'll use Intuned Agent to build an RPA that automates patient management on an OpenEMR demo instance. By the end, you'll have a working automation that can list patients and add new ones—all generated from a simple prompt.

## What is Intuned Agent?

Intuned Agent is an AI agent that builds, edits, and maintains browser automation Projects. It runs inside the Intuned platform with a real browser, full access to the platform via the [Intuned CLI](/main/05-references/cli/overview), and works in the background as long as needed.

Learn more about Intuned Agent's full capabilities in the [overview](/main/02-intuned-agent/overview).

## Prerequisites

* An active Intuned account ([sign up here](https://app.intuned.io)). No credit card required—Intuned has a free plan.

## What you'll build

You'll instruct Intuned Agent to build an RPA that automates [OpenEMR's demo instance](https://demo.openemr.io/openemr/interface/login/login.php?site=default). The agent will build:

* AuthSessions for secure login to the OpenEMR portal
* An API to retrieve the list of existing patients
* An API to add a new patient

## Create your first RPA

<Steps>
  <Step title="Enter your prompt" icon="wand-magic-sparkles">
    1. Go to [app.intuned.io/agent](https://app.intuned.io/agent).
    2. Paste the prompt below into the input and send it.

    ```md Prompt theme={null}
    I want to automate the following website: https://demo.openemr.io/openemr/interface/login/login.php?site=default
    - I want to get the list of patients.
    - I want to be able to add a new patient.
    ```

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/enter-prompt.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=8be3345cb62586e687c1b3e4be47ef7a" alt="Intuned Agent session starting" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/enter-prompt.png" />
    </Frame>

    **Expected result:** The agent starts a session and begins exploring the target website.
  </Step>

  <Step title="Choose your language" icon="code">
    The agent asks which language you'd like to use for the project. Select **TypeScript** or **Python**.

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/language-selection.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=3ddc55f074e36c15d6733a849fa9f0fb" alt="Agent asking which language to use" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/language-selection.png" />
    </Frame>
  </Step>

  <Step title="Enter credentials" icon="lock">
    The agent detects that the site requires login and asks for credentials. Values are saved securely and never shared with the AI agent.

    1. **Username:** `admin`
    2. **Password:** `pass`
    3. Select **Save Credentials**.

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/enter-credentials.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=09957734ecde1073ebb89093c3c6bda4" alt="Enter credentials dialog" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/enter-credentials.png" />
    </Frame>

    <Tip>Credentials are saved securely and never shared with the AI agent. For production use, configure credentials as environment variables or use Intuned's [auth sessions](/main/02-features/auth-sessions).</Tip>
  </Step>

  <Step title="Answer the agent's questions" icon="comments">
    The agent explores the site — navigating pages, inspecting forms, and analyzing the data structure. It then asks clarifying questions to finalize the design, such as whether the "get patients" API should support filtering or return all patients. Answer each question as it appears.

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/answer-questions.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=d70f5edbc80f087a67e3f4df81323f86" alt="Agent asking clarifying questions" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/answer-questions.png" />
    </Frame>
  </Step>

  <Step title="Approve the plan" icon="clipboard-check">
    Once the agent has finished exploring, it presents a full plan including configuration (start URL, auth, language, template), discovered URLs, and the API structure. Review it and select **Approve Plan** to proceed, or **Suggest Changes** to adjust.

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/approve-plan.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=32558d24d8906d07c2159e2287c405f5" alt="Agent plan ready for approval" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/approve-plan.png" />
    </Frame>

    **Expected result:** The agent begins building your automation.
  </Step>

  <Step title="Wait for the agent to build" icon="gears">
    The agent writes the code, runs local and E2E platform tests, and validates the output. This typically takes 30–60 minutes.
  </Step>

  <Step title="Review results and deploy" icon="rocket">
    When the agent finishes, it shows a work summary describing what was built and the test results. In this case, the agent built two APIs (`get-patients` and `add-patient`), both with auth session support and passing E2E tests.

    Select **View Code** to inspect the generated code, or **Merge Branch** to deploy.

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/agent-done.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=715ef014d59c96b2edee41368065ec65" alt="Agent work summary with merge and view code options" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/agent-done.png" />
    </Frame>

    When you're satisfied, select **Merge Branch**. In the dialog, choose **Merge & Deploy** to create an Intuned project and deploy it immediately, or **Merge only** to merge the code without deploying.

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/merge-and-deploy.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=6cd889eba33cb8f8ad24d7a9be3d8f76" alt="Merge and deploy dialog" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/merge-and-deploy.png" />
    </Frame>

    **Expected result:** Your automation is deployed and ready to run via API or direct triggers.
  </Step>

  <Step title="Run your automation" icon="circle-check">
    Once deployed, navigate to your project and select the **Runs** tab. Select **Start Run** to trigger your automation.

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/start-run.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=64b579292d61f487ac9cb6db77bf8d11" alt="Project runs page with Start Run button" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/start-run.png" />
    </Frame>

    **Expected result:** The run completes successfully. You can see the input parameters, output result, auth session validation, and the full attempts timeline.

    <Frame>
      <img src="https://mintcdn.com/intuned-dev/6ujnva09ZSa8Gk7C/assets/intuned-agent/rpa-flow/run-success.png?fit=max&auto=format&n=6ujnva09ZSa8Gk7C&q=85&s=8e4beb7062d208a5757162e456894d24" alt="Successful add-patient run with parameters and result" width="3453" height="2160" data-path="assets/intuned-agent/rpa-flow/run-success.png" />
    </Frame>
  </Step>

  <Step title="(Optional) Iterate on your automation" icon="rotate">
    Start a new conversation and select **Pick project** to load your automation. You can then ask the agent to add new APIs, adjust form fields, handle edge cases, or update the login flow.

    **Example prompt:**

    ```markdown theme={null}
    Add a new API called "get-appointments" that takes a date and returns
    all appointments scheduled for that day.
    ```
  </Step>
</Steps>

## What's next?

* **[Intuned Agent](/main/02-intuned-agent/overview)** — Learn more about Intuned Agent's capabilities, including editing existing projects and fixing failed runs.

* **[Authentication](/main/02-features/auth-sessions)** — For automations that require login, Intuned provides built-in authentication support. You define how to log in and how to verify a session, and Intuned handles the rest—validating sessions before runs, reusing them when possible, and recreating them when expired.

* **[Monitoring and traces](/main/02-features/observability-monitoring-logs)** — Every run generates detailed logs, browser traces, and session recordings. Use these tools to debug failures, verify your automation is working correctly, and understand what happened during execution.

* **[Online IDE](/main/02-features/online-ide)** — Learn more about the Intuned IDE, which you can use to manually edit the automation you just created.
