> ## Documentation Index
> Fetch the complete documentation index at: https://prismeai-legacy.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring Helper Agents

> Each product have helpers to help users filling forms with gen AI.

<Frame>
  <img src="https://mintcdn.com/prismeai-legacy/jdOgS9ouJy0zTcFo/images/helper-agent.jpg?fit=max&auto=format&n=jdOgS9ouJy0zTcFo&q=85&s=635dfcfc985159b220496831e76198dd" alt="Helper agent dialog" width="1056" height="456" data-path="images/helper-agent.jpg" />
</Frame>

## Installation

### Environment Variable

Before configuring helper agents, you must define the `HELPER_AGENT_ENDPOINT` environment variable on your instance. This URL should point to the `query` automation endpoint of the **Helper Agents** workspace:

```bash theme={null}
HELPER_AGENT_ENDPOINT="https://api.studio.prisme.ai/v2/workspaces/XXXXXX/webhooks/query"
```

Replace `XXXXXX` with your actual Helper Agents workspace ID.

### Workspace Setup

You should find a Workspace named **Helper Agents**. From **AI Builder**, enter into it.

In Automations list, there is a folder named `00_InitAgents` with an
automation for each product. Each will create and update an AI Knowledge agent
which will have role to help the product. Run each one. You now have as many as
new agents in AI Knowledge home.

<Warning>
  After initialization, make sure each agent is configured with a model that is available on your instance. If no image model is available, images will not be generated.
</Warning>

Then, you will have to configure each products in AI Governance. The automation
`Generate AI Governance config` from **Helper Agents** Workspace will give to you
the raw configuration for AI Governance. You can go to the products section
(STUDIO/en/product/ops-manager/products), edit each product and add the
corresponding ID and API Key from the previous automation.

<Frame>
  <img src="https://mintcdn.com/prismeai-legacy/jdOgS9ouJy0zTcFo/images/set-product-helper-agent-ui.jpg?fit=max&auto=format&n=jdOgS9ouJy0zTcFo&q=85&s=998603e13f5dca3f3b5c1e7b5368614c" alt="Configure from UI" width="3122" height="1644" data-path="images/set-product-helper-agent-ui.jpg" />
</Frame>

Alternatively, You can edit the workspace in settings, and paste the object in
the config value.

<Warning>
  For AI Builder, the helper agent credentials cannot be configured from the UI. You must add them manually in code view, below the existing credentials, see the first lines (561) from the next picture below.
</Warning>

<Frame>
  <img src="https://mintcdn.com/prismeai-legacy/jdOgS9ouJy0zTcFo/images/set-product-helper-agent-raw.jpg?fit=max&auto=format&n=jdOgS9ouJy0zTcFo&q=85&s=6c3001998373ff01d16a41a745ce97b4" alt="Configure from editor" width="890" height="790" data-path="images/set-product-helper-agent-raw.jpg" />
</Frame>

Congratulations, your products are ready to work with their helpers!

## Update

After each upgrade, it is possible you will need to upgrade this helper agents
by running again all the init automations.

## Customization

These agents are optimized for the more common LLM. Maybe they works bad in your
environment and you want to customize yours. Just create a new agent in
AI Knowledge, and edit it like you want. You can duplicate **Helper Agents**
Workspace to start with a working template. Finally, just change the id/apikey
in AI Governance like in Installation section.
