抖音文案解析
by @kyriswu
Call the coze-js-api Douyin transcription endpoint and return transcript-ready results from Douyin URLs or share-text. Use this skill whenever the user asks...
clawhub install douyin-transcribe-api📖 About This Skill
name: douyin-transcribe-api description: Call the coze-js-api Douyin transcription endpoint and return transcript-ready results from Douyin URLs or share-text. Use this skill whenever the user asks to transcribe, extract speech, or get subtitles from Douyin/TikTok China links, including messy copied share text with embedded URLs, API key handling, shell command execution, and response troubleshooting. metadata: {"openclaw":{"requires":{"bins":["bash","curl","python3"]}}} user-invocable: true
Douyin Transcribe API Skill
Use this skill to reliably call the API endpoint:
POST https://coze-js-api.devtool.uk/transcribe-douyinExecute the bundled shell wrapper instead of calling the external API inline from SKILL.md.
When to use
Use this skill if the user asks for any of the following:
transcribe-douyin endpointtranscribe-douyin callsThis skill should trigger even when the user does not explicitly mention the endpoint name, as long as the intent is Douyin video transcription through API.
Inputs
Collect or infer these inputs:
url (required):https://v.douyin.com/.../.
- Example input style:
- 2.89 zTl:/ ... https://v.douyin.com/UxkQpDSVMFE/ 复制此链接,打开Dou音搜索,直接观看视频!
- A direct link like https://v.douyin.com/.../ is also accepted.API key resolution
Resolve api_key in this order:
1. Read environment variable DOUYIN_TRANSCRIBE_API_KEY.
2. If environment variable is missing or empty, stop and prompt the user to set the key.
Prompt message when key is missing:
Input normalization
Before calling the API:
1. If url includes free text, extract the first https://... URL.
2. Keep the original text if no URL can be extracted and explain the issue.
3. Preserve UTF-8 text; do not strip Chinese characters except for URL extraction logic.
4. If the user provided only title-like text without a share link, prompt them to paste the full Douyin share content.
Request format
Always send JSON body with:
urlapi_keyCommand to run:
export DOUYIN_TRANSCRIBE_API_KEY=""exec bash scripts/transcribe_douyin.sh ""
If DOUYIN_TRANSCRIBE_API_KEY is not set, do not call the API. Prompt the user to set it first.
Do not construct a raw curl command in the final answer unless the user explicitly asks for it. Prefer executing the bundled script.
Response handling
After the call:
1. Show status outcome clearly (success or failed).
2. Return important response fields directly.
3. If request fails, provide likely causes and a corrected command.
Common failure causes:
If response indicates invalid token/key (for example code: -1 and message like 令牌无效), guide the user to:
Output format
Use this structure in responses:
# Douyin Transcription Request
Endpoint: https://coze-js-api.devtool.uk/transcribe-douyin
URL input:
API key source: Request
Result
Next Step
Examples
Example 1:
Input: "Transcribe this: https://v.douyin.com/gtSMSkIh3p0/"
Output behavior: Read key from DOUYIN_TRANSCRIBE_API_KEY, run exec bash scripts/transcribe_douyin.sh "https://v.douyin.com/gtSMSkIh3p0/", then summarize response.
Example 2:
Input: "4.12 ... https://v.douyin.com/gtSMSkIh3p0/ ... 打开Dou音搜索 ..."
Output behavior: Pass the full share text into scripts/transcribe_douyin.sh, let the script send the JSON request, and report result.
Safety and privacy
⚡ When to Use
💡 Examples
Example 1:
Input: "Transcribe this: https://v.douyin.com/gtSMSkIh3p0/"
Output behavior: Read key from DOUYIN_TRANSCRIBE_API_KEY, run exec bash scripts/transcribe_douyin.sh "https://v.douyin.com/gtSMSkIh3p0/", then summarize response.
Example 2:
Input: "4.12 ... https://v.douyin.com/gtSMSkIh3p0/ ... 打开Dou音搜索 ..."
Output behavior: Pass the full share text into scripts/transcribe_douyin.sh, let the script send the JSON request, and report result.