Skip to content
AstrBot
Main Navigation HomeBlogRoadmapHTTP API

English

简体中文

English

简体中文

Toggle dark mode

Intro & DeployMessaging PlatformsAI IntegrationUsageDevelopment
Sidebar Navigation

Introduction

What is AstrBot

Community

FAQ

Deployment

Script Deployment

Desktop Client

One-click Launcher

Docker

Kubernetes

BT Panel

1Panel

Source Deployment

Other Deployments

CasaOS

Compshare GPU

Community-provided Deployment

Support Us

Messaging Platforms

Quick Start

QQ Official Bot

Websockets

Webhook

OneBot v11

WeCom Application

WeCom AI Bot

WeChat Official Account

Personal WeChat

Lark

DingTalk

Telegram

LINE

Slack

Mattermost

Misskey

Discord

KOOK

Satori

Connect Satori

Using server-satori

Community-provided

Matrix

VoceChat

AI Integration

✨ Model Providers

MiraRouter

NewAPI

ShengSuanYun

AIHubMix

PPIO Cloud

SiliconFlow

TokenPony

302.AI

DeepSeek TTS

DeepSeek STT

Ollama

LMStudio

⚙️ Agent Runners

Built-in Agent Runner

Dify

Coze

Alibaba Bailian

DeerFlow

Usage

WebUI

AstrBot CLI

Built-in Commands

Plugins

Plugins

MCP

Skills

AstrBot Built-in AI

Agent Sandbox

SubAgent Orchestration

Proactive Capabilities

Web Search

SerpApi

DeepSeek Search API

Knowledge Base

Context Compression

Custom Rules

Agent Execution Mode

Unified Webhook Mode

Development

Plugin Development

🌠 Getting Started

Minimal Example

Listen to Message Events

Send Messages

Plugin Configuration

Plugin Views

Overview

Standalone plugin page

Interactive message component

Workbench page

Shared Bridge API

Backend Web APIs

Plugin Internationalization

AI

Models

Agents

Tools

Sessions and Conversations

Other APIs

Storage

HTML to Image

Session Control

Publish Plugin

Plugin Market Specification

Versions

2026-11-25

2026-06-27

Platform Adapter Integration

AstrBot HTTP API

API Scope–Endpoint Reference

AstrBot Configuration File

Others

Diagnostics

Self-hosted HTML to Image

Open Source Summer

OSPP 2025

On this page

Plugin views ​

Build HTML interfaces in your plugin and connect them to AstrBot through the Bridge. Choose target in metadata based on where users work with the interface:

InterfacetargetUse casesHow it opens
Standalone plugin pageplugin_pageSettings, dashboards, logsWebUI plugin entry
Interactive message componentchat_messageResult lists, selectors, confirmation formsA command, message handler, or tool returns event.view_result()
Workbench pagechat_workbenchFile previews, notes, session analysisevent.view_result()
Workbench with launcherchat_workbench_with_launcherNotes, session analysisevent.view_result() or the workbench + entry

Register a view ​

Declare views under views in the plugin's metadata.yaml. Names must be unique within the plugin. Entry files follow views/<name>/index.html; no entry field is needed. Python creates instances, handles actions, and provides Web APIs.

yaml
views:
  - name: context_usage
    target: chat_workbench_with_launcher
    title: Context usage
    description: Inspect token usage for the current session

The default target is plugin_page, preserving existing page declarations. Set chat_message for message components, chat_workbench for plugin-opened workbench views, or chat_workbench_with_launcher to also offer the view in the + launcher. ChatUI targets stay out of the standalone page list. Undeclared directories remain discoverable as standalone pages.

title and description provide default labels; i18n overrides each field as described in View labels. version defaults to 1. actions lists permitted callbacks for message-created instances and defaults to an empty list. Standalone pages cannot declare actions.

For a few configuration fields, use plugin configuration.

Choose an interaction API ​

  • Message components and message-created workbench pages: call @filter.ui_action through bridge.view.action(). Replace view data with event.view_result(data=...).
  • Standalone pages and resident workbench pages: call the plugin's backend Web APIs through bridge.apiGet(), apiPost(), and related methods.

All interfaces share initialization, themes, and localization through the Bridge API. See the capability table for the operations available in each host.

Previous documentation entries
Previous entryCurrent entry
Plugin Views (plugin-pages.md)Standalone plugin page, Shared Bridge API, and Backend Web APIs in this section
Interactive ChatUI cards (chatui-views.md)Interactive message component and Workbench page in this section

Previous links redirect to the corresponding page.

Edit this page on GitHub

Last updated:

Pager
PreviousPlugin Configuration
NextStandalone plugin page

Deployed on Rainyun Logo