🦞
Resources

openclaw_channel_whatsapp

Manages the OpenClaw WhatsApp channel.

Manages the WhatsApp channel configuration including DM policy, allowlists, message chunking, and group settings.

This is a singleton resource -- OpenClaw supports one WhatsApp account per gateway.

Example Usage

resource "openclaw_channel_whatsapp" "main" {
  dm_policy          = "pairing"
  allow_from         = ["+15555550123", "+15555550456"]
  text_chunk_limit   = 4000
  send_read_receipts = true
  group_policy       = "allowlist"
}

Argument Reference

ArgumentTypeRequiredDefaultDescription
dm_policyStringNo"pairing"DM policy: pairing, allowlist, open, disabled.
allow_fromList(String)No--Phone numbers allowed to message (e.g. +15555550123).
text_chunk_limitInt64No4000Max characters per outbound message chunk.
chunk_modeStringNo"length"Chunk splitting: length or newline.
media_max_mbInt64No50Max inbound media size in MB.
send_read_receiptsBoolNotrueSend read receipts (blue ticks).
group_policyStringNo"allowlist"Group policy: allowlist, open, disabled.

Attribute Reference

AttributeTypeDescription
idStringAlways "channel_whatsapp".

Import

terraform import openclaw_channel_whatsapp.main channel_whatsapp

On this page