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

# Breaking Changes: AI Agents & Automations

> AI Automation limits and services, retired applications, and Context Center memory changes in Collate 2.1.

# AI Agents & Automations

Collate 2.1 gives AI Automations a per-run entity limit and fixes each automation to one service. It retires the Reverse Metadata and AI Chart Refresh applications and moves Notion plugins to Open Authorization (OAuth). It also changes which memories reach every Collate AI prompt. All changes are compared against Collate 2.0.8.

## AI Automations Use a Per-Run Entity Limit Instead of a Batch Size

> [!NOTE]
>
> **Breaking.** An automation or request that sets `sourceFilter.batchSize` is rejected.

The `sourceFilter.batchSize` field never controlled a run. Collate 2.1 removes it and adds two fields that do:

| Field | Default | Effect |
| - | - | - |
| `sourceFilter.maxEntitiesPerRun` | 500 | Limits how many entities one run sends to the agent. The minimum is one. |
| `sourceFilter.processAllEntities` | `false` | When `true`, removes the limit and the run covers every entity the filter matches. |

Entities that a run skips because they were already processed do not count toward the limit. A run that does not set the new fields uses 500, which matches the earlier fixed behavior.

The upgrade removes `batchSize` from every stored automation and from its version history. A create request that still carries `batchSize` fails with a `400 Bad Request` error. Scripts, templates, and chat-created automations that send the field must stop sending it.

> [!NOTE]
>
> An uncapped run spends AI credits on every matching entity. Set `processAllEntities` only when you accept that cost. The automation wizard shows both fields on its **Configure** step.

## An Automation's Service Is Fixed at Creation

> [!NOTE]
>
> **Breaking.** A PUT or PATCH request that changes the service of an existing AI Automation is rejected.

An automation keeps the service it was created for. This also applies to an automation that has no service. You can still change its filter, prompt, and schedule. You can also rename it and edit its description. To move the work to another service, create a new automation.

## Templates and AutoPilot Cover More Entity Types

> [!NOTE]
>
> **Behavioral.** AutoPilot automations now cover every supported entity type in a service, and a re-run keeps your settings.

Built-in AI Automation templates now declare the entity types they support and can carry a prompt addendum for each type. Collate adds a final `Entity: <type>:<fqn>` line to each prompt when the prompt does not already name the entity that way.

The following behavior changes apply to AutoPilot automations:

* An AutoPilot automation covers every supported entity type that exists in its service, not only the first type.
* A re-run of AutoPilot keeps the settings that you own, which are listed after this list.
* A re-run rewrites only the service clause, the type clause, and the template-owned fields.
* The upgrade renames AutoPilot automations from the template name to the agent name. Names that you changed are not changed.
* The upgrade rewrites the narrow-table step in Description and personally identifiable information (PII) Discovery automations that still use the original template text. Edited automations are not changed.

AutoPilot keeps the following settings on a re-run:

* Schedule
* Enabled state
* Destinations
* Custom filter clauses
* Per-run entity limit

The create automation API gains the `supportedEntityTypes` and `promptAddenda` fields. Both are optional.

## Agents Created Through the API Are Always User Agents

> [!NOTE]
>
> **Behavioral.** The `provider` field of a create agent request is ignored.

The server now creates every agent that arrives through the API with the provider `user`. The `provider` field is no longer required. Only built-in data creates system agents. A client that sent `system` to mark an agent as built in must stop relying on it.

## Reverse Metadata Becomes a Per-Service Agent

> [!WARNING]
>
> **Breaking.** The Reverse Metadata application is deleted. Its channels are converted only when the last week of run history shows which service they reached.

Reverse metadata now runs as a `reverse_metadata` agent on each service. The upgrade does the following:

1. Reads the application's run history to find the services each channel wrote to.
2. Creates one agent per service. Channels that reach the same service are merged when they differ only in their filter.
3. Deletes the application and its related event subscriptions, run workflows, and scheduled jobs.

Only channels that ran in the last seven days are migrated. A channel that conflicts with another channel on the same service is also not migrated. The server logs the full configuration of every channel that is not converted to an agent.

After the upgrade, follow these steps:

1. Open each service that used reverse metadata.
2. Confirm that the service has its agent.
3. Recreate any missing agent from the logged configuration.

## AI Chart Refresh Runs Inside the Server

> [!NOTE]
>
> **Breaking.** The AI Chart Refresh application is deleted, and the chart `cachedData` field is no longer returned.

A Structured Query Language (SQL) chart refresh now runs inside the server, so the application has nothing left to do. The upgrade removes the application, its marketplace entry, and its scheduled jobs. It then moves each chart's cached result into a separate refresh record.

The chart API changes as follows:

| Collate 2.0.8 | Collate 2.1 |
| - | - |
| `cachedData` on a chart | Read-only `refresh` and `result` fields, returned only when you name them in `fields` |
| `cachedData` in a pin request | Still accepted as a fallback when `result` is absent |
| Charts built from SQL or Data Insights | Also charts built from an uploaded file (query type `file`) |

The `cachedData` field is removed in Collate 2.2. Update clients to read `refresh` and `result` before then. A chart built from an uploaded file is a snapshot, so a refresh request for it returns a `400 Bad Request` error. Refresh requests for other charts now report that the refresh was claimed. At most one refresh runs for each chart at a time.

## Notion Plugins Use OAuth Only

> [!NOTE]
>
> **Breaking.** A Notion context plugin no longer accepts an integration token.

Notion's hosted server accepts only OAuth, so a stored token never worked. The upgrade removes `integrationToken` from every Notion plugin and marks the plugin as disconnected. To reconnect each plugin, follow these steps:

1. Open **AI Studio**.
2. Edit the plugin.
3. Save the plugin to start the OAuth consent.

Collate then stores the tokens itself.

Collate 2.1 also adds HubSpot and Luma plugin types. Both use OAuth. The context plugin API gains `POST /v1/ai/contextPlugins/{id}/oauth/authorize` and `POST /v1/ai/contextPlugins/{id}/accessToken`.

## Only Preferences and Pinned Memories Reach Every Prompt

> [!NOTE]
>
> **Behavioral.** Collate AI now sends a user's global memories with every prompt only when they are Preference memories or pinned.

Other personal memories are retrieved for each question instead. The following changes apply:

* The upgrade retypes personal global memories that have no type, or the type Note, to Preference. They keep reaching the same prompts as before. A type that you chose, such as Learning or Runbook, is not changed.
* New personal global memories saved by Collate AI default to Preference.
* The `aiPlatformConfiguration.contextMemory.maxItems` setting is no longer read and is removed from the default configuration. The `tokenBudget` setting, 500 by default, is the only limit.
* The upgrade normalizes the link between each memory and the asset or article it is anchored to. No memory content changes.

## Memory Extraction Is On by Default

> [!NOTE]
>
> **Behavioral.** Collate now sets `LLM_ENABLED` and `LLM_MEMORY_EXTRACTION_ENABLED` to `true` by default.

In Collate 2.0.8, both settings defaulted to `false`, so uploaded files and articles produced no memories unless you turned extraction on. Now every deployment extracts memories from uploaded files and articles. The same switch enables other direct model features, such as natural-language filters and Ontology Studio suggestions. Memory extraction also runs on the AI platform through the new `aiProviderClass` setting.

Each deployment needs working credentials and a reachable model for its `llmConfiguration.provider`. The default provider is Bedrock. A deployment without them still starts. It disables the model features, logs the reason, and shows a failing **LLM Provider** check on the **Health Check** page. Set `LLM_ENABLED=false` to turn the features off without the failing check.

When extraction is on and the AI platform is enabled, published organization-wide Context Center memories can also produce Draft glossary terms. Collate keeps a suggestion only when the agent's confidence is at least 0.7. A reviewer approves each term. Memories anchored to an asset or to a file shared with only some people are never sent to the agent.

The default Bedrock model for these features changes from Haiku 4.5 to Haiku 5.5. A deployment that sets `LLM_BEDROCK_MODEL_ID` keeps its own value.

## Memory Reconciliation Agent Reviews Approved Memories Each Night

> [!NOTE]
>
> **Additive.** Collate 2.1 installs the Memory Reconciliation Agent, which runs every day at 3:00 AM server time.

The agent checks new memories for duplicates and contradictions. It also revalidates approved memories that nobody has touched for 30 days, up to 200 per run. The agent sets one of the following outcomes:

* A memory whose anchor no longer exists is marked Invalidated.
* A memory that a newer memory confidently contradicts or duplicates is marked Superseded. Pinned memories are not.
* An uncertain case returns the memory to Draft for review.
* A memory that is still valid stays Approved and records the review time.

Two options are off by default. One retires a memory that users correct often or that no answer has used for a set number of days. The other rejects an automatically captured memory that contradicts a well-rated one. Turn them on in the application configuration only if you want automatic retirement or rejection.

## Support Agent Is Available When the Knowledge Base Is On

> [!NOTE]
>
> **Additive.** Collate 2.1 adds the Support Agent, which answers Collate and OpenMetadata product questions from documentation and public code history.

The Support Agent is created only when `aiPlatformConfiguration.knowledgeBase.enabled` is `true`. The default is `false`. While the setting is off, the server removes the agent at startup. Questions about the status or failures of your own named ingestion pipeline go to the Data Advisor, not the Support Agent.

## Related Pages

Credit weights, billing endpoints, and Collate AI usage are covered on a separate page. For more information, see [Collate AI & Credits](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/collate-ai-and-credits.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.