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

# Companies this agent can work on

> Choose which of your customers' companies an agent may reach: only the ticket's company, specific companies, or all of them. The options per kind of agent, the defaults, what the setting limits today, and the best practice.

An agent reaches your customers' systems with your keys. This setting decides which of your companies it may work on. You find it in the agent builder: under the trigger or the schedule on the **Triggers & Filters** tab, and on the **Overview** tab of a chat agent.

> [!WARNING]
>
> Today this setting limits connected security tools. Microsoft 365, PSA tools, documentation and RMM tools are not limited yet.
>
> A few connected security tools follow every option. The others keep their own check: under every option, **all companies** included, they hold a run that starts from a ticket to that ticket's company. A run with no ticket, such as a scheduled run or a chat not opened from a ticket, is not limited by them yet. The paragraph under the setting in the builder shows what your choice holds today, and it changes there when Neo limits more tools.

## The options

The words differ per kind of agent, because a triggered run always starts from a ticket, a scheduled run never does, and a chat starts from a ticket only when a technician opens it from one.

### Triggered agent

| Option | What the agent may reach | Use it for |
| - | - | - |
| **Only the ticket's company** (default) | The company of the ticket the run started from. | Almost every agent. A ticket for one customer stays with that customer. |
| **Ticket's company + your own company** | The ticket's company, and your own company's records. | An agent that also reads your own internal records, such as your own documentation company or internal tickets. The builder offers it only where Neo can tell your own company apart in your PSA. |
| **Ticket's company + specific companies** | The ticket's company, and the companies you list. | A parent company and its sites, or a shared service company that every ticket needs. |
| **All companies** | Every company, in the tools that follow this setting. | An agent whose job crosses customers. The builder asks you to confirm. |

A triggered agent on a time entry works on the company of the entry's ticket.

### Chat agent

| Option | What the agent may reach |
| - | - |
| **All companies; a chat opened from a ticket stays on that ticket's company** (default) | In a chat from Teams, Slack or the dashboard, every company. In a chat a technician opens from a ticket, that ticket's company only. |
| **Specific companies** | The companies you list. In a chat opened from a ticket, also that ticket's company. |
| **All companies, also in a chat opened from a ticket** | Every company in every chat, in the tools that follow this setting. |

An end-user chat agent has no such setting.

### Scheduled agent

| Option | What the agent may reach |
| - | - |
| **All companies** (default) | Every company. A scheduled run has no ticket, so no tool holds it to one company. |
| **Specific companies** | Only the companies you list. |

A scheduled run starts from no ticket, so the ticket options do not exist for it.

## Specific companies

Pick the companies from your [Companies](https://dashboard.neoagent.io/end-companies) tab. A list holds 1 to 1,000 companies, and the builder shows how many you picked. For more than 1,000, let the agent work on all companies.

## All companies on a triggered agent

When you pick **All companies** on a triggered agent, the builder asks you to confirm: the agent will be able to use any customer's records, not only the ticket's company, in the tools that follow this setting. It still stays within its permissions and approvals. It works best with read-only tools and writes only to the ticket's internal fields.

## The best practice

When you choose an option that reaches beyond the ticket's company, the builder checks the agent's tools. It shows one line, such as **2 things to check for an agent that works across companies**, and opens to the list: each thing the agent can do that the best practice avoids (change customer systems, write beyond the ticket's own fields, send messages customers read), with the tools and permission groups that do it. A thing marked **Runs without approval** is the one to look at first; one where a technician approves each change is a lower concern. Many agents show this line. It informs you and never blocks a save.

**Works best with read-only tools and writes only to the ticket's internal fields.** An agent that crosses companies should look things up anywhere, and change only the ticket it works on.

## When the setting stops a call

When the chosen option keeps the agent away from a company, a tool that follows this setting refuses that call. The refusal tells the agent to report it to the technician in an internal note or in the run's result, never in a message to the customer, and not to retry with another company.

The refusal is the tool call's result, so you find it in the run's steps: open the run in [Executions](https://docs.neoagent.io/product/executions.md). It reaches the run's summary only when the agent writes it there.

A refusal for another customer's company from a tool that follows this setting names it and where to change it. A tool with an older check holds a ticket run to its ticket's company under every option, and its refusal says so. Other refusals, such as a write Neo cannot tie to the ticket's company or a call that names no customer, give their own fix. To change the option, open the agent, find **Companies this agent can work on**, and pick another option. The Neo Support Agent can make the change too.

## Defaults and version history

An agent you never set reads as the default of its kind: **Only the ticket's company** for a triggered agent; for a chat agent, a chat opened from a ticket stays on that ticket's company and any other chat reaches all companies; **All companies** for a scheduled agent. The builder shows the default with no warning. Your choice is saved with the agent, and Version History shows a change to it. A copy of the agent inside your account keeps the setting. A shared link never carries it, so the person who copies the agent chooses it. A template from Neo may start an agent on a mode, such as all companies, but never on a list of companies.

## Through the API and Neo Support

The [public API](https://docs.neoagent.io/developers/introduction.md) reads and writes the setting as `agent_settings.company_scope`, with `mode` (`TICKET_COMPANY`, `TICKET_AND_OWN_COMPANY`, `CHOSEN_COMPANIES` or `ALL_COMPANIES`) and, for `CHOSEN_COMPANIES`, `psa_company_ids`. A null `company_scope` means you never chose, and the agent read's `resolved_company_scope` names the default that applies. `GET /public-api/agents/{agent_id}/company-scope-findings?mode=ALL_COMPANIES` returns the same list the builder shows for that option.

You can also ask the Neo Support Agent to change it. It shows you the same list first, and it asks before it lets a triggered agent work on all companies.


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