Install
openclaw skills install @terrycarter1985/multilingual-kb-updateAdd new language translations to customer service knowledge base templates, sync to Feishu Wiki, and create a GitHub issue to document the change. Use when asked to translate/add languages to KB templates, update multilingual customer service response templates, or run the multilingual KB update workflow end-to-end.
openclaw skills install @terrycarter1985/multilingual-kb-updateEnd-to-end workflow for adding languages to customer service KB templates and propagating changes.
kb-templates/common-responses.md (or the target file).### 🇫🇷 Français
<translated text>
Translation quality:
Use the Feishu/Lark Open API to update the Wiki document.
Prerequisites (env vars):
FEISHU_APP_ID — Feishu custom app IDFEISHU_APP_SECRET — Feishu app secretFEISHU_WIKI_SPACE_ID — target Wiki space IDFEISHU_WIKI_NODE_TOKEN — target document node tokenSteps:
# 1. Get tenant access token
TOKEN=$(curl -s -X POST 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \
-H 'Content-Type: application/json' \
-d "{\"app_id\":\"$FEISHU_APP_ID\",\"app_secret\":\"$FEISHU_APP_SECRET\"}" \
| jq -r '.tenant_access_token')
# 2. Get the document ID from the wiki node
DOC_ID=$(curl -s -X GET "https://open.feishu.cn/open-apis/wiki/v2/spaces/$FEISHU_WIKI_SPACE_ID/nodes/$FEISHU_WIKI_NODE_TOKEN" \
-H "Authorization: Bearer $TOKEN" | jq -r '.data.node.obj_token')
# 3. Get existing document blocks (to find where to append)
# Then create new blocks with the translated content.
# See references/feishu-api.md for block creation details.
For full block creation payloads, read references/feishu-api.md.
If Feishu credentials are not configured, report this clearly and skip the sync step — do not fail the entire workflow.
Prerequisites:
gh CLI installed and authenticated (gh auth status), ORGITHUB_TOKEN env var with repo scopegh issue create \
--repo "$GITHUB_REPO" \
--title "docs(kb): add $LANGUAGES translations to common-responses" \
--body "$(cat <<EOF
## Summary
Added $LANGUAGES translations to \`kb-templates/common-responses.md\`.
## Changes
- Added $LANGUAGES versions for all template sections
- Updated header language list
- Updated changelog
## Files
- \`kb-templates/common-responses.md\`
## Sync Status
- [ ] Feishu Wiki updated
- [ ] Local file committed
EOF
)"
If gh is not available, use the GitHub REST API directly with curl:
curl -s -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/$GITHUB_REPO/issues" \
-d "{\"title\":\"...\",\"body\":\"...\"}"
If GitHub credentials are not configured, output the issue title and body as markdown so the user can create it manually.
git add kb-templates/common-responses.md
git commit -m "docs(kb): add $LANGUAGES translations to common-responses"
Do not push unless explicitly asked.
Store these in TOOLS.md or as environment variables:
| Variable | Purpose |
|---|---|
FEISHU_APP_ID | Feishu app ID |
FEISHU_APP_SECRET | Feishu app secret |
FEISHU_WIKI_SPACE_ID | Wiki space ID |
FEISHU_WIKI_NODE_TOKEN | Wiki document node token |
GITHUB_REPO | Target repo (e.g., org/repo) |
GITHUB_TOKEN | GitHub PAT with repo scope |
| Language | Flag | Code |
|---|---|---|
| Chinese (Simplified) | 🇨🇳 | zh-CN |
| English | 🇬🇧 | en |
| French | 🇫🇷 | fr |
| Korean | 🇰🇷 | ko |
| Japanese | 🇯🇵 | ja |
| German | 🇩🇪 | de |
| Spanish | 🇪🇸 | es |
| Portuguese (Brazil) | 🇧🇷 | pt-BR |
| Russian | 🇷🇺 | ru |
| Arabic | 🇸🇦 | ar |