Adding an Outside AI Agent as a User
Your company may run its own AI, for example an AI agent built with Claude, ChatGPT or Microsoft Copilot. You can give that agent a user of its own in ProcessPlan. It is then assigned tasks the same way a person is, and it does that work through a connection instead of the app.
An outside AI agent is different from ProcessPlan’s built-in AI Agent and AI Employees. Those are run by ProcessPlan. An outside AI agent is run by you, on the AI service you chose.
What an outside AI agent user is
Section titled “What an outside AI agent user is”It is a user in your Users list, with the name you give it. Much of what applies to a person applies to it:
- It works only on its own tasks. It sees the processes those tasks belong to and their templates, and it sees each task the way a person assigned to it would. See What the agent can reach below.
- Its user groups still apply. A group that may not see a template keeps the agent out of it too. See User Groups (and Security Groups).
- Its work is recorded under its own name. A task it completes or a field it changes shows the agent’s name in the process history and the audit log, so you can always tell the agent’s work from a person’s.
- It uses a paid user seat, like a person.
Three things are different from a person:
- It never signs in. It has no password and receives no invitation.
- It is never emailed. It has no email address, and task assignment emails are off for it.
- It works through an API token, which an administrator creates for it.
What the agent can reach
Section titled “What the agent can reach”An outside AI agent works only on its own tasks. Its own tasks are:
- tasks assigned to the agent by name, including its own copy of a step assigned to everyone in a group;
- tasks assigned to a group the agent belongs to, when no person is named on the task.
A task belonging to someone the agent is a backup for is not one of its tasks.
Because a group’s tasks count, every group you put the agent in adds that group’s open tasks to the agent’s work. Put the agent only in the groups whose work it should take.
With its own tasks, the agent can:
- Read the process each task belongs to, while its task there is open: the process, its tasks and its field values. It sees who each task is assigned to, by name. Once the agent finishes its task, it can no longer read that process.
- Read the process template behind it: the steps and the fields, including each field’s choices.
- See each task as a person would. The fields a step shows come with the same choices a person sees. A list of choices can name records from other processes, such as the customers a lookup field offers, or your user groups. Two things a person sees are never given to the agent: the step’s Task Resources, and the values of password fields. Put anything the agent needs in the step’s instructions or in its fields.
- Fill in fields in a process where one of its tasks is open, when the field is one it is allowed to change.
- Complete its own tasks. It cannot complete anyone else’s task, even when its user group is allowed to change task assignments.
The agent cannot see:
- your list of users, or your list of user groups (a field that offers user groups as choices still shows their names);
- the email address, mobile number or picture of anyone its tasks name;
- the audit log;
- your account’s information;
- any process or template where it has no open task, including completed processes.
Create the agent’s user
Section titled “Create the agent’s user”You need permission to edit user accounts.
- Under Administration, open Users and click the + (New User) button.
- Turn on This user is an outside AI agent. This choice is made once, when the user is created, and cannot be changed later.
- Type the agent’s name in First Name. A single name such as “Invoice Agent” is enough, so Last Name can stay empty.
- Assign it to at least one user group.
- Save.
Connect the agent
Section titled “Connect the agent”After you save, an API Token card appears on the agent’s user page.
- Click New API Token.
- Copy the token right away, because it is shown only once, and give it to the AI agent in the place where its tool asks for a ProcessPlan connection. See Connecting AI Assistants (MCP) for the server address and where the token goes.
The agent now works as its own user. It can read its tasks and the processes they belong to, fill in fields it is allowed to change, and complete its tasks.
Treat the token like a password. Anyone who has it can act as the agent.
- The token works only on this AI connection. It is refused by the rest of the ProcessPlan API, so an agent always works under the same task rules a person meets.
- An agent has one token at a time. If you lose it, delete it and create a new one.
- Deleting the token disconnects the agent at once. Use this if the agent misbehaves or the token may have been seen by someone else.
- Creating and deleting a token is recorded in your account’s audit log, with who did it and when.
- The agent cannot create a token for itself. Only a person with permission to edit user accounts can.
Give the agent work
Section titled “Give the agent work”Assign a process step to the agent’s user, the same way you assign a step to a person. When the process reaches that step, the task is waiting for the agent, and the agent completes it with one of the task’s responses.
The agent works one task at a time. When it checks in, ProcessPlan hands it its next task together with what it needs to do it:
- the step’s instructions, with this process’s values filled in
- the fields the step shows, with their values
- the step’s checklist
- the responses it can choose
The agent is asked to finish that task before it asks for the next one.
Its next task is the one due first. A task with no due date counts as due in two weeks, and among tasks due at the same time the oldest comes first. A task whose start date has not arrived yet is not handed to the agent until it has.
Because the agent is not emailed, it finds out about new work by checking in. A good pattern is to have the agent check in on a schedule, for example every few minutes, and finish one task each time.
Write the step’s instructions for the agent the way you would for a new employee. Say which response to choose for each outcome, because the agent sees only the responses’ names.
When the agent cannot finish a task, it is told to pass the task to its backup with a note on the task saying why, and then go on to its next task. For example, the agent cannot tick checklist items, so it should pass on a task whose checklist must be completed. Set a backup for this reason (see below).
A task cannot be passed on, and stays with the agent, when:
- the agent has no backup, or its backup is no longer a current person (for example, a deleted user or another outside AI agent);
- the step does not allow the task to be reassigned;
- the agent’s user groups can see the task’s process but not change it;
- the task is already assigned to the agent’s backup group.
The agent is then handed that same task each time it checks in, and its other work waits until someone finishes or reassigns it.
If the agent’s user groups do not let it open a task’s process at all, ProcessPlan passes that task to the agent’s backup, with a note on the task saying why, and hands the agent its next task. The agent never sees the task it could not open. It is told only how many of its tasks could not be opened, and is asked to report that. The limits are the same as when the agent passes a task itself: with no backup, or a step that does not allow reassignment, the task stays with the agent and waits until someone finishes or reassigns it. If none of its next ten tasks can be opened or passed on, the agent is given no task and is told to report its user groups. To avoid all of this, give the agent’s user groups permission to see and change every process it is assigned work in.
If the agent shares a group with other people or agents, a task assigned to that group stays with the group when the agent is handed it. Someone else in the group can pick up the same task, and whoever completes it second is told it is already finished.
If you want the agent told right away, there are two ways:
- Add an Automate a Webhook action to the step, calling your agent’s tool. See Webhook Action Type.
- Register an Event Webhook for the task created and task updated events. Each message carries the task, including who it is assigned to, so your tool can pick out the agent’s tasks.
Either way, the agent still takes its next task in the usual order when it checks in.
Some steps can hand work to the agent without anyone choosing it:
- A step assigned to The Least Utilized Person in a Group can pick the agent when it is in that group. An agent often has the fewest open tasks, so it may be picked often.
- A step assigned to Whoever Completes the Previous Task or Whoever Completes a Specific Task goes to the agent when the agent completed that task.
If an agent’s task should not wait indefinitely, add a timed automated action to the step that follows up or reassigns it.
Set a backup on the agent’s user page, under Select the Backup User. It can be a person or a group, but not another outside AI agent. The agent passes its backup any task it cannot finish, and ProcessPlan passes it any task the agent cannot open. The backup also receives a copy of the agent’s task assignment emails, when the step sends them and the backup’s own email settings allow it, so it can step in if the agent is not working. If you set start and end dates there, the agent passes tasks to the backup only between them.
Remove an agent
Section titled “Remove an agent”Delete the agent from the Users list, as you would a person. Its token stops working when it is deleted.