This was asked quite some time ago and I think the answers are not accurate anymore. MailClark will put the plug end of 2022 and not sure if the php example is still working.
But I ended checking what's the latest desire for slack how to tackle such a problem and I guess it is a Slack Bolt App: https://api.slack.com/bolt
I can recommend it.
It is surprisingly easy to do a simple text matching that can e.g. reverse your text. So "hello" becomes ""olleh".
E.g. here in Javascript.
// Reverse all messages the app can hear
app.message(async ({ message, say }) => {
// Filter out message events with subtypes (see https://api.slack.com/events/message)
if (message.subtype === undefined || message.subtype === 'bot_message') {
const reversedText = [...message.text].reverse().join("");
await say(reversedText);
}
});
I guess from there it is easy to instead send the text as email (check sendgrid, mailgun, amazon SES) or start a Falcon 9 Rocket.