Felo LiveDoc Skill
When to Use
Trigger this skill when users want to:
- - Create/manage knowledge bases: Create, list, update, or delete LiveDocs
- Add resources: Upload documents, add URLs, or create text documents in a LiveDoc
- Semantic retrieval: Search across knowledge base resources using natural language queries
- Resource management: List, view, or delete resources within a LiveDoc
Trigger words:
- - English: knowledge base, livedoc, live doc, upload document, add URL, semantic search, retrieve, knowledge retrieval
- 简体中文: 知识库, 文档库, 上传文档, 添加链接, 语义检索, 知识检索
Explicit commands: /felo-livedoc, "livedoc", "felo livedoc"
Do NOT use for:
- - General web search (use felo-search)
- PPT generation (use felo-slides)
- SuperAgent conversations (use felo-superAgent)
Setup
1. Get Your API Key
- 1. Visit felo.ai and log in (or register)
- Click your avatar in the top right corner → Settings
- Navigate to the "API Keys" tab
- Click "Create New Key" to generate a new API Key
- Copy and save your API Key securely
2. Configure API Key
Set the FELO_API_KEY environment variable:
Linux/macOS:
CODEBLOCK0
Windows (PowerShell):
$env:FELO_API_KEY="your-api-key-here"
How to Execute
When this skill is triggered, execute the livedoc script using the Bash tool:
LiveDoc Management
Create a LiveDoc:
CODEBLOCK2
List LiveDocs:
CODEBLOCK3
Update a LiveDoc:
CODEBLOCK4
Delete a LiveDoc:
CODEBLOCK5
Resource Management
Add a text document:
CODEBLOCK6
Add URLs (max 10, comma-separated):
CODEBLOCK7
Upload a file:
CODEBLOCK8
List resources:
CODEBLOCK9
Get a single resource:
CODEBLOCK10
Delete a resource:
CODEBLOCK11
Semantic Retrieval
Search across resources:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs retrieve SHORT_ID --query "your search query"
Options
All commands support:
- -
--json or -j — output raw JSON response - INLINECODE4 or
-t <ms> — request timeout in milliseconds (default: 60000)
Parse and Format Response
The API returns JSON with this structure:
CODEBLOCK13
LiveDoc object:
- -
short_id — unique identifier (use this for all operations) - INLINECODE7 — LiveDoc name
- INLINECODE8 — LiveDoc description
- INLINECODE9 /
modified_at — timestamps
Resource object:
- -
id — resource identifier - INLINECODE12 — resource title
- INLINECODE13 — type (web, ai_doc, file, etc.)
- INLINECODE14 — processing status
- INLINECODE15 — content preview
Retrieve result:
- -
id — resource ID - INLINECODE17 — resource title
- INLINECODE18 — matched content
- INLINECODE19 — relevance score (0-1)
Error Handling
Common Error Codes
- -
INVALID_API_KEY — API Key is invalid or revoked - INLINECODE21 — LiveDoc does not exist
- INLINECODE22 — Resource does not exist
- INLINECODE23 — Failed to create LiveDoc
- INLINECODE24 — File upload failed
- INLINECODE25 — URL addition failed
- INLINECODE26 — Semantic retrieval failed
Missing API Key
If FELO_API_KEY is not set, display this message:
CODEBLOCK14
Important Notes
- - Always use the
short_id returned from create/list to reference a LiveDoc - URL resources are limited to 10 per request
- Use
--convert with upload to convert files to searchable documents - Semantic retrieval returns results sorted by relevance score
- Execute immediately using the Bash tool — don't just describe what you would do
Felo LiveDoc 技能
使用场景
当用户想要以下操作时触发此技能:
- - 创建/管理知识库: 创建、列出、更新或删除 LiveDoc
- 添加资源: 上传文档、添加 URL 或在 LiveDoc 中创建文本文档
- 语义检索: 使用自然语言查询跨知识库资源进行搜索
- 资源管理: 列出、查看或删除 LiveDoc 中的资源
触发词:
- - 英文:knowledge base, livedoc, live doc, upload document, add URL, semantic search, retrieve, knowledge retrieval
- 简体中文:知识库, 文档库, 上传文档, 添加链接, 语义检索, 知识检索
显式命令: /felo-livedoc,livedoc,felo livedoc
请勿用于:
- - 通用网页搜索(使用 felo-search)
- PPT 生成(使用 felo-slides)
- SuperAgent 对话(使用 felo-superAgent)
设置
1. 获取您的 API 密钥
- 1. 访问 felo.ai 并登录(或注册)
- 点击右上角头像 → 设置
- 导航至API 密钥选项卡
- 点击创建新密钥生成新的 API 密钥
- 安全地复制并保存您的 API 密钥
2. 配置 API 密钥
设置 FELOAPIKEY 环境变量:
Linux/macOS:
bash
export FELOAPIKEY=your-api-key-here
Windows(PowerShell):
powershell
$env:FELOAPIKEY=your-api-key-here
执行方法
当此技能被触发时,使用 Bash 工具执行 livedoc 脚本:
LiveDoc 管理
创建 LiveDoc:
bash
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs create --name 知识库名称 --description 描述
列出 LiveDoc:
bash
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs list
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs list --keyword 搜索关键词
更新 LiveDoc:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs update SHORTID --name 新名称 --description 新描述
删除 LiveDoc:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs delete SHORTID
资源管理
添加文本文档:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs add-doc SHORTID --title 文档标题 --content 文档内容
添加 URL(最多 10 个,以逗号分隔):
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs add-urls SHORTID --urls https://example.com,https://example.org
上传文件:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs upload SHORTID --file ./document.pdf
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs upload SHORTID --file ./document.pdf --convert
列出资源:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs resources SHORTID
获取单个资源:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs resource SHORTID RESOURCE_ID
删除资源:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs remove-resource SHORTID RESOURCE_ID
语义检索
跨资源搜索:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs retrieve SHORTID --query 您的搜索查询
选项
所有命令支持:
- - --json 或 -j — 输出原始 JSON 响应
- --timeout 或 -t — 请求超时时间(毫秒,默认:60000)
解析和格式化响应
API 返回具有以下结构的 JSON:
json
{
status: ok,
message: success,
data: { ... }
}
LiveDoc 对象:
- - shortid — 唯一标识符(所有操作使用此标识)
- name — LiveDoc 名称
- description — LiveDoc 描述
- createdat / modified_at — 时间戳
资源对象:
- - id — 资源标识符
- title — 资源标题
- resourcetype — 类型(web、aidoc、file 等)
- status — 处理状态
- snippet — 内容预览
检索结果:
- - id — 资源 ID
- title — 资源标题
- content — 匹配的内容
- score — 相关性评分(0-1)
错误处理
常见错误代码
- - INVALIDAPIKEY — API 密钥无效或已撤销
- LIVEDOCNOTFOUND — LiveDoc 不存在
- LIVEDOCRESOURCENOTFOUND — 资源不存在
- LIVEDOCCREATEFAILED — 创建 LiveDoc 失败
- LIVEDOCRESOURCEUPLOADFAILED — 文件上传失败
- LIVEDOCRESOURCEADDURLSFAILED — URL 添加失败
- LIVEDOCRESOURCERETRIEVE_FAILED — 语义检索失败
缺少 API 密钥
如果未设置 FELOAPIKEY,显示以下消息:
错误:未设置 FELOAPIKEY。请从 https://felo.ai(设置 → API 密钥)获取您的 API 密钥。
设置方法:export FELOAPIKEY=your-key
重要说明
- - 始终使用 create/list 返回的 short_id 来引用 LiveDoc
- URL 资源每次请求限制为 10 个
- 使用 --convert 配合 upload 将文件转换为可搜索文档
- 语义检索返回按相关性评分排序的结果
- 立即使用 Bash 工具执行 — 不要仅描述您将要执行的操作