Skip to main content
Slack and Teams

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, help and status are 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.

CommandWhat it does
/onlineStarts your work day. Your status becomes Online.
/offlineEnds your work day. Your status becomes Offline.
/lunchStarts a lunch of your length now. The length is one hour unless your administrator set another one.
/lunch schedule 1pmRecords when you plan to take lunch. It does not change your status; it shows on the team status and counts toward the away limits. With lunch scheduling on, the time is checked like the picker: a time that is not allowed is refused with the reason and three times that are.
/lunch slotsShows the open lunch times and when your lunch must start by. Only you see it.
/lunch skip <reason>Asks a manager to let you skip lunch today.
/brb doctor appointment 2pmSets you away with a reason and a return time.
/brb schedule meeting 2pm 3pmRecords leave you plan to take, with a reason, a start time and an end time. It does not change your status.
/backReturns you to Online from lunch or leave.

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.
  • /brb needs 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:00 or 1500. 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 /sdm in Slack, or @qops sdm in Teams, skips the check.
  • Teams uses the same rule as Slack. The limits are maximums of people away, and the check covers @qops lunch and @qops brb (or leave). Until October 2026 Teams read the Dispatcher limit as a minimum that had to stay online and did not check brb at 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 (or leave) and back. Each follows its own rules, so /sdm @Jane brb with no reason is refused ("Please specify a reason for your leave.") exactly as /brb is. 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.

CommandWhat it does
@qops helpShows the command list.
@qops online and @qops offlineStart and end your work day.
@qops lunch and @qops lunch schedule 1pmTake lunch now, or record a planned lunch. @qops lunch slots and @qops lunch skip <reason> work as in Slack.
@qops brb <reason> <return time>Sets you away. With no return time it lasts 15 minutes. leave works the same way.
@qops backReturns you to Online.
@qops statusShows the team status, grouped by agent role.
@qops qnoticeLists, creates or expires Q-Notices. Only for people whose linked QuantumOps account has a role that may issue Q-Notices. See Summary, client and Q-Notice commands.
@qops sdmChanges another agent's status, as above.

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.

MessageWhat it does
!online and !offlineStart and end your work day.
!lunch and !lunch schedule 1pmTake lunch now, or record a planned lunch.
!leave doctor appointment 2pmSets you away. Unlike /brb, it needs a return time.
!leave schedule meeting 2pm 3pmRecords planned leave.
!backReturns you to Online.
!morningsummaryShows the team status.
!onsite 123456 4:30pmSets you away until the return time for an onsite visit, with the reason Onsite - Ticket #123456. It needs a ticket number of 6 or 7 digits and a return time, and the away limits apply.
!help and !qopsList the commands.

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:

  • /lunch records a Lunch Start punch and /brb records a Break Start punch.
  • /back or /online right afterwards records the matching Lunch End or Break End punch. If your last punch was not a lunch or break start, nothing is recorded.
  • /offline records 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 /sdm in 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

You seeWhat it means
"Agent not found in the system."Your Slack ID or Teams user is not mapped to an agent. Ask an administrator to map it on the Messaging tab.
"No other dispatcher is working right now to cover you."You are a dispatcher, your administrator keeps at least one dispatcher online, and nobody else is online. Try again when a colleague is in.
"No other dispatcher is available to cover you at 15:00."The same cause for a lunch, leave or onsite you scheduled for that time (the time is yours): you are a dispatcher, your administrator keeps at least one dispatcher online, and no other dispatcher is online. Try again when a colleague is in.
"Cannot take break - would exceed maximum allowed away"Too many people with your agent role are away or have an overlapping break, or your agent role is not set. Try a different time, or ask an administrator to check your agent role.
"Only SDMs and Dispatch can use this command."/sdm needs the SDM Primary, SDM Secondary or Dispatch agent role.
"Your Slack user (…) is not mapped to an agent in QuantumOps, so /sdm is not available to you."Your Slack account is not mapped to an agent, so /sdm cannot find you. Ask an administrator to map it on the Messaging tab.
"Please specify a reason for your leave."/brb (also /sdm @Jane brb and @qops brb) needs a reason, for example /brb doctor appointment.
"Invalid time format. Please use format like '12pm' or '13:00'."The time was not understood. Use a form such as 2pm or 14:00.
"An error occurred while processing your command."Try again. If it keeps happening, tell your administrator.
Slack says the command is not availableAn administrator has not added that command to the Slack app yet.