Execute slash command as slack bot September 27, 2022 by Tarik Billa Bots can use the undocumented API method chat.command to invoke slash commands. See here for an unofficial documentation page of this API method. This question was also answered here. More Related Contents: How to send direct messages to a user as app in app channel Slack api conversations.history returns error: not_in_channel How to replace the buttons (attachment) only w/ Slack interactive buttons response Slack incoming webhook: Request header field Content-type is not allowed by Access-Control-Allow-Headers in preflight response Slack dialog doesn’t close after form submission