Send message from Glide to Slack using blocks

Hi everyone! I could really use a hand with this.

I’m trying to send Slack messages from my Glide app and have run into a wall. Here’s the situation:

  1. Setup so far
  • Created a Slack app and enabled an Incoming Webhook for one specific channel.
  • Copied the webhook URL and pasted it into Glide’s Trigger Webhook action.
  1. What already works
  • In Request body I set
    • Title (key) → text
    • Value → “hello, world”
  • Slack receives the plain-text message just fine.
  1. What fails
  • I want to send Block Kit JSON (so the message has sections, fields, etc.).
  • Any time I try to put a key like blocks (or payload) with the JSON as the value, Glide returns:
Trigger webhook: Request failed with status 400
  1. Question
  • Has anyone successfully posted Block Kit messages to Slack using Glide’s Trigger Webhook?
  • Do I need a different body format, a special header, or maybe switch to Slack’s chat.postMessage endpoint instead of the incoming webhook?

Any pointers or examples would be hugely appreciated. Thanks in advance!

I have never succeeded with the native integration. Everytime I need to do a Slack block, I resort to using Make/n8n.

1 Like

Thanks for the reply! I tried using the native integration, but it will not let me insert blocks - maybe I do something wrong with the formatting.

My problem came using the Trigger webhook-functionality in a workflow. I dont understand how to send JSON to Slack. The only thing that I have found that works is to write “Text” in the “Enter title”-field and a plain text message in the other field.

Are you trying to trigger a Slack webhook with this module? Then it’ll parse your blocks JSON and send a message?

I solved it! If you write blocks in the Enter title-field, you can enter a block like this in the Enter value-field:

[
		{
			"type": "section",
			"text": {
				"type": "plain_text",
				"text": "This is a plain text section block.",
				"emoji": true
			}
		}
	]

You should construct a JSON using Glide’s JSON columns and reference it on the right, if I get your idea right.

1 Like