简介
快速构建可搜索的 FAQ 知识库,支持从 Markdown 导入和模糊匹配,专为 WhatsApp 企业客服场景设计。
原始描述
Build and query a FAQ knowledge base from markdown files. Use when asked to create a FAQ bot, set up automatic answers, build a knowledge base, add FAQ entri...
通过你的 Agent 添加
安装目录:whatsapp-faq-bot/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: whatsapp-faq-bot
description: Build and query a FAQ knowledge base from markdown files. Use when asked to create a FAQ bot, set up automatic answers, build a knowledge base, add FAQ entries, search FAQs, or answer common questions from a knowledge base. Perfect for WhatsApp business bots.
WhatsApp FAQ Bot
Build a searchable knowledge base from markdown files. Match incoming questions to the best FAQ answer using fuzzy text matching.
Quick Start
# Initialize a new FAQ knowledge base
python scripts/faqbot.py init
# Add a FAQ entry interactively
python scripts/faqbot.py add -q "What are your business hours?" -a "We are open Monday to Friday, 9 AM to 6 PM CET."
# Import FAQs from a markdown file
python scripts/faqbot.py import faq-source.md
# Search for the best matching answer
python scripts/faqbot.py search "when are you open"
# List all FAQ entries
python scripts/faqbot.py list
# Export all FAQs to markdown
python scripts/faqbot.py export --format md -o faqs-export.md
# Export as JSON
python scripts/faqbot.py export --format json -o faqs.json
# Remove a FAQ entry by ID
python scripts/faqbot.py remove 3
# Get stats about the knowledge base
python scripts/faqbot.py stats
Commands
Command
Args
Description
init
Create a new empty knowledge base
add
-q QUESTION -a ANSWER [-t TAGS]
Add a single FAQ entry
import
<file.md>
Import FAQs from markdown (H2 = question, body = answer)
search
<query> [--top N] [--threshold T]
Find best matching answer(s)
list
[--tag TAG]
List all FAQ entries
remove
<id>
Remove a FAQ entry
export
[--format md|json] [-o FILE]
Export knowledge base
stats
Show knowledge base statistics
Markdown Import Format
## What are your business hours?
We are open Monday to Friday, 9 AM to 6 PM CET.
Weekend support is available via email only.
## How do I reset my password?
Go to Settings > Account > Reset Password.
You will receive an email with a reset link.
## What payment methods do you accept?
We accept:
- Credit/debit cards (Visa, Mastercard)
- PayPal
- Bank transfer (EU only)
# Initialize a new FAQ knowledge base
python scripts/faqbot.py init
# Add a FAQ entry interactively
python scripts/faqbot.py add -q "What are your business hours?" -a "We are open Monday to Friday, 9 AM to 6 PM CET."
# Import FAQs from a markdown file
python scripts/faqbot.py import faq-source.md
# Search for the best matching answer
python scripts/faqbot.py search "when are you open"
# List all FAQ entries
python scripts/faqbot.py list
# Export all FAQs to markdown
python scripts/faqbot.py export --format md -o faqs-export.md
# Export as JSON
python scripts/faqbot.py export --format json -o faqs.json
# Remove a FAQ entry by ID
python scripts/faqbot.py remove 3
# Get stats about the knowledge base
python scripts/faqbot.py stats
| Command | Args | Description |
|---|---|---|
init |
Create a new empty knowledge base | |
add |
-q QUESTION -a ANSWER [-t TAGS] |
Add a single FAQ entry |
import |
<file.md> |
Import FAQs from markdown (H2 = question, body = answer) |
search |
<query> [--top N] [--threshold T] |
Find best matching answer(s) |
list |
[--tag TAG] |
List all FAQ entries |
remove |
<id> |
Remove a FAQ entry |
export |
[--format md|json] [-o FILE] |
Export knowledge base |
stats |
Show knowledge base statistics |
Markdown Import Format
## What are your business hours?
We are open Monday to Friday, 9 AM to 6 PM CET.
Weekend support is available via email only.
## How do I reset my password?
Go to Settings > Account > Reset Password.
You will receive an email with a reset link.
## What payment methods do you accept?
We accept:
- Credit/debit cards (Visa, Mastercard)
- PayPal
- Bank transfer (EU only)
## What are your business hours?
We are open Monday to Friday, 9 AM to 6 PM CET.
Weekend support is available via email only.
## How do I reset my password?
Go to Settings > Account > Reset Password.
You will receive an email with a reset link.
## What payment methods do you accept?
We accept:
- Credit/debit cards (Visa, Mastercard)
- PayPal
- Bank transfer (EU only)
Each H2 heading becomes a question, the body below becomes the answer.
Search Scoring
- Uses TF-IDF-like fuzzy matching on question text
- Returns confidence score (0.0 to 1.0)
- Default threshold: 0.3 (adjustable with
--threshold)
- Returns top 3 matches by default (adjustable with
--top)
Integration with OpenClaw
--threshold)--top)This skill is designed to work as a WhatsApp FAQ bot. When a user asks a question, the agent can use the search command to find the best match and respond automatically. Configure it in your cron or agent system prompt.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。