Set up an incoming webhook
Enable incoming webhooks for an app in your Slack workspace and authorize a destination channel. Slack issues a URL for the channel. Store it in the automation or backend that makes the request.
Start with a short alert
Send a text payload from a workflow and include only metadata that belongs in the channel.
JAVASCRIPT
const response = await fetch(process.env.SLACK_WEBHOOK_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text: "New website message in Forms4Web." }),
});
if (!response.ok) throw new Error("Slack delivery failed");Test changes outside the live channel
Use a test channel while developing your formatting. If you add visitor input to Slack formatting blocks, use plain-text fields where possible.