Agents
An agent is a configured task that BAIA carries out on its own: it works through a set of PIM products, writes values for the attributes you choose, and sends the result to PIM as proposed changes. People review the proposed changes in PIM before they are applied to the product data.
Agents are useful for enrichment work that follows the same instructions for many products, such as writing SEO titles, shortening product descriptions, or checking texts for claims that are not supported by the product data.
Preview feature
Agents are a preview feature. They must be enabled for your solution before the Agents menu is shown in the BAIA settings and the Agent Dashboard is shown in PIM. Contact Bizzkit if you want to use agents.
What defines an agent
An agent has one job. It is defined by:
- Products: a saved product filter in PIM, and the segment the agent writes to. The agent only works on products in the filter.
- Instructions: what the agent should do, in plain language, and the tone and style it should use.
- Knowledge sources (optional): reference material from the Information Hub, such as brand guidelines, that the agent can use.
- Attributes: the PIM attributes the agent writes to, each with optional instructions and rules, such as a maximum length or words the value must not contain.
- Review settings: how the changes are checked, and which roles review them. See How changes are reviewed.
How an agent works
An agent works through its saved filter in batches. Each batch contains a fixed number of products, set by the batch size. An agent processes each product only once, so products it has already handled in an earlier run are skipped, even if they are still in the filter.
For each product, the agent writes a value for every attribute it is configured for. BAIA then evaluates the value against the instructions and rules, and the agent revises it if needed. Each value gets a confidence score from 0 to 100%, which tells how sure the agent is that the value meets the instructions. A reviewer can also see why the agent proposed the change.
The proposed changes for a batch are sent to PIM as one agent proposal, which appears on the Agent Dashboard in PIM. Nothing is written to the product data until the changes are approved.
When a batch is done, the agent starts on the next batch of products in the filter. An active agent keeps going until there are no more products to process, and it pauses between batches while it waits for a review. BAIA also checks every hour for active agents that are not running, and starts them again. That way, the agent picks up new products that are added to its filter.
How changes are reviewed
Every agent uses one of two review settings.
Review every change
Every change the agent proposes waits for a reviewer. Nothing is applied until a person approves it. This is the default for new agents, and the recommended setting while you are setting up an agent and checking the quality of its output.
With this setting, the agent processes the whole batch at once. Rejecting changes does not pause the agent, and it starts on the next batch when the review is completed.
Review a sample, apply the rest
You review a share of each batch, the sample, plus every change the agent is unsure about. The rest is applied automatically. This setting uses three values:
- Products the agent handles at a time: the batch size, up to 200 products.
- Share of each batch you check: the sample size, as a percentage of the batch.
- Confidence threshold: how sure the agent must be before a change can be applied without review. Changes with a confidence score below the threshold always go to review.
The batch is processed in two steps:
flowchart TD
A[The agent processes the sample] --> B[The sample and low-confidence changes go to review in PIM]
B --> C{The reviewer completes the review}
C -->|A sample change was rejected| D[The proposal is rejected and the agent is paused]
C -->|The sample is approved| E[The agent processes the rest of the batch]
E --> F[Changes at or above the threshold are applied automatically]
E --> G[Changes below the threshold go to review]
- The agent processes the products in the sample. The sample changes, and any changes below the confidence threshold, are sent to PIM for review.
- When the reviewer completes the review, the agent processes the rest of the batch. Changes at or above the confidence threshold are applied to the product data straight away. Changes below the threshold are added to the same proposal and wait for a reviewer.
The sample is a quality check. If the reviewer rejects a change in the sample, or any other change the agent was confident about, the agent proposal ends as rejected, the rest of the batch is not processed, and the agent is paused. Update the agent's instructions, and then start it again. Rejecting a change that is below the confidence threshold does not stop the agent.
Bizzkit recommends
Start a new agent with Review every change, and use the review page to check the quality of its output on a small saved filter. When reviewers approve most changes without editing them, switch to Review a sample, apply the rest with a high confidence threshold, and lower the threshold gradually as you gain confidence in the agent.
Reviewers
The reviewers of an agent are one or more roles, or the whole company. Only users with one of these roles see the agent's proposals on the Agent Dashboard in PIM. To approve or reject changes, a user also needs permission to enrich products in PIM.
Feedback to the agent
When a reviewer edits a proposed value or rejects it, they can add a short note on why. The note is sent back to BAIA together with the decision, the edited value, and the time of the review. This feedback is used to improve the agent.
Costs
Agents use the AI model, and the cost of each run is registered under the Agents cost type in the BAIA cost management. When you test an agent while setting it up, the estimated cost per product is shown.
An administrator can set a monthly cost limit for agents. When the limit is reached, agents finish the product they are working on and then wait. They continue automatically when more budget is available, for example in the next month or when the limit is raised. While the limit is reached, a banner in the BAIA chat tells users about it.