Member-only story
How to mention a Slack @username in the Webhook message?
Navigate the nuances of the Slack Webhook to notify a user directly by mentioning their username in your programmatically generated messages.
Welcome to our tutorial on how to mention a Slack @username in the Webhook messages. This guide is designed as a step-by-step walkthrough, to help you grasp the process of using the Slack Webhook to programmatically generate messages that notify a specific user. Whether you’re new to Slack or an experienced user looking for further insights, this guide is designed to be straight to the point and easily comprehensible.
Table of Contents
· Background and Solution
· Supported API end point to fetch userid
· Generate Slack Authorization Token
∘ Step 1: Create Slack developer App
∘ Step 2: Generate OAuth Token
· Get: UserID By Email Utility
· Airflow Specific, Get: UserID By Email Utility
· Mention a Slack @userid in the Webhook message
· Conclusion