Lexiang Tencent Knowledge Base API for Openclaw

A robust integration for Tencent Lexiang providing full API control over enterprise knowledge bases, team collaboration, and AI-driven Q&A.

ajaxhe
v0.1.2
Feb 24, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install lexiang-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install lexiang-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Lexiang Tencent Knowledge Base API?

Tencent Lexiang is a leading enterprise-grade knowledge management platform designed for organizational synergy. This skill facilitates seamless interaction with the Lexiang ecosystem through Openclaw Skills, allowing developers and agents to programmatically manage teams, spaces, and hierarchical knowledge entries. It bridges the gap between local workflows and cloud-based enterprise intelligence.

By leveraging this skill, users can automate the entire lifecycle of corporate documentation, from initial file uploads to complex block-level edits. It includes built-in support for Tencent's AI assistant, enabling intelligent searching and research-based question-answering across internal data silos, making it a vital component of modern Openclaw Skills deployments.

Lexiang Tencent Knowledge Base API Use Cases

  • Automating the synchronization of local Markdown documentation into enterprise knowledge spaces.
  • Building custom AI bots that perform research and Q&A using internal company knowledge.
  • Programmatically managing organizational hierarchies and team permissions via API.
  • Batch uploading project attachments and files to centralized knowledge repositories.
  • Developing automated reporting tools that generate and update online document blocks in real-time.

How Lexiang Tencent Knowledge Base API Works

  1. Authentication is established by configuring an App Key and Secret to generate a temporary bearer token via a specialized initialization script.
  2. The skill identifies the organizational structure by traversing Teams and Spaces to find specific target containers.
  3. Knowledge entries are managed through a tree-like hierarchy using unique IDs for pages, folders, and files.
  4. Write operations are executed using the JSON:API specification, requiring specific headers like x-staff-id for identity verification.
  5. Document content can be manipulated either through bulk Markdown file uploads or granular block-by-block modifications.
  6. AI research queries are processed through dedicated endpoints to retrieve context-aware answers from the stored knowledge.

Lexiang Tencent Knowledge Base API Setup

To begin using this skill within the Openclaw Skills framework, configure your environment variables and initialize the token cache:

export LEXIANG_APP_KEY="your_app_key"
export LEXIANG_APP_SECRET="your_app_secret"
export LEXIANG_STAFF_ID="your_staff_id"

source scripts/init.sh

The initialization script will automatically handle token acquisition (valid for 2 hours) and cache it in ~/.config/lexiang/token.

Lexiang Tencent Knowledge Base API Data Schema & Taxonomy

The skill organizes data according to the Lexiang hierarchical model, ensuring compatibility with Openclaw Skills data structures:

Level Object Description
1 Team The top-level organizational unit for grouping spaces.
2 Space A container for specific knowledge domains or projects.
3 Entry Individual items such as pages, folders, or files (supports parent_id nesting).
4 Block The smallest unit of content within a page (e.g., heading1, bulleted list, table).

All data exchange follows the JSON:API standard, requiring clear relationship definitions between spaces and entries.

Lexiang Tencent Knowledge Base API Advanced Features

  • AI Research & QA: Toggle professional research modes for deep-dive questioning into knowledge base content.
  • Granular Block API: Precision control over document layout including tables, mermaid diagrams, and nested lists.
  • High-Performance Sync: Optimized for frequency limits of up to 3000 calls per minute for enterprise-scale operations.
  • JSON:API Compliance: Strict adherence to modern API standards for robust relationship management.
  • Multi-format Support: Seamlessly switch between HTML content retrieval and Markdown-based content publishing.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*