Acme Docs

Integrate Slack with Acme Platform

Overview

This guide walks you through creating a Slack app, configuring an incoming webhook, and sending notifications from Acme Platform.

Prerequisites

1. Create a Slack App

  1. Visit Slack API Apps and click Create New App.
  2. Choose From scratch, give it a name (e.g., Acme Notifier), and select your workspace.
  3. In the left sidebar, select Incoming Webhooks and toggle Activate Incoming Webhooks.
  4. Click Add New Webhook to Workspace, choose a channel, and click Allow. Copy the generated URL.

2. Configure Acme Platform

In the Acme admin panel, navigate to Settings → Integrations → Slack and paste the webhook URL.

Acme Slack integration screen

3. Sample Code (Node.js)

You can also send messages programmatically using the webhook URL.

const https = require('https');

function sendSlackMessage(webhookUrl, text) {
  const data = JSON.stringify({ text });
  const url = new URL(webhookUrl);
  const options = {
    hostname: url.hostname,
    path: url.pathname + url.search,
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'Content-Length': data.length,
    },
  };
  const req = https.request(options, (res) => {
    if (res.statusCode !== 200) {
      console.error('Slack responded with status', res.statusCode);
    }
  });
  req.on('error', console.error);
  req.write(data);
  req.end();
}

// Usage
sendSlackMessage('https://hooks.slack.com/services/XXXXX/XXXXX/XXXXXXXX', 'Hello from Acme!');

4. Test Your Integration

Enter a test message below and click Send to verify the webhook.

FAQs

Can I send rich formatting?

Yes. Use Slack's Block Kit JSON payloads for richer messages.

Where can I view logs?

Acme Platform logs webhook attempts under Admin → Logs → Integrations.