TaskFlow
DashboardFreewriteWhiteboardsProjectsCRMTasksNotificationsSettingsAgent TowerAPI Docs
OpenClaw Docs
?

User

Member

Caricamento in corso...

Home
Progetti
Task
Notifiche
CRM

    OpenClaw

    Documentation Mirror

    Documentation Overview

    Docs

    Auth credential semantics
    Scheduled tasks
    Hooks
    Automation & tasks
    Standing orders
    Task flow
    Background tasks
    BlueBubbles
    Broadcast groups
    Channel routing
    Discord
    Feishu
    Google Chat
    Group messages
    Groups
    iMessage
    Chat channels
    IRC
    LINE
    Channel location parsing
    Matrix
    Matrix migration
    Matrix push rules for quiet previews
    Mattermost
    Microsoft Teams
    Nextcloud Talk
    Nostr
    Pairing
    QA channel
    QQ bot
    Signal
    Slack
    Synology Chat
    Telegram
    Tlon
    Channel troubleshooting
    Twitch
    WeChat
    WhatsApp
    Yuanbao
    Zalo
    Zalo personal
    CI pipeline
    ACP
    Agent
    Agents
    Approvals
    Backup
    Browser
    Channels
    Clawbot
    `openclaw commitments`
    Completion
    Config
    Configure
    Cron
    Daemon
    Dashboard
    Devices
    Directory
    DNS
    Docs
    Doctor
    Flows (redirect)
    Gateway
    Health
    Hooks
    CLI reference
    Inference CLI
    Logs
    MCP
    Memory
    Message
    Migrate
    Models
    Node
    Nodes
    Onboard
    Pairing
    Plugins
    Proxy
    QR
    Reset
    Sandbox CLI
    Secrets
    Security
    Sessions
    Setup
    Skills
    Status
    System
    `openclaw tasks`
    TUI
    Uninstall
    Update
    Voicecall
    Webhooks
    Wiki
    Active memory
    Agent runtime
    Agent loop
    Agent runtimes
    Agent workspace
    Gateway architecture
    Channel docking
    Inferred commitments
    Compaction
    Context
    Context engine
    Delegate architecture
    Dreaming
    Experimental features
    Features
    Markdown formatting
    Memory overview
    Builtin memory engine
    Honcho memory
    QMD memory engine
    Memory search
    Messages
    Model failover
    Model providers
    Models CLI
    Multi-agent routing
    OAuth
    OpenClaw App SDK
    Presence
    QA overview
    Matrix QA
    Command queue
    Steering queue
    Retry policy
    Session management
    Session pruning
    Session tools
    SOUL.md personality guide
    Streaming and chunking
    System prompt
    Timezones
    TypeBox
    Typing indicators
    Usage tracking
    Date and time
    Node + tsx crash
    Diagnostics flags
    Authentication
    Background exec and process tool
    Bonjour discovery
    Bridge protocol
    CLI backends
    Configuration — agents
    Configuration — channels
    Configuration — tools and custom providers
    Configuration
    Configuration examples
    Configuration reference
    Diagnostics export
    Discovery and transports
    Doctor
    Gateway lock
    Health checks
    Heartbeat
    Gateway runbook
    Local models
    Gateway logging
    Multiple gateways
    Network model
    OpenAI chat completions
    OpenResponses API
    OpenShell
    OpenTelemetry export
    Gateway-owned pairing
    Prometheus metrics
    Gateway protocol
    Remote access
    Remote gateway setup
    Sandbox vs tool policy vs elevated
    Sandboxing
    Secrets management
    Secrets apply plan contract
    Security audit checks
    Security
    Tailscale
    Tools invoke API
    Troubleshooting
    Trusted proxy auth
    Debugging
    Environment variables
    FAQ
    FAQ: first-run setup
    FAQ: models and auth
    GPT-5.5 / Codex agentic parity
    GPT-5.5 / Codex parity maintainer notes
    Help
    Scripts
    Testing
    Testing: live suites
    General troubleshooting
    OpenClaw
    Ansible
    Azure
    Bun (experimental)
    ClawDock
    Release channels
    DigitalOcean
    Docker
    Docker VM runtime
    exe.dev
    Fly.io
    GCP
    Hetzner
    Hostinger
    Install
    Installer internals
    Kubernetes
    macOS VMs
    Migration guide
    Migrating from Claude
    Migrating from Hermes
    Nix
    Node.js
    Northflank
    Oracle Cloud
    Podman
    Railway
    Raspberry Pi
    Render
    Uninstall
    Updating
    Logging
    Network
    Audio and voice notes
    Camera capture
    Image and media support
    Nodes
    Location command
    Media understanding
    Talk mode
    Node troubleshooting
    Voice wake
    Pi integration architecture
    Pi development workflow
    Android app
    Platforms
    iOS app
    Linux app
    Gateway on macOS
    Canvas
    Gateway lifecycle
    macOS dev setup
    Health checks (macOS)
    Menu bar icon
    macOS logging
    Menu bar
    Peekaboo bridge
    macOS permissions
    Remote control
    macOS signing
    Skills (macOS)
    Voice overlay
    Voice wake (macOS)
    WebChat (macOS)
    macOS IPC
    macOS app
    Windows
    Plugin internals
    Plugin architecture internals
    Building plugins
    Plugin bundles
    Codex Computer Use
    Codex harness
    Community plugins
    Plugin compatibility
    Plugin dependency resolution
    Google Meet plugin
    Plugin hooks
    Plugin manifest
    Memory LanceDB
    Memory wiki
    Message presentation
    Agent harness plugins
    Building channel plugins
    Channel turn kernel
    Plugin entry points
    Plugin SDK migration
    Plugin SDK overview
    Building provider plugins
    Plugin runtime helpers
    Plugin setup and config
    Plugin SDK subpaths
    Plugin testing
    Skill workshop plugin
    Voice call plugin
    Webhooks plugin
    Zalo personal plugin
    OpenProse
    Alibaba Model Studio
    Anthropic
    Arcee AI
    Azure Speech
    Amazon Bedrock
    Amazon Bedrock Mantle
    Chutes
    Claude Max API proxy
    Cloudflare AI gateway
    ComfyUI
    Deepgram
    Deepinfra
    DeepSeek
    ElevenLabs
    Fal
    Fireworks
    GitHub Copilot
    GLM (Zhipu)
    Google (Gemini)
    Gradium
    Groq
    Hugging Face (inference)
    Provider directory
    Inferrs
    Inworld
    Kilocode
    LiteLLM
    LM Studio
    MiniMax
    Mistral
    Model provider quickstart
    Moonshot AI
    NVIDIA
    Ollama
    OpenAI
    OpenCode
    OpenCode Go
    OpenRouter
    Perplexity
    Qianfan
    Qwen
    Runway
    SGLang
    StepFun
    Synthetic
    Tencent Cloud (TokenHub)
    Together AI
    Venice AI
    Vercel AI gateway
    vLLM
    Volcengine (Doubao)
    Vydra
    xAI
    Xiaomi MiMo
    Z.AI
    Default AGENTS.md
    Release policy
    API usage and costs
    Credits
    Device model database
    Full release validation
    Memory configuration reference
    OpenClaw App SDK API design
    Prompt caching
    Rich output protocol
    RPC adapters
    SecretRef credential surface
    Session management deep dive
    AGENTS.md template
    BOOT.md template
    BOOTSTRAP.md template
    HEARTBEAT.md template
    IDENTITY template
    SOUL.md template
    TOOLS.md template
    USER template
    Tests
    Token use and costs
    Transcript hygiene
    Onboarding reference
    Contributing to the threat model
    Threat model (MITRE ATLAS)
    Formal verification (security models)
    Network proxy
    Agent bootstrapping
    Docs directory
    Getting started
    Docs hubs
    OpenClaw lore
    Onboarding (macOS app)
    Onboarding overview
    Personal assistant setup
    Setup
    Showcase
    Onboarding (CLI)
    CLI automation
    CLI setup reference
    ACP agents
    ACP agents — setup
    Agent send
    apply_patch tool
    Brave search
    Browser (OpenClaw-managed)
    Browser control API
    Browser troubleshooting
    Browser login
    WSL2 + Windows + remote Chrome CDP troubleshooting
    BTW side questions
    ClawHub
    Code execution
    Creating skills
    Diffs
    DuckDuckGo search
    Elevated mode
    Exa search
    Exec tool
    Exec approvals
    Exec approvals — advanced
    Firecrawl
    Gemini search
    Grok search
    Image generation
    Tools and plugins
    Kimi search
    LLM task
    Lobster
    Tool-loop detection
    Media overview
    MiniMax search
    Multi-agent sandbox and tools
    Music generation
    Ollama web search
    PDF tool
    Perplexity search
    Plugins
    Reactions
    SearXNG search
    Skills
    Skills config
    Slash commands
    Sub-agents
    Tavily
    Thinking levels
    Tokenjuice
    Trajectory bundles
    Text-to-speech
    Video generation
    Web search
    Web fetch
    Linux server
    Control UI
    Dashboard
    Web
    TUI
    WebChat

    OpenAPI Specs

    openapi
    TaskFlow
    docs/openclaw
    Original Docs

    Real-time Synchronized Documentation

    Last sync: 01/05/2026 08:47:42

    Note: This content is mirrored from docs.openclaw.ai and is subject to their terms and conditions.

    OpenClaw Docs

    v2.4.0 Production

    Last synced: Today, 22:00

    Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.

    Use this file to discover all available pages before exploring further.

    Channel presentation refactor plan

    Status

    Implemented for the shared agent, CLI, plugin capability, and outbound delivery surfaces:

    • text
      ReplyPayload.presentation
      carries semantic message UI.
    • text
      ReplyPayload.delivery.pin
      carries sent-message pin requests.
    • Shared message actions expose
      text
      presentation
      ,
      text
      delivery
      , and
      text
      pin
      instead of provider-native
      text
      components
      ,
      text
      blocks
      ,
      text
      buttons
      , or
      text
      card
      .
    • Core renders or auto-degrades presentation through plugin-declared outbound capabilities.
    • Discord, Slack, Telegram, Mattermost, MS Teams, and Feishu renderers consume the generic contract.
    • Discord channel control-plane code no longer imports Carbon-backed UI containers.

    Canonical docs now live in Message Presentation. Keep this plan as historical implementation context; update the canonical guide for contract, renderer, or fallback behavior changes.

    Problem

    Channel UI is currently split across several incompatible surfaces:

    • Core owns a Discord-shaped cross-context renderer hook through
      text
      buildCrossContextComponents
      .
    • Discord
      text
      channel.ts
      can import native Carbon UI through
      text
      DiscordUiContainer
      , which pulls runtime UI dependencies into the channel plugin control plane.
    • The agent and CLI expose native payload escape hatches such as Discord
      text
      components
      , Slack
      text
      blocks
      , Telegram or Mattermost
      text
      buttons
      , and Teams or Feishu
      text
      card
      .
    • text
      ReplyPayload.channelData
      carries both transport hints and native UI envelopes.
    • The generic
      text
      interactive
      model exists, but it is narrower than the richer layouts already used by Discord, Slack, Teams, Feishu, LINE, Telegram, and Mattermost.

    This makes core aware of native UI shapes, weakens plugin runtime laziness, and gives agents too many provider-specific ways to express the same message intent.

    Goals

    • Core decides the best semantic presentation for a message from declared capabilities.
    • Extensions declare capabilities and render semantic presentation into native transport payloads.
    • Web Control UI remains separate from chat native UI.
    • Native channel payloads are not exposed through the shared agent or CLI message surface.
    • Unsupported presentation features auto-degrade to the best text representation.
    • Delivery behavior such as pinning a sent message is generic delivery metadata, not presentation.

    Non goals

    • No backwards compatibility shim for
      text
      buildCrossContextComponents
      .
    • No public native escape hatches for
      text
      components
      ,
      text
      blocks
      ,
      text
      buttons
      , or
      text
      card
      .
    • No core imports of channel-native UI libraries.
    • No provider-specific SDK seams for bundled channels.

    Target model

    Add a core-owned

    text
    presentation
    field to
    text
    ReplyPayload
    .

    ts
    type MessagePresentationTone = "neutral" | "info" | "success" | "warning" | "danger"; type MessagePresentation = { tone?: MessagePresentationTone; title?: string; blocks: MessagePresentationBlock[]; }; type MessagePresentationBlock = | { type: "text"; text: string } | { type: "context"; text: string } | { type: "divider" } | { type: "buttons"; buttons: MessagePresentationButton[] } | { type: "select"; placeholder?: string; options: MessagePresentationOption[] }; type MessagePresentationButton = { label: string; value?: string; url?: string; style?: "primary" | "secondary" | "success" | "danger"; }; type MessagePresentationOption = { label: string; value: string; };

    text
    interactive
    becomes a subset of
    text
    presentation
    during migration:

    • text
      interactive
      text block maps to
      text
      presentation.blocks[].type = "text"
      .
    • text
      interactive
      buttons block maps to
      text
      presentation.blocks[].type = "buttons"
      .
    • text
      interactive
      select block maps to
      text
      presentation.blocks[].type = "select"
      .

    The external agent and CLI schemas now use

    text
    presentation
    ;
    text
    interactive
    remains an internal legacy parser/rendering helper for existing reply producers.

    Delivery metadata

    Add a core-owned

    text
    delivery
    field for send behavior that is not UI.

    ts
    type ReplyPayloadDelivery = { pin?: | boolean | { enabled: boolean; notify?: boolean; required?: boolean; }; };

    Semantics:

    • text
      delivery.pin = true
      means pin the first successfully delivered message.
    • text
      notify
      defaults to
      text
      false
      .
    • text
      required
      defaults to
      text
      false
      ; unsupported channels or failed pinning auto-degrade by continuing delivery.
    • Manual
      text
      pin
      ,
      text
      unpin
      , and
      text
      list-pins
      message actions remain for existing messages.

    Current Telegram ACP topic binding should move from

    text
    channelData.telegram.pin = true
    to
    text
    delivery.pin = true
    .

    Runtime capability contract

    Add presentation and delivery render hooks to the runtime outbound adapter, not the control-plane channel plugin.

    ts
    type ChannelPresentationCapabilities = { supported: boolean; buttons?: boolean; selects?: boolean; context?: boolean; divider?: boolean; tones?: MessagePresentationTone[]; }; type ChannelDeliveryCapabilities = { pinSentMessage?: boolean; }; type ChannelOutboundAdapter = { presentationCapabilities?: ChannelPresentationCapabilities; renderPresentation?: (params: { payload: ReplyPayload; presentation: MessagePresentation; ctx: ChannelOutboundSendContext; }) => ReplyPayload | null; deliveryCapabilities?: ChannelDeliveryCapabilities; pinDeliveredMessage?: (params: { cfg: OpenClawConfig; accountId?: string | null; to: string; threadId?: string | number | null; messageId: string; notify: boolean; }) => Promise<void>; };

    Core behavior:

    • Resolve target channel and runtime adapter.
    • Ask for presentation capabilities.
    • Degrade unsupported blocks before rendering.
    • Call
      text
      renderPresentation
      .
    • If no renderer exists, convert presentation to text fallback.
    • After successful send, call
      text
      pinDeliveredMessage
      when
      text
      delivery.pin
      is requested and supported.

    Channel mapping

    Discord:

    • Render
      text
      presentation
      to components v2 and Carbon containers in runtime-only modules.
    • Keep accent color helpers in light modules.
    • Remove
      text
      DiscordUiContainer
      imports from channel plugin control-plane code.

    Slack:

    • Render
      text
      presentation
      to Block Kit.
    • Remove agent and CLI
      text
      blocks
      input.

    Telegram:

    • Render text, context, and dividers as text.
    • Render actions and select as inline keyboards when configured and allowed for the target surface.
    • Use text fallback when inline buttons are disabled.
    • Move ACP topic pinning to
      text
      delivery.pin
      .

    Mattermost:

    • Render actions as interactive buttons where configured.
    • Render other blocks as text fallback.

    MS Teams:

    • Render
      text
      presentation
      to Adaptive Cards.
    • Keep manual pin/unpin/list-pins actions.
    • Optionally implement
      text
      pinDeliveredMessage
      if Graph support is reliable for the target conversation.

    Feishu:

    • Render
      text
      presentation
      to interactive cards.
    • Keep manual pin/unpin/list-pins actions.
    • Optionally implement
      text
      pinDeliveredMessage
      for sent-message pinning if API behavior is reliable.

    LINE:

    • Render
      text
      presentation
      to Flex or template messages where possible.
    • Fall back to text for unsupported blocks.
    • Remove LINE UI payloads from
      text
      channelData
      .

    Plain or limited channels:

    • Convert presentation to text with conservative formatting.

    Refactor steps

    1. Reapply the Discord release fix that splits
      text
      ui-colors.ts
      from Carbon-backed UI and removes
      text
      DiscordUiContainer
      from
      text
      extensions/discord/src/channel.ts
      .
    2. Add
      text
      presentation
      and
      text
      delivery
      to
      text
      ReplyPayload
      , outbound payload normalization, delivery summaries, and hook payloads.
    3. Add
      text
      MessagePresentation
      schema and parser helpers in a narrow SDK/runtime subpath.
    4. Replace message capabilities
      text
      buttons
      ,
      text
      cards
      ,
      text
      components
      , and
      text
      blocks
      with semantic presentation capabilities.
    5. Add runtime outbound adapter hooks for presentation render and delivery pinning.
    6. Replace cross-context component construction with
      text
      buildCrossContextPresentation
      .
    7. Delete
      text
      src/infra/outbound/channel-adapters.ts
      and remove
      text
      buildCrossContextComponents
      from channel plugin types.
    8. Change
      text
      maybeApplyCrossContextMarker
      to attach
      text
      presentation
      instead of native params.
    9. Update plugin-dispatch send paths to consume only semantic presentation and delivery metadata.
    10. Remove agent and CLI native payload params:
      text
      components
      ,
      text
      blocks
      ,
      text
      buttons
      , and
      text
      card
      .
    11. Remove SDK helpers that create native message-tool schemas, replacing them with presentation schema helpers.
    12. Remove UI/native envelopes from
      text
      channelData
      ; keep only transport metadata until each remaining field is reviewed.
    13. Migrate Discord, Slack, Telegram, Mattermost, MS Teams, Feishu, and LINE renderers.
    14. Update docs for message CLI, channel pages, plugin SDK, and capability cookbook.
    15. Run import fanout profiling for Discord and affected channel entrypoints.

    Steps 1-11 and 13-14 are implemented in this refactor for the shared agent, CLI, plugin capability, and outbound adapter contracts. Step 12 remains a deeper internal cleanup pass for provider-private

    text
    channelData
    transport envelopes. Step 15 remains follow-up validation if we want quantified import-fanout numbers beyond the type/test gate.

    Tests

    Add or update:

    • Presentation normalization tests.
    • Presentation auto-degrade tests for unsupported blocks.
    • Cross-context marker tests for plugin dispatch and core delivery paths.
    • Channel render matrix tests for Discord, Slack, Telegram, Mattermost, MS Teams, Feishu, LINE, and text fallback.
    • Message tool schema tests proving native fields are gone.
    • CLI tests proving native flags are gone.
    • Discord entrypoint import-laziness regression covering Carbon.
    • Delivery pin tests covering Telegram and generic fallback.

    Open questions

    • Should
      text
      delivery.pin
      be implemented for Discord, Slack, MS Teams, and Feishu in the first pass, or only Telegram first?
    • Should
      text
      delivery
      eventually absorb existing fields such as
      text
      replyToId
      ,
      text
      replyToCurrent
      ,
      text
      silent
      , and
      text
      audioAsVoice
      , or stay focused on post-send behaviors?
    • Should presentation support images or file references directly, or should media remain separate from UI layout for now?

    Related

    • Channels overview
    • Message presentation

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine