🦞
Resources

openclaw_channel_slack

Manages the OpenClaw Slack channel.

Manages the Slack channel configuration. Requires both a bot token (xoxb-...) and an app token (xapp-...) for Socket Mode.

Example Usage

resource "openclaw_channel_slack" "main" {
  enabled    = true
  bot_token  = var.slack_bot_token
  app_token  = var.slack_app_token
  dm_policy  = "allowlist"
  allow_from = ["U0123456789"]

  history_limit          = 50
  text_chunk_limit       = 4000
  reaction_notifications = "own"
}

Argument Reference

ArgumentTypeRequiredDefaultDescription
enabledBoolNo--Enable or disable the Slack channel.
bot_tokenStringNo--Slack bot token (xoxb-...). Sensitive. Falls back to SLACK_BOT_TOKEN.
app_tokenStringNo--Slack app token (xapp-...). Sensitive. Falls back to SLACK_APP_TOKEN.
dm_policyStringNo"pairing"DM policy: pairing, allowlist, open, disabled.
allow_fromList(String)No--Allowed Slack user IDs.
allow_botsBoolNofalseAllow messages from other bots.
history_limitInt64No50Max chat history messages.
text_chunk_limitInt64No4000Max characters per chunk.
chunk_modeStringNo"length"Chunk mode: length or newline.
media_max_mbInt64No20Max inbound media size in MB.
reply_to_modeStringNo"off"Reply-to behavior: off, first, all.
reaction_notificationsStringNo"own"Reaction notifications: off, own, all, allowlist.

Attribute Reference

AttributeTypeDescription
idStringAlways "channel_slack".

Import

terraform import openclaw_channel_slack.main channel_slack

On this page