> For the complete documentation index, see [llms.txt](https://docs.interactive.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.interactive.ai/deploy/interactive-agent.md).

# Interactive Agent

The Interactive Agent is where agent configurations become running services. Once you have built and saved a configuration this section handles everything needed to bring it to production.

Navigate to **Deploy → Interactive Agent** to see all agent deployments in your project. The listing shows each agent's name, current status, last update timestamp, and an action button. The top-right corner displays counters for how many agents are deployed and how many are in draft state.

<div data-with-frame="true"><figure><img src="/files/xYfO5EX3UoAvF2k5z2m1" alt=""><figcaption></figcaption></figure></div>

The action button changes depending on the agent's status:

* **Manage** appears for agents that are already running. Click it to open the deployment for editing.

<div data-with-frame="true"><figure><img src="/files/4FZzGWWayJFGH22dTB27" alt="" width="563"><figcaption></figcaption></figure></div>

* **Deploy** appears for agents that have a saved configuration but have not been deployed yet. Click it to open the deployment wizard. You can change the image version, environment variables, secrets, public URL, and schedule.&#x20;

<div data-with-frame="true"><figure><img src="/files/ZWajGQ8I2OBFbCkgFJ28" alt="" width="563"><figcaption></figcaption></figure></div>

### Deploying an Agent

The deployment wizard opens when you click **Save draft and deploy** from the Agent Configuration review step, or when you click **Deploy** on a draft agent in the Interactive Agent listing. The wizard has five steps.

{% stepper %}
{% step %}

### Step 1: Identity

**Agent configuration** shows the build draft this deployment is based on. This field is read-only.

**Instance name** is the identifier for this deployment. It defaults to the configuration's name and is bumped with a suffix if a deployment with that name already exists. It accepts letters, digits, hyphens, and underscores, and is locked once the agent is live.

**Image** is the container image that will run the agent. It defaults to `interactive-agent`, the platform's standard agent image.

**Image version** is a dropdown listing the available versions of the chosen image, pulled from the operator catalog.
{% endstep %}

{% step %}

### Step 2: Endpoint

**Public URL** is a toggle. When enabled, the agent gets a publicly reachable hostname and a Hostname preview appears showing the full URL where the agent will be accessible. When disabled, the agent stays internal to the platform.
{% endstep %}

{% step %}

### Step 3: Runtime

**Environment variables** are plain, non-secret key-value pairs passed to the agent at runtime. Click + Add variable to define one.

**Router API Key** and **Agent API Key** are only shown the first time you deploy an agent.

* The Router API Key is the outbound key the agent uses to bill AI calls through the platform router. A dropdown lets you pick an existing key from the project or create a new one.
* The Agent API Key is the inbound key that callers use to authenticate to the deployed agent through HTTP Basic Auth. Click Generate to create one, or enter a value manually. Save it the moment you generate it, because there is no way to reveal it later.

**Secrets** lists the project secrets available to attach to the deployment. Each selected secret's keys are injected as environment variables at runtime. If no project secrets exist, a message directs you to create one from the Secrets Manager.
{% endstep %}

{% step %}

### Step 4: Schedule

Leave the schedule disabled to keep the agent running 24/7. Toggle **Enable schedule** on to define an uptime window:

* **Uptime** accepts a cron-like window expression that defines when the agent should be running. Example: `Mon-Fri 09:00-18:00`. Outside this window, the agent is scaled to zero to save cost.
* **Timezone** accepts an IANA timezone identifier. Example: `Europe/Madrid`.
  {% endstep %}

{% step %}

### Step 5: Review

The review screen shows four summary cards (Identity, Endpoint, Runtime, Schedule) alongside a live preview of the Generated manifest in YAML. Each card has an Edit button that jumps back to the corresponding step.

If required fields are missing, a banner at the top reads "Resolve before deploying" and lists the issues with links to the relevant step. Once all requirements are met, click **Deploy** to publish.
{% endstep %}
{% endstepper %}

### First Deploy

On first deploy with the default image, the platform automatically creates a bundle secret named `router-<instance-name>`. This secret contains the Router API Key, the Agent API Key, and the platform credentials the agent needs to communicate with the router. The bundle is attached to the deployment automatically, even if you do not select it manually in the Secrets step.

After a successful first deploy, the agent appears in the Interactive Agent listing with a Running status and is reachable at its hostname.&#x20;

### Deployment Statuses

Agents in the listing can show one of three statuses:

* **Running** means the agent is live and handling requests at its public endpoint.
* **Draft** means the configuration has been saved but not yet deployed. The agent has no running instance.
* **Provisioning** means a deployment has been triggered and the platform is bringing the agent up. This status is temporary and transitions to Running once the pod is ready.

### Restoring a Previous Deployment

The deployment edit view lists prior revisions. Select one to view it in read-only mode, then use **Restore revision** to make it live again. No rebuild is needed; the platform redeploys the selected revision as-is.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.interactive.ai/deploy/interactive-agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
