I know following about slack slash commands and out going webhooks
1) Slash Commands: - When user types slash command, it Will trigger external URL (URL of external web service), with all required data and message - Web service would process that as required, and would respond with HTTP Response.
2) Outgoing webhook: - When user sends message with triggering words(optional) in specified channel, it will trigger external URL (URL of external web service), with all required data and message - Web service would process that as required, and would respond with HTTP Response
Purpose of both these functionalities is same. Only difference I can see is - with slash command, there is no way to define triggering criteria. If this command is used, external URL is called irrespective of channel and words in the message. While with outgoing webhook, we can apply filters(matching criteria) to call external URL conditionally, whenever criteria matches.
Is there any other difference? When should we use slash command over outgoing webhook and vice versa?
I want to listen to a particular channel, and sends its data to google sheet when they type "OOO, away, late". I can create 3 slash commands or can create a outgoing webhook for these three triggering words for this channel. What is the best approach to accomplish this? I think I should go with out going webhook, considering its capability of matching criteria.