---
title: "Run an agent for your team on its own login"
canonical_url: https://zentrik.ai/docs/integrations/mcp-shared-agent
markdown_url: https://zentrik.ai/docs/integrations/mcp-shared-agent.md
category: "Integrations"
learning_track: null
last_reviewed: 2026-11-25
---

# Run an agent for your team on its own login

An agent that works for many people gets its own Zentrik login. Its work shows under its own name, each new initiative goes to the person who owns it, and you can limit or revoke it without touching anyone else’s access.

## Overview

Use this when one agent, such as an assistant built into your own tools, creates work in Zentrik for many people. For a person connecting their own assistant, start with [Zentrik MCP setup](https://zentrik.ai/docs/integrations/mcp).

Before you start, you need:

- a Zentrik Owner or Admin to invite the login and add it to teams
- an agent whose MCP client signs in with OAuth at `https://zentrik.ai/mcp`
- an email address you control for the login, such as an alias

## Set up the agent’s login

1. **Invite the login.** In **Settings**, open **People**, then **Members**, and invite the address as an **Editor** ([how invitations work](https://zentrik.ai/docs/product/workspace-access)). Give it a name people will recognize in history, such as "Help desk assistant (agent)". Accept the invitation and sign in once.
2. **Add it to its teams.** In **People**, then **Teams**, make it an Editor on each team it works in. It cannot read team work or create initiatives in a team it is not on.
3. **Connect the agent.** When the agent’s client opens Zentrik’s sign-in page, sign in as the agent’s login and approve the workspace.
4. **Choose what it can do.** Signed in as the agent’s login, open **Profile & security**, then **Your connected apps**. Open the app, choose **Read and create**, and select **Save changes**. The agent keeps every read and every tool that adds a record. From its next call, edits, deletes, sends and runs leave its tool list and are refused.
5. **Retire older connections.** If the agent used to run under a person’s login, that person opens **Profile & security**, then **Your connected apps**, and selects **Revoke connection** on the agent’s app.

## Hand new initiatives to people

When the agent creates an initiative for someone, it names them as the owner. Zentrik checks that they can edit one of the initiative’s teams, makes them the owner and emails them a link. History keeps the agent’s login as the creator: the agent says who should own the work, never who made it.

```json
{
  "clientRequestId": "6b0e8f2a-3c1d-4b7e-9a51-2f4c8d9e0a11",
  "name": "Let admins export usage by team",
  "teamIds": ["<team ID from teams.list>"],
  "ownerEmail": "jane@example.com",
  "ownerNote": "Requested by Jane in the help desk"
}
```

- Send it with `initiatives.create_draft`. Save `clientRequestId` before the call and reuse it with the same body on a retry. It becomes the initiative’s ID, so your tool can link the initiative before Zentrik answers.
- The reply carries `id`, `publicId` and `ownerHandover`. Its `email` is `scheduled` when the owner will be emailed.
- An owner is an Owner, Admin or Editor who edits one of the initiative’s teams. Anyone else, or an address outside the workspace, gets “Choose someone who can work on this Initiative.” and nothing is written. Create it again without an owner: it stays with the agent’s login until someone takes it.
- To change an owner later, send `ownerEmail` or `ownerUserId` to `initiatives.update`. Ideas take an owner through `assigneeId` on `ideas.create`.

The REST API accepts the same fields on `POST` and `PATCH /external/v1/initiatives`. See the [Initiatives API reference](https://zentrik.ai/docs/api/initiatives).

## Instructions for your agent

Add these lines to the agent’s instructions so every request follows the same path:

```text
When you create an initiative in Zentrik for someone:
- Make a new UUID, store it with the request as clientRequestId, and reuse it with the same body on any retry.
- Call initiatives.create_draft with the team's teamIds, ownerEmail set to the person who asked or the owner they named, and ownerNote "Requested by <name> in <your tool>".
- Keep the returned id and publicId with the request.
- If Zentrik answers "Choose someone who can work on this Initiative", create it again without ownerEmail and tell the person someone must pick it up.
- If a call is refused for volume, wait the retryAfterMs it gives, then retry.
- Never delete records. Ask a person instead.
```

## Check the result

- The initiative’s owner is the person you named, and they receive an email with a link to it. Workspaces that keep customer content inside Zentrik send the link only.
- The initiative’s history shows the agent’s login as the creator, and the owner change carries your note.
- **Your connected apps** shows the agent’s app with **Read and create** and when it was last used.

## Troubleshooting

### The agent says the connection can only read

Whoever connected the app limited what it can do. Sign in as that login, open **Profile & security**, then **Your connected apps**, and choose what the app can do.

### Choose someone who can work on this Initiative

The person named is not an Owner, Admin or Editor on one of the initiative’s teams, or the address is not in the workspace. Add them to the team in **Settings**, **People**, **Teams**, or create the initiative without an owner.

### Calls are refused for volume

All the agent’s work shares one connection: up to 4 reads at a time, up to 6 across the workspace, and 100 calls a minute per tool. Wait the `retryAfterMs` the refusal gives. Before an event where many people will use the agent at once, ask Zentrik support to raise your workspace’s limits for those days.

## Related guides

- [Use Zentrik MCP well](https://zentrik.ai/docs/integrations/mcp-best-practices)
- [Start with Zentrik MCP](https://zentrik.ai/docs/integrations/mcp-workflows)
- [Connect Zentrik MCP in Claude and Claude Code](https://zentrik.ai/docs/integrations/mcp-claude)
