Background AI agents
A background agent is the AI assistant working on its own. It keeps going after you close the browser, checks again on a schedule, writes its progress into a conversation, and asks for approval before it changes anything it was not allowed to change without asking.
You set agents up, and follow their work, in Settings → AI Agents.
Who can open the page
AI Agents is in the Setup group of the Settings menu. It is shown to users who hold at least one of these permissions:
| Permission | Lets you |
|---|---|
| AI agents - start and control own background tasks | Start background tasks that work with your own permissions, and follow, pause, resume and stop your own tasks. Link your own messenger account. |
| AI agents - manage agents, channels and all runs | Create and change agents, connect messengers, and see and control every task in your company. |
Company Admins have both. A Company Admin gives them to other roles on the Roles page; see Roles and permissions.
The page has up to four tabs. You see only the tabs your permissions allow:
| Tab | What it is for | Needs |
|---|---|---|
| Runs | Your background tasks: start one, and follow, pause or stop it. | The start permission |
| Approvals | The changes that tasks have proposed and that wait for your decision. | The start permission |
| Agents | The agents of your company, with their instructions and limits. | The manage permission |
| Channels | Your own messenger accounts, and your company's messenger connections. See Messengers. | Either permission |
Who an agent can serve
Each agent works for one group of people. You choose the group under Works for when you create the agent, and it can't be changed afterwards.
| Works for | What the agent does | What is needed |
|---|---|---|
| Staff | Runs background tasks for your office, and answers staff in messengers. It can see and do what the person it works for can. | The person who starts a task needs the start permission. Every change the agent wants to make waits for approval, except the ones you pre-approve. |
| Customers | Answers a customer's questions about their own orders, quotes and invoices. It can't change an order. It can pass a request to your office, and ask for a quote that waits for your price and approval. | The customer assistant must be on for your company (Settings → Profile → Customer Portal AI Assistant), and the customer's user needs the Use AI assistant permission. Customers reach the agent from a messenger that you connect for customers. |
| Drivers | Gives drivers the read-only assistant of the Driver app in a messenger. It answers about their own routes and stops and about using the app, and changes nothing. | Coming soon for drivers: a driver links a messenger from the Driver app's assistant, which needs a version of the Driver app that is not in the stores yet. The assistant for drivers must also be on in Settings → Driver App. |
A customer's contacts who have no Customer Portal account can also be answered, in a messenger only, when you allow it on the messenger connection. They can ask about that customer's shipments, and never see prices, quotes or invoices. See Messengers.
Start a background task
A task is a goal the agent works on for a set time, for example "Dispatch all incoming orders for me over the next 12 hours".
From the AI Agents page
-
Go to Settings → AI Agents and open the Runs tab.
-
Select New background task.
-
Fill in the form:
Field Notes Agent The agent that runs the task. If you choose none, your company's default agent runs it. What should the agent do? The goal, in your own words. Required. Run for (hours) How long the task may run. The form shows the maximum, which comes from the agent's Longest run and is never more than 72 hours. Check every (minutes) How often the agent checks again. Leave it on the agent's default, or enter your own number. May do without asking The changes the agent may make without your approval. See What an agent may do without asking. No end date (runs until someone stops it) Only for users with the manage permission. The task keeps checking, and using AI credits, until someone stops it. -
Select Start task.
The task works with your permissions, unless the agent is set to work with another user's.
From the chat
Ask the AI assistant in the chat panel to keep working on something, in your own words. The assistant offers a background task; nothing starts until you confirm it. The task then appears on the Runs tab too.
Follow a task
The Runs tab lists the tasks with their Agent, Status, who started them, when they started and end, the Next check, the Checks done, the AI credits used and the Approvals waiting. Use Open only to hide finished tasks. Users with the manage permission can switch between My runs and All runs.
| Status | Meaning |
|---|---|
| Queued | The task was created and has not started its first check yet. |
| Working | The agent is working on a check right now. |
| Scheduled | The agent is waiting for its next scheduled check. |
| Waiting | The agent is waiting for a message or an approval. |
| Paused | The task is paused. Resume it to continue. |
| Completed | The agent finished its task or reached its end time. |
| Failed | The task stopped because of an error. |
| Stopped | A person stopped the task. |
Select a task to open it. You see its Goal, the Agent's summary, what is Waiting for approval, and a Timeline of what happened: each check, each tool the agent used, each message, each proposal and each decision.
| Action | What it does |
|---|---|
| Check now | Makes the agent check at once instead of at the next scheduled time. |
| Pause / Resume | Pauses the task and continues it. If the agent is in the middle of a check, the task pauses when that check ends. |
| Stop | Stops the task for good, after you confirm. A stopped task can't be resumed. |
| Open conversation | Opens the task's conversation in the chat panel. |
The task's conversation
Every task writes into a conversation of its own, which you open like any other chat. There you read the agent's updates, see when it checks next and how many AI credits it has used, approve or reject its proposals, and use the same Check now, Pause, Resume and Stop controls.
You can write to the agent in that conversation, and it answers there shortly. If the task is paused, the agent reads your message after you resume it. A background agent reads text only, so files and voice notes can't be attached there. Only the person who started a task can write to it.
When a task needs you, for example to approve a change, RushHour also sends you a notification that opens the task.
Approvals
By default, an agent asks before every change. Each change it wants to make becomes a proposal that waits for the person the task works for.
You can decide a proposal in three places:
- on the Approvals tab of the AI Agents page;
- in the task itself, under Waiting for approval, or in its conversation;
- in a messenger, if you linked your account. See Messengers.
Select Approve to apply the change, or Reject to discard it. A proposal that nobody decides in time expires, and nothing is changed; ask the agent to propose it again. Proposals expire after 12 hours.
A proposal is decided by the person who started the task, or by a user with the manage permission. There is one exception: a task that the assistant offered to a customer can be started only by that customer. Your office can reject the offer, or stop the task once it runs.
What an agent may do without asking
Only a staff agent can be allowed to make changes without asking, and only these three:
- Add unassigned stops to routes
- Create routes
- Re-optimize routes
Everything else always waits for approval.
- On the agent, tick the actions under May do without asking. A task of that agent may then be allowed only those actions.
- If you tick none on the agent, the person who starts a task chooses for that task.
- In the task's conversation, a change the agent made without asking is marked Done without asking.
Customer and driver agents never change anything.
Set up an agent
You need the manage permission. Without any agent of your own, the first task uses a default agent.
- Go to Settings → AI Agents and open the Agents tab.
- Select New agent.
- Fill in the form and select Save.
| Field | Notes |
|---|---|
| Name and Description | For example "Night dispatcher". |
| Works for | Staff, Customers or Drivers. It can't be changed after the agent is created. |
| Instructions | Company rules the agent should always follow. The agent reads them on every check. |
| Enabled | A disabled agent can't start new background tasks. |
| Default agent | Used when a task does not name an agent. |
| Runs with the permissions of | Staff agents only. Leave it on Whoever starts the run, or choose a user to make every task of this agent work with that user's permissions. |
| May do without asking | Staff agents only. See above. |
| Default check interval (minutes) | How often a task checks when its starter names no interval. A new agent starts at 10 minutes. |
| Longest run (hours) | The longest a task of this agent may run. A new agent starts at 24 hours; the most you can set is 72. |
| AI credit limit per run and AI credit limit per day | See Limits. |
| Customers may ask for work over time | Customer agents only. See below. |
To change an agent, open it from the list. To remove one, delete it; an agent that still has an open task can't be deleted.
Let customers ask for work over time
On a customer agent, Customers may ask for work over time lets a customer ask the assistant to watch their own orders and report back, for example "tell me when order 1234 is delivered". It is off by default.
- Such a task only reads. It never changes anything.
- A customer's user can have up to 3 tasks open at a time. A task runs for up to 72 hours and checks at most every 30 minutes.
- Your company pays for the AI credits these tasks use.
- Turning the switch off also ends the tasks that are running.
Coming soon for drivers: a matching switch on a driver agent, Drivers may ask the assistant to watch their routes over time. It needs a version of the Driver app that is not in the stores yet.
Limits
| Limit | What it is |
|---|---|
| Length of a task | Up to the agent's Longest run, and never more than 72 hours. A task with no end date runs until someone stops it. |
| Checks | The shortest interval between two checks is 1 minute. A task with an end time can make up to 3,000 checks in all. A task with no end date makes at most 300 checks a day, then continues the next day. |
| Open tasks | Your office can have up to 25 open tasks at a time. The tasks that customers start for themselves are counted separately. |
| AI credit limit per run | When a task has used this many AI credits, it pauses. Raise the limit and resume the task to continue. |
| AI credit limit per day | When all tasks of the agent together have used this many AI credits in a day, they pause. A task with no end date continues the next day by itself. |
| Your company's AI limits | The spending limits in Settings → AI Usage apply to agents too. When they are reached, tasks pause until you add credits or raise the limit. See AI activity and usage. |
Leave a credit limit empty for no limit. A paused task tells you why it paused and what to do, on the Runs tab and in its conversation.
A task also stops when the person it works for can no longer use the assistant, when its agent or its conversation is deleted, or after several failed checks in a row.