|
| 1 | +--- |
| 2 | +slug: /slack-notifications |
| 3 | +title: Slack notifications |
| 4 | +--- |
| 5 | + |
| 6 | +import slackNotification from "./slack-notifications/slack-notification-example.png"; |
| 7 | +import automationConditions from "./slack-notifications/automation-conditions.png"; |
| 8 | +import slackChannelId from "./slack-notifications/slack-channel-id.png"; |
| 9 | + |
| 10 | +Argos can send Slack notifications when a build is completed or reviewed to keep your team informed of changes. |
| 11 | + |
| 12 | +:::note |
| 13 | +Slack notifications are available on Pro and Enterprise plans |
| 14 | +::: |
| 15 | + |
| 16 | +<img |
| 17 | + src={slackNotification} |
| 18 | + alt="Slack notification sent by Argos" |
| 19 | + className="rounded" |
| 20 | + style={{ marginBottom: 20, width: 600 }} |
| 21 | +/> |
| 22 | +_Example of a Slack notification sent by Argos_ |
| 23 | + |
| 24 | +## Set up Slack notifications |
| 25 | + |
| 26 | +Set up a Slack notification rule using Argos automations. |
| 27 | + |
| 28 | +1. Go to the **Automations** tab in your Argos project and click on **New Automation**. |
| 29 | +2. Name your automation, e.g., "Notify Slack on build completion". |
| 30 | +3. Under **WHEN**, select one or several events that will trigger the notification. |
| 31 | +4. (Optional) Under **IF**, add conditions such as "Build type is check". |
| 32 | + |
| 33 | + <img |
| 34 | + src={automationConditions} |
| 35 | + alt="Automation conditions example" |
| 36 | + className="rounded" |
| 37 | + style={{ marginBottom: 30, marginTop: 0, paddingTop: 0, width: 600 }} |
| 38 | + /> |
| 39 | + |
| 40 | +5. Under **THEN**, choose the action **Send notification to Slack**. |
| 41 | + |
| 42 | + If this is your first time using Slack with Argos, click **Connect to Slack** and follow the connection flow. |
| 43 | + |
| 44 | +6. Select the Slack channel and optionally provide the channel ID. |
| 45 | + |
| 46 | + <img |
| 47 | + src={slackChannelId} |
| 48 | + alt="Locate Slack channel ID" |
| 49 | + className="rounded" |
| 50 | + style={{ marginBottom: 30, marginTop: 0, paddingTop: 0, width: 600 }} |
| 51 | + /> |
| 52 | + _Finding the ID of a Slack Channel_ |
| 53 | + |
| 54 | +7. Click **Send test notification** to verify the connection. A test message will be sent to the selected channel. |
| 55 | +8. Click **Create Rule** to activate it. |
| 56 | + |
| 57 | +## Common use cases |
| 58 | + |
| 59 | +- Notify #qa when a build is created and should be reviewed |
| 60 | +- Notify #frontend-team when a build changes are requested |
| 61 | +- Alert #product when auto-approved builds are created |
| 62 | +- Post only failed builds to #build-failures |
| 63 | + |
| 64 | +## Troubleshooting and Tips |
| 65 | + |
| 66 | +- Make sure the Argos app is authorized in your Slack workspace. |
| 67 | +- For private channels, manually invite the bot with `/invite @Argos`. |
| 68 | +- Only Argos team admins can configure Slack integrations. |
| 69 | +- You can test notifications anytime using **Send test notification**. |
| 70 | + |
| 71 | +Need help setting up Slack integration? Reach out via [Discord ](https://argos-ci.com/discord) or [contact support ](mailto:[email protected]). |
0 commit comments