# Multiple agents on one site (/docs/installing/multiple-agents)

If you have more than one agent, for example one for your billing product and one for your main app, you can install a single snippet that shows the right agent on each page.

On any agent's **Install** tab, under **Which agents**, choose:

| Option | What it does |
| --- | --- |
| **This agent everywhere** | The snippet always shows this agent, on every page its Targeting allows. |
| **Pick the agent by page** | One snippet for all your agents. Each page shows the agent whose Targeting matches it. |

The second option uses your workspace ID instead of an agent ID:

```js
Skavelo.init({ workspaceId: 'YOUR_WORKSPACE_ID' });
```

## How Skavelo picks the agent [#how-skavelo-picks-the-agent]

On each page, Skavelo checks every agent's [Targeting](/docs/customizing/targeting) rules and allowed sites. If more than one agent matches, an agent aimed at specific pages wins over one that shows everywhere. In a single-page app, Skavelo checks again as users move between pages.

<Callout title="Example">
  Set your billing agent's Targeting to **Only these** pages, `/billing/*`, and leave your main agent on **Every page**. Billing pages show the billing agent, and every other page shows the main one.
</Callout>
