> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
> Use this file to discover all available pages before exploring further.

# LangBot Plugins

LangBot is composed of various internal components such as Large Language Model tools, commands, messaging platform adapters, LLM requesters, and more. To meet extensibility and flexibility requirements, we have implemented a production-grade plugin system.

Each plugin runs in an independent process, managed uniformly by the Plugin Runtime.

<img width="600" src="https://mintcdn.com/langbot/3wTxBGgCdTnu0gxf/images/zh/plugin/dev/plugin_system_arch.png?fit=max&auto=format&n=3wTxBGgCdTnu0gxf&q=85&s=eeb9023a2ea330d608b638676b4379af" data-path="images/zh/plugin/dev/plugin_system_arch.png" />

## Plugin Structure

Plugins can provide the following components based on their specific functionality:

* Event Handlers: Listen to events during pipeline execution and modify context or pipelines.
* Commands: Triggered by user command messages starting with `!` (or other configured prefixes).
* Tools: Called by LLMs during execution of LangBot's built-in Local Agent.
* Knowledge Engines: Manage document indexing and retrieval for knowledge bases.

More component types will be supported for plugin implementation in the future.

## Installing Plugins

Currently supports uploading plugin packages and installing plugins from the plugin marketplace.
In LangBot's plugin management page, click the top-right corner to choose the installation method.

<img width="600" src="https://mintcdn.com/langbot/3wTxBGgCdTnu0gxf/images/zh/plugin/install_method.png?fit=max&auto=format&n=3wTxBGgCdTnu0gxf&q=85&s=6f9621bc296b374e54c667666a8dae5e" data-path="images/zh/plugin/install_method.png" />

Click `Upload Local`, select `.lbpkg` files shared by others or downloaded from the Marketplace to install plugins.

Or click the Plugin Marketplace tab, select a plugin, and click install.

<img width="600" src="https://mintcdn.com/langbot/3wTxBGgCdTnu0gxf/images/zh/plugin/install_from_marketplace.png?fit=max&auto=format&n=3wTxBGgCdTnu0gxf&q=85&s=b2572c71f7b71efeb040226c6e9edc85" data-path="images/zh/plugin/install_from_marketplace.png" />

After installing plugins, you need to select the plugin in your pipeline configuration page.

<img width="600" src="https://mintcdn.com/langbot/3wTxBGgCdTnu0gxf/images/zh/plugin/pipeline_extensions.png?fit=max&auto=format&n=3wTxBGgCdTnu0gxf&q=85&s=02f087906326eb7bb980dde7ee5cf589" data-path="images/zh/plugin/pipeline_extensions.png" />

## Plugin Management

### Plugin Configuration

Some plugins may require you to fill in specific configuration items (please refer to the plugin README instructions). Click on the plugin card to enter the plugin details page and obtain and input the required information as prompted.

<img width="600" src="https://mintcdn.com/langbot/3wTxBGgCdTnu0gxf/images/zh/plugin/plugin_config.png?fit=max&auto=format&n=3wTxBGgCdTnu0gxf&q=85&s=0c7808add9858c1a15c5c6ab44a4b812" data-path="images/zh/plugin/plugin_config.png" />

### Updating Plugins

Only plugins installed from the plugin marketplace can be updated.

<img width="600" src="https://mintcdn.com/langbot/3wTxBGgCdTnu0gxf/images/zh/plugin/update_plugin.png?fit=max&auto=format&n=3wTxBGgCdTnu0gxf&q=85&s=de79aaabf2d9c5a7c91fe7d3e971c963" data-path="images/zh/plugin/update_plugin.png" />

## Plugin Marketplace

The plugin marketplace can be accessed from LangBot's internal `Plugin Management` page, or you can visit the standalone site [LangBot Plugin Marketplace](https://space.langbot.app/market).
