| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- {
- "name": "douyin-video-comments",
- "displayName": "抖音视频评论查询",
- "description": "获取抖音视频的用户评论列表,支持翻页。直接反映用户对产品/内容的真实评价,是VOC情感分析、痛点挖掘、需求发现的核心数据源。",
- "category": "douyin",
- "version": "1.3.0",
- "endpoint": {
- "method": "GET",
- "url": "https://server.fmode.cn/api/voc-social/douyin/app/v3/fetch_video_comments",
- "headers": {
- "Authorization": "Bearer r:a5a19ea9868043b15d9b10423234ca43",
- "Accept": "application/json"
- }
- },
- "parameters": {
- "type": "object",
- "required": [
- "aweme_id"
- ],
- "properties": {
- "aweme_id": {
- "type": "string",
- "description": "抖音作品 ID"
- },
- "cursor": {
- "type": "integer",
- "description": "分页游标,首次传 0,后续使用上次返回的 cursor 值",
- "default": 0
- },
- "count": {
- "type": "integer",
- "description": "每页数量,请保持默认值 20",
- "default": 20
- }
- }
- },
- "requestTransform": {
- "queryParams": {
- "aweme_id": "{{aweme_id}}",
- "cursor": "{{cursor}}",
- "count": "{{count}}"
- }
- },
- "response": {
- "type": "object",
- "description": "评论数据列表",
- "properties": {
- "comments": {
- "type": "array",
- "description": "评论列表"
- },
- "has_more": {
- "type": "boolean",
- "description": "是否有更多评论"
- },
- "cursor": {
- "type": "integer",
- "description": "下一页游标"
- },
- "total": {
- "type": "integer",
- "description": "评论总数"
- }
- }
- },
- "usageExamples": [
- {
- "name": "爆款视频用户声音采集",
- "input": {
- "aweme_id": "7448118827402972455",
- "cursor": 0,
- "count": 20
- },
- "description": "获取爆款视频前20条评论,提取用户对产品的真实评价和购买意愿"
- },
- {
- "name": "翻页采集更多评论",
- "input": {
- "aweme_id": "7448118827402972455",
- "cursor": 20,
- "count": 20
- },
- "description": "使用上次返回的 cursor 值翻页,累计采集更多用户评论"
- }
- ],
- "workflow": {
- "description": "推荐调用链",
- "steps": [
- "上游: douyin-general-search(keyword, sort_type='1') → 找到高点赞爆款视频",
- "上游: douyin-video-detail(aweme_id) → 确认视频互动数据",
- "本步: douyin-video-comments(aweme_id) → 批量采集用户评论",
- "下游: douyin-comment-replies(item_id, comment_id) → 获取热评下的回复"
- ]
- },
- "reportMapping": {
- "slides": [
- "社媒聆听(Slide14)"
- ],
- "dataPoints": [
- "用户痛点关键词",
- "正向/负向情感分布",
- "高频需求词提取",
- "评论点赞数(热评识别)",
- "用户购买意向信号"
- ]
- },
- "timeout": 60000,
- "retry": {
- "maxAttempts": 3,
- "delay": 1500,
- "backoffMultiplier": 2
- },
- "tokenConfig": {
- "type": "bearer",
- "configFile": "~/.openclaw/voc-credentials.json",
- "tokenField": "vocToken",
- "currentToken": "r:858b3ee92314d5447d1fc3cdc10462d7",
- "resolutionOrder": ["configFile", "currentToken"],
- "onMissing": {
- "action": "showPaymentQR",
- "qrCodeUrl": "https://pwa.fmode.cn/apig-pay.html?user={{user}}&apigid={{apigid}}&fun_id=HOkkX72PMF",
- "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
- "pollingIntervalMs": 3000,
- "pollingTimeoutMs": 300000,
- "onPaymentSuccess": "retrySkillWithNewToken",
- "title": "扫码开通 VOC-AI 数据服务",
- "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
- },
- "onBalanceInsufficient": {
- "action": "showPaymentQR",
- "qrCodeUrl": "https://pwa.fmode.cn/apig-pay.html?user={{user}}&apigid={{apigid}}&fun_id=HOkkX72PMF",
- "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
- "pollingIntervalMs": 3000,
- "pollingTimeoutMs": 300000,
- "onPaymentSuccess": "retrySkillWithNewToken",
- "title": "VOC-AI Token 余额不足,请扫码充值",
- "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
- }
- },
- "errorHandling": {
- "balanceInsufficient": {
- "conditions": [
- { "responseField": "code", "operator": "in", "value": [-2, -3, -10, 402, 429] },
- { "responseField": "msg", "operator": "contains", "value": ["余额不足", "insufficient", "balance", "quota"] },
- { "responseField": "message", "operator": "contains", "value": ["余额不足", "insufficient", "balance"] }
- ],
- "matchMode": "any",
- "trigger": "tokenConfig.onBalanceInsufficient"
- },
- "unauthorized": {
- "conditions": [
- { "responseField": "code", "operator": "in", "value": [401, 403] },
- { "responseField": "msg", "operator": "contains", "value": ["unauthorized", "token", "invalid", "auth"] }
- ],
- "matchMode": "any",
- "trigger": "tokenConfig.onMissing"
- }
- }
- }
|