How to Create a Slack Webhook and Post from Apps Script @SheetsNinja
How to Create a Slack Webhook and Post from Apps Script  @SheetsNinja
Uploaded November 2025 | Updated September 2026, 1 week ago
In today's video, I'll show you how to create a webhook in Slack so you can post messages to Slack from Google Apps Script.

***SLACK LINKS***
Create a new app: api.slack.com/apps
Message Formatting: https://docs.slack.dev/messaging/formatting-message-text
Block Kit Builder: app.slack.com/block-kit-builder

***** Sample Google Apps Script to Post Message to Slack *****

function sendMessageToSlack() {
let webhookURL = 'WEBHOOK_URL';
let name = 'Sheets Ninja';
let body = {
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": `Hey, Slack!\n\nThis is a test message.\n\nThanks ${name} for your contributions!`
}
}
]
}
let params = {
'method': 'POST',
'content-type': 'application/json',
'payload': JSON.stringify(body)
}
UrlFetchApp.fetch(webhookURL, params);
}
How to Create a Slack Webhook and Post from Apps ScriptAdd People Smart Chips to Google Sheets▼ Easily Add DROPDOWNS from a Range (Google Sheets)Restrict Number of Google Form Responses📧 Send Email Reminder on or Before Due Date (Google Sheets)✂️ Split a List into Equal Columns – Google Sheets Formula TrickShrinking Dropdowns: Automatically Remove Selected Items (Google Sheets)🔡 Start Playing This Free Word Game in Google Sheets!Share Google Sheet from Mobile App #googlesheets🗓️ Filter Data by Month (Google Sheets)Stop Manual Date Entry❗Easily Make Questions Required on Google Forms
Sheets Ninja |

How to Create a Slack Webhook and Post from Apps Script

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER