Sending notifications

In this section, we will set up sending webhooks. These webhooks are useful for sending messages to a third-party application after any event on W4 Builds. In this example, we will send a message to a Slack channel to notify users that a new Godot version has been compiled and is ready for download.

Webhook payload

Slack only accepts a specific type of JSON, so we need to create a custom payload for integration. This payload consists of a single key called “text.”

  1. Click “Payload” under the Integration option in the left-side menu.

  2. Click “+ New Payload Template.”

  3. Type a custom name (e.g., “Slack Message”).

  4. Click “Save.”

    send payload

Slack configuration

To accept Slack webhooks, please visit this page and follow the instructions provided.

Receive webhook in slack.

Configuration

  1. Click “Send” under the Webhooks option in the left-side menu.

  2. Click “+ New Webhook.”

  3. From the Slack configuration page, copy and paste the receiving URL. It should look something like this:

    https://hooks.slack.com/services/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

  4. Select the previously created webhook template.

  5. Click “Save.”

    send form

Let’s add some rules!

  1. Click the new webhook in the table.

  2. In the first dropdown, select “job_name.”

  3. In the Operator dropdown, select “Equal to (=).”

  4. Select “Godot.”

  5. Click “Add.”

Next rule:

  1. In the first dropdown, select “build_status.”

  2. In the Operator dropdown, select “Equal to (=).”

  3. Select “Completed.”

  4. Click “Add.”

    send rules