AI Employee Plugin Development
In NocoBase, plugins can make their business capabilities available to AI employees. Three extension points cover different layers:
- Tool — Performs specific operations such as querying data, calling APIs, and modifying records
- Skill — Tells the model when to use Tools and which steps to follow to complete a task
- Built-in AI Employee — Assembles a role profile, system prompt, Skills, and Tools into an employee that is ready to use
Usually, you do not need to call registration APIs manually. Put files in the plugin's conventional src/ai directories, and NocoBase automatically scans and registers them when the plugin loads. You only need to register the corresponding frontend component or execution logic in src/client-v2/plugin.tsx when a Tool requires a custom card, modal, or browser-side execution.
Before you begin, make sure the application has installed and enabled @nocobase/plugin-ai. Plugin code can use the types and definition functions provided by @nocobase/ai and @nocobase/actions.
- Write your first plugin — If you are new to plugin development, start with the plugin directory, build, and activation workflow
- AI employees — Learn how to configure and use AI employees first
Quick index
Decide which layer to extend first
Tools, Skills, and built-in AI employees are not three separate features. They form layers that build on one another from the bottom up. Not every plugin needs to implement all three.
Choose the starting layer based on your requirements:
- If AI only needs to query data, call an API, or modify records, defining a Tool is enough
- If you need to specify Tool call order, confirmation steps, and output format, define a Skill for those Tools
- If the plugin should provide a fixed role immediately after it is enabled, create a built-in AI employee and bind the corresponding Skills and Tools
When all three layers are used, a task follows this sequence:
- The user gives the AI employee a task
- The AI employee uses its system prompt to decide which Skill is needed
- The Skill tells the model which Tools to call and in what order
- The Tool performs a query, write, or external request and returns the result
- The AI employee prepares the final response from the Tool result
A frontend Tool card is not a fourth capability layer. It only adds an interaction UI to a ToolCall when the Tool needs the user to confirm, select an option, or edit arguments.
Put AI resources under src/ai
NocoBase discovers a plugin's AI resources by directory convention. With the standard plugin layout, put Tools, Skills, and built-in AI employees under src/ai; you do not need to register them one by one in load() in src/server/plugin.ts.
A complete directory can be organized like this:
Each location uses a different registration method:
When a plugin loads, NocoBase completes these steps before running the plugin's own load() method:
- Scan and register Tools
- Parse
SKILLS.mdand bind Tools in each Skill directory to that Skill - Load built-in AI employees and merge the
prompt.md, Skills, and Tools in each employee directory
src/client-v2 is not part of this automatic scanning convention. Register something there only when a Tool needs a frontend card, modal, or browser-side execution logic.
Extension points and directory quick reference
Implement the Tool first by default. Add a Skill when you need a fixed workflow, then create a built-in AI employee when you need a fixed role entry point. Add a frontend card only when the Tool requires browser interaction.
Related links
- Write your first plugin — Create and run a NocoBase plugin from scratch
- AI employees overview — Learn where to access and use AI employees
- Prompt engineering guide — Write system prompts and task constraints

