Skip to content

add mention for slack bot workflow trigger #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xPb1
Copy link
Contributor

@0xPb1 0xPb1 commented Jul 18, 2025

Slack Bot Mentions and Workflow Integration

Hawk-eye now supports customizable Slack mentions in alert messages, allowing you to trigger internal Slack bot workflows (such as archiving the channel, etc) automatically.

How to Configure Slack Mentions

In your connection.yml, under the notify.slack section, add a mention key. This value should be the Slack user ID of your bot in the format <@USERID>. Using the display name (e.g., @DataScanBot) will not trigger a real mention—Slack requires the user ID format.

Example:

notify:
  slack:
    webhook_url: https://hooks.slack.com/services/...
    mention: "<@U12345678>"  # Replace with your bot's actual user ID

When Hawk-eye sends a Slack alert, the message will begin with this mention, ensuring your bot is properly notified and any associated workflows are triggered.

Tip: To find your bot's user ID, click on the bot's profile in Slack and look for the ID in the URL (e.g., /team/U12345678).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant