Notify Slack when an experiment, a job, or a build is finished so that your team stays in sync.

Create a new incoming webhook in Slack

First, you’ll need to set up a new incoming webhook in your team’s Slack configuration. An incoming webhook is a method for Slack to receive incoming messages to be posted to your Slack team from external services.

slack-integration1

Customise webhook & copy URL

Once the webhook is created, you can optionally customize the channel, name, and icon which the webhook uses whenever it posts a new message. Either way, however, you’ll need to copy the Webhook URL at the very top.

slack-integration2

Configure your webhook

Create a secret or a config map with your Slack webhook:

kubectl create secret generic  notification-secret --from-file=POLYAXON_INTEGRATIONS_WEBHOOKS_PAGE_DUTY=notification-secret.json -n polyaxon

The content of notification-secret.json should contain all the webhooks that you want to notify at the same time:

[
  {
    "url": "https://hooks.slack.com/services/T6QR3FYN7/BC34VRP/7KRWJAtQWOxjxYgee"
  }
]

Add your Slack connection to Polyaxon notification connections

Now you can add your Slack’s webhook to the integrations’ section:

connections:
  - name: slack-connection1
    kind: slack
    secret:
      name: notification-secret

More automation with Zapier

You can also go further and connect other popular Polyaxon integrations to Slack using Zapier.