Publish Home Tab

slack.publish_home_view
ActionChat & messagingconnection required

Calls the Slack Web API with the connection's bot token.

Replace one user's App Home tab with a Block Kit view.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Slack
Secret shape
the Slack bot token (xoxb-…), or {"token": "xoxb-…"}
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
user_id
The user id (U…) whose App Home tab to publish. Supports {{ }}.
stringYes———
view
The Block Kit view payload as a JSON object, with type, title and blocks.
objectYes—≥ 1 characters—
hash
The hash of the view being replaced, to lose a race rather than clobber it.
stringNo———

Output

One shape.

result

FieldTypeExample
ok
Always true; a failure raises instead.
booleantrue
view_id
Slack's id for the view that was opened or published.
string—
hash
The view's version hash — pass it back to guard an update.
string—
view
The whole view object Slack returned, unmodified.
object—
{
  "hash": "",
  "ok": true,
  "view": {},
  "view_id": ""
}

Notes

  • The bot must be a member of a private channel before it can act there (Slack answers not_in_channel otherwise).
  • Slack rate-limits each Web API method on its own tier; a throttled call fails with the number of seconds to wait and is safe for the node's retry policy to repeat.
  • The view type must be home, and the app must have the App Home tab enabled.

See Publish Home Tab run in a workflow.

In a technical demo we add the Slack connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.