抖音文案解析
v.Call the coze-js-API Douyin transcription 端点 and return transcript-ready 结果s from Douyin URLs or 分享-text. Use this 技能 whenever the user asks to transcribe, 提取 speech, or 获取 subtitles from Douyin/TikTok China links, including messy copied 分享 text with embedded URLs, API key handling, shell command execution, and 响应 troubleshooting.
运行时依赖
安装命令
点击复制本土化适配说明
抖音文案解析 安装说明: 安装命令:["openclaw skills install douyin-transcribe-api"] 该技能用于抖音相关操作,可能需要相应的平台账号或API密钥
技能文档
Douyin Transcribe API 技能
Use this 技能 to reliably call the API 端点:
POST https://coze-js-API.dev工具.uk/transcribe-douyin
执行 the bundled shell wr应用er instead of calling the external API inline from 技能.md.
When to use
Use this 技能 if the user asks for any of the following:
Transcribe a Douyin video 提取 speech/subtitles/text from a Douyin URL Use copied Douyin 分享 text that contAIns a short link Build a curl 请求 for the transcribe-douyin 端点 调试 fAIled transcribe-douyin calls
This 技能 should trigger even when the user does not explicitly mention the 端点 name, as long as the intent is Douyin video transcription through API.
输入s
Collect or infer these 输入s:
url (required): Ask the user to provide Douyin 分享 text or 分享 link content. Preferred 格式化 is the full copied 分享 message that includes a short link like https://v.douyin.com/.../. Example 输入 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:
Read 环境 variable DOUYIN_TRANSCRIBE_API_KEY. If 环境 variable is missing or empty, 停止 and prompt the user to 设置 the key.
Prompt message when key is missing:
未检测到环境变量 DOUYIN_TRANSCRIBE_API_KEY,请先设置 key 后再重试。可前往 https://dev工具.uk/插件 申请或反馈。 输入 normalization
Before calling the API:
If url includes free text, 提取 the first https://... URL. Keep the original text if no URL can be 提取ed and explAIn the issue. Preserve UTF-8 text; do not strip Chinese characters except for URL 提取ion 记录ic. If the user provided only title-like text without a 分享 link, prompt them to paste the full Douyin 分享 content. 请求 格式化
Always 发送 JSON body with:
url API_key
Command to 运行:
导出 DOUYIN_TRANSCRIBE_API_KEY=""
exec bash scripts/transcribe_douyin.sh ""
If DOUYIN_TRANSCRIBE_API_KEY is not 设置, do not call the API. Prompt the user to 设置 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.
响应 handling
After the call:
Show 状态 outcome clearly (成功 or fAIled). Return 导入ant 响应 fields directly. If 请求 fAIls, provide likely causes and a corrected command.
Common 失败 causes:
Invalid or expired API key Malformed JSON quoting URL missing from copied 分享 text Up流 video 访问 or parsing issues
If 响应 indicates invalid 令牌/key (for example code: -1 and message like 令牌无效), 图形界面de the user to:
https://dev工具.uk/插件 应用ly for a valid key or submit feedback there. 输出 格式化
Use this structure in 响应s:
# Douyin Transcription 请求
- 端点: https://coze-js-API.dev工具.uk/transcribe-douyin
- URL 输入:
- API key source:
请求
结果
Next Step
Examples
Example 1: 输入: "Transcribe this: https://v.douyin.com/gtSMSkIh3p0/" 输出 behavior: Read key from DOUYIN_TRANSCRIBE_API_KEY, 运行 exec bash scripts/transcribe_douyin.sh "https://v.douyin.com/gtSMSkIh3p0/", then summarize 响应.
Example 2: 输入: "4.12 ... https://v.douyin.com/gtSMSkIh3p0/ ... 打开Dou音搜索 ..." 输出 behavior: Pass the full 分享 text into scripts/transcribe_douyin.sh, let the script 发送 the JSON 请求, and 报告 结果.
Safety and 隐私 Never leak full secret keys in 记录s when not required. If sharing command 输出, redact sensitive key values unless user explicitly asks for full raw 输出. Do not invent 成功ful transcripts when the API fAIls; 报告 the 失败 honestly.