Currently when we use a slack command, the action is to reply to user as a Direct Message. There is a small problem with this because the user may not execute the command directly at the bot channel. The user may execute it somewhere else in a private or public channel. But the reply was from the workbot's Direct Message.
Slack Support suggests we use the following method:
It sounds like you want to send an ephemeral message. This can be done via the chat.postEphemeral method here: https://api.slack.com/methods/chat.postEphemeral.
When you get the payload from your slash command, pick out the user_id and channel_id and make a call to the chat.postEphemeral method to send this "Only visible to you" kind of message
If workato can make this a user-friendly UI instead of custom action, that would be super helpful :-)
Send us a ticket, we will try our best to assist you with your problem