Agent status commands
Set your own status from Slack or Microsoft Teams with commands such as /online, /lunch, /brb and /back, and see how they affect the team status and your timeclock.
Last updated About 1 month ago
Agent status commands let you tell the team whether you are working, at lunch or away by typing a short command in Slack or Microsoft Teams, without opening QuantumOps. Your status feeds the team status that managers and dispatchers read, and your lunches and breaks are also recorded on your timeclock.
Before you start:
- An administrator must have mapped your Slack ID, or your Teams user, to your agent on Configuration β Q-Director Config β Messaging, or in Edit details in Team Management. Without that mapping the status commands answer "Agent not found in the system." See Q-Director: Slack, Teams and agent mapping.
- In Slack, an administrator must have added each command to your Slack app. See Setting up the Slack app. These commands work whether or not Qubit is switched on in Slack.
- In Teams, the classic commands work whether or not Qubit is switched on, with one split: while Qubit is on,
helpandstatusare answered by Qubit, and the other commands (online,offline,lunch,brb,back,morningsummary,qnotice,sdm) still run as commands when they are the whole message. See Use the classic commands in Teams.
Set your status in Slack
Type the command in any channel or conversation where you can use slash commands.
Things to know about the commands:
- Lunch lasts your lunch length from the moment you run
/lunch: one hour unless your administrator set another length. With lunch scheduling on, a lunch started after your deadline is never refused for the away limit. /brbneeds a reason. With none, you see "Please specify a reason for your leave." and your status does not change. It lasts until the return time you give; with no return time it lasts 15 minutes, and the confirmation says so.- Times can be written as
1pm,3:30pm,13:00or1500. They are read in the time zone on your agent record. A time that has already passed today is taken as that time tomorrow. Your time zone is the Time zone field under Edit details in Team Management. - Only you see the confirmation card. QuantumOps then posts a short line in the channel where you typed the command, for example "Jane is now Lunch β’ Expected back at 13:00", and everyone there sees it.
How away limits affect lunch and leave
An administrator sets two limits on the Messaging tab: Max Agents Allowed Away (2 unless changed) and Max Dispatchers Allowed Away (1 unless changed).
When you take lunch now or set yourself away in Slack, QuantumOps counts the people with your agent role who are already away, or who have a scheduled lunch or leave that overlaps yours. If your break would pass the limit, the command is declined with a message such as "Cannot take break - would exceed maximum allowed away (2)." The message then names the people you conflict with, or says how many are away.
- The limits are counted per agent role. Your agent role is the Agent role field under Edit details in Team Management. It is not the sign-in role, such as Dispatcher, that decides which screens you can open.
- The limits apply to people whose agent role is Agent or Dispatch. People whose agent role is SDM Primary or SDM Secondary are not limited.
- In Slack, someone whose agent role is not set, or is any other value, cannot take lunch now or go away until an administrator sets their agent role in Team Management.
- A status changed for you with
/sdmin Slack, or@qops sdmin Teams, skips the check. - Teams uses the same rule as Slack. The limits are maximums of people away, and the check covers
@qops lunchand@qops brb(orleave). Until October 2026 Teams read the Dispatcher limit as a minimum that had to stay online and did not checkbrbat all.
Change another agent's status
People whose agent role is SDM Primary, SDM Secondary or Dispatch can set another agent's status with /sdm. Mention the person, then give a command:
/sdm @Jane online
/sdm @Jane lunch
/sdm @Jane brb doctor appointment 2pm
/sdm @Jane back
- The commands you can pass on are
online,offline,lunch,brb(orleave) andback. Each follows its own rules, so/sdm @Jane brbwith no reason is refused ("Please specify a reason for your leave.") exactly as/brbis. Only you see a refusal, and nothing is announced in the channel. - The person you mention must be mapped to an agent too.
- The change is applied as if they had run the command themselves, and the reply is posted in the channel for everyone, with a line saying who made the change.
- Anyone else gets "Only SDMs and Dispatch can use this command."
- In Teams the same command is
@qops sdm @Jane lunch. Use a real @mention: QuantumOps matches the mentioned person's account to the agent mapped to it, exactly. If you type a plain name instead, it must match exactly one agent's full name (or exactly one first name); with more than one match QuantumOps asks you to mention the person.
Use the classic commands in Teams
In Teams you mention the bot, then type the command. In a one-to-one chat with the bot you can type the command on its own. An answer that is only about you (the command list, your own status confirmation, an error) is sent to you alone, as a message only you can see, even in a channel. If Teams will not send it privately, the bot says so and asks you to send the command in a one-to-one chat. Answers meant for the team, such as @qops status and an sdm change, are posted for everyone in the conversation.
Turning on Qubit in Teams changes two of these. Once an administrator turns it on, status and help show Qubit's own answers (use morningsummary for the team status). The other commands keep working, but only as a whole message: lunch, lunch schedule 1pm, lunch slots, lunch skip <reason>, brb <reason> <return time>, online, offline, back, morningsummary, qnotice ... and sdm .... A sentence that merely starts with one of those words, such as "lunch options near the office?", goes to Qubit as a question. leave is not claimed while Qubit is on; use brb. See Channel Assistant settings.
Use the ! commands in a Slack channel
Some workspaces can also type commands as an ordinary message, with an exclamation mark instead of a slash. These work only where the Slack app still sends channel messages to the older events address that QuantumOps used before Qubit. If an administrator has pointed the app at the Qubit address, they do nothing, and the slash commands are the way to go.
The bot posts the answer in the channel where you typed the command, so the bot has to be a member of that channel. If it cannot post there, or your Slack app has no bot token, the answer goes to the incoming webhook set on the Messaging tab, which may post to a different channel. With neither, nothing is posted. QuantumOps accepts these messages only when they carry a valid Slack signature for the signing secret on the Messaging tab and come from your own Slack app and workspace. !help lists more commands than the table, and they all work: !summary, !clientsummary, !monitor, !unmonitor and !research. !research, !summary (and !summary -nopending) and !clientsummary need a linked chat account with a ticket-working role, as /research, /summary and /clientsummary do; anyone else gets a private message and nothing runs. !monitor and !unmonitor change a client's high-risk flag, so they need a linked chat account with the Administrator, Service Desk Manager, Dispatcher or Customer Success role, as /monitor and /unmonitor do; anyone else gets a private message and the list does not change. The summary, client and research commands are explained with their slash forms in Summary, client and Q-Notice commands.
What these commands record on your timeclock
Starting and ending lunch or leave with these commands also writes punches to your timeclock, with no extra step:
/lunchrecords a Lunch Start punch and/brbrecords a Break Start punch./backor/onlineright afterwards records the matching Lunch End or Break End punch. If your last punch was not a lunch or break start, nothing is recorded./offlinerecords no punch.- The punch shows in Timeclock reports and exports with the device Slack or Teams, and a note such as "Created via Slack command". A change made with
/sdmin Slack shows the device Slack/Override.
These commands never clock you in or out. Use Clocking in and out for that. For employees linked to an agent, payroll also reads lunches recorded through these commands, so a lunch is not lost if a punch is missing, and the same lunch is not counted twice.
When a command does not work
Related pages
- Summary, client and Q-Notice commands: the other Slack slash commands, and Q-Notices from chat.
- Q-Director: Slack, Teams and agent mapping: the mapping that lets these commands find you.
- Setting up the Slack app: how an administrator adds each command to the Slack app.
- Qubit in Slack and Teams: the assistant that shares the bot.
Was this helpful?
More in Slack and Teams
Qubit in Slack and TeamsLinking your Slack or Teams accountCommands and private answersApprovals and files in Slack and TeamsStill need help? Ask the team