I’m following the instructions here to set up notifcations to slack.
I’ve set up the slack app and that seems to be working as there is a Slack service if I go to Settings → Devices & Services.
The documentation recommends that I set up a script to call with the following template:
alias: "Notify: Slack Notification Template"
sequence:
- service: notify.YOUR_SLACK_TEAM
data:
message: Fallback Text
target: "#test-channel"
title: Reminder
data:
blocks:
- type: section
text:
type: mrkdwn
text: >-
This is a mrkdwn section block *this is bold*, and ~this is
crossed out~, and <https://google.com|this is a link>
mode: single
Step 3 of the instructions says "Change YOUR_SLACK_TEAM
to the team name (*.slack.com)
so I’ve changed “notify.YOUR_SLACK_TEAM” to “notify.mycompany.slack.com” (where mycompany is the name of my slack workspace).
When I do that I’m told:
Message malformed: Service notify.mycompany.slack.com does not match format <domain>.<name> for dictionary value @ data['sequence'][0]['service']
I just tried using notify.mycompany, but that failed with:
Error: Service notify.mycompany not found
I assume the identifier after notify should be the name of the slack service, but I don’t know how to find that out.
Any help would be greatly appreciated.