Problems sending notifications with slack integration

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"
  - service: notify.YOUR_SLACK_TEAM
      message: Fallback Text
      target: "#test-channel"
      title: Reminder
          - type: section
              type: mrkdwn
              text: >-
                This is a mrkdwn section block *this is bold*, and ~this is
                crossed out~, and <|this is a link>
mode: single

Step 3 of the instructions says "Change YOUR_SLACK_TEAM to the team name (* so I’ve changed “notify.YOUR_SLACK_TEAM” to “” (where mycompany is the name of my slack workspace).

When I do that I’m told:

Message malformed: Service 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.

Worked it out myself. The service name for the Slack integration (i.e. the title at the top of the page in Settings → Devices and Services → Slack ) was “My Company” and the service name was therefore my_company.

Hope that helps someone else.