A slash command is a short command typed into the input box of a chat or conversational tool, beginning with a forward slash (/), that runs a predefined function instead of sending a message. The convention began in the IRC internet chat system and later spread to collaboration and messaging services such as Slack and Discord.
AI chatbots and AI coding tools also use slash commands to call up help, clear a conversation or run frequently used tasks, and many let users define their own commands.