自動重呼任務編輯

POST

https://api.laaffic.com/v3/voice/recallFlow/update

自動重呼任務詳情編輯,僅當自動重呼任務狀態為待執行時才可以編輯
 
請求參數
參數 說明 是否必填 類型
keyId 自動重呼任務流程唯一主鍵 Int
recallInterval 重呼間隔,單位分鐘,可輸入1-1440分鐘 Int
recallNum 重呼次數,可輸入1-10 Int
recallType 重呼類型,每次重呼都基於上次任務結果進行重呼,0-全部重呼,1-失敗重呼 Int
nodeList 流程節點 Array
source 文件來源(1-已上傳文件,2-重新上傳語音文件,3-文本轉語音) Int
voiceFileId 語音文件ID source=1必填  
uploadName 上傳文件名稱,長度5-32字符 source=2必填 String
baseFile base64文件流 source=2必填 String
text 文件內容:tts文本 最大 1000字符 source=3 必填 String
lan 語種,語種詳細內容請查詢表格 source=3 必填 String
speakingRate 語速:0.25 - 4倍 Double
ssmlGender 音色:1 男 2女。允許為空,存在多種音色時系統默認使用女聲 Int
accent 口音,可配置語種口音,如英語[美國口音]、英語[印度口音] 等,口音詳細內容請查詢表格 Int
hangUpSms 觸發掛機簡訊 0-否,1-是 Int
smsContent 掛機簡訊簡訊模板,最大1000字符。支持變量替換功能,變量${text1}-${text10} hangUpSms=1,必填 String
senderId 發送者ID,最大32字符 String
feedbackPush 按鍵反饋推送簡訊: 0-否,1-是 hangUpSms=1,(feedbackPush,successPush,failedPush,ringPush)必填有一個傳值為1 Int
feedbackValue 按鍵反饋值: 0-9 feedbackPush =1,必填 String
successPush 通話成功推送送簡訊: 0-否,1-是 hangUpSms=1,(feedbackPush,successPush,failedPush,ringPush)必填有一個傳值為1 Int
successPushTime 通話成功後多少秒推送簡訊,最少1s,最大9999s successPush=1,必填 Int
failedPush 通話失敗推送送簡訊: 0-否, 1-是 hangUpSms=1,(feedbackPush,successPush,failedPush,ringPush)必填有一個傳值為1 Int
ringPush 響鈴成功推送送簡訊: 0-否, 1-是 hangUpSms=1,(feedbackPush,successPush,failedPush,ringPush)必填有一個傳值為1 Int
toSeat 是否轉坐席:0-否,1-是 Int
sipGroupId 坐席組id 當toSeat=1時必填 Int
outboundControl 外呼控制器,1-比例式外呼 當toSeat=1時必填 Int
calloutRate 外呼倍率,最多1-100 當toSeat=1時必填 Int
toSeatType 轉坐席條件,1群呼結束後轉接,2根據按鍵反饋轉接 當toSeat=1時必填 Int
toSeatKey 轉接按鍵 當toSeat=1並且toSeatType=2時必填 String
delayTransfer 延遲轉接,單位秒。需轉坐席且按鍵轉接時參數生效 當toSeat=1並且toSeatType=2時參數生效 Int
 
請求示例
Request URL: 
	https://api.laaffic.com/v3/voice/recallFlow/update
Request Method: 
	POST
Request Headers:
	Content-Type: application/json;charset=UTF-8
	Sign: 05d7a50893e22a5c4bb3216ae3396c7c
	Timestamp: 1630468800
	Api-Key: bDqJFiq9
Request Body:
{
    "keyId": 299,
    "recallType": 0,
    "recallInterval": 30,
    "recallNum": 1,
    "nodeList": [
        {
            "voiceFileId": "120250811103439c1901f4c53b691b419ad8a143b.wav",
            "voiceFileName": null,
            "source": 1,
            "text": null,
            "lan": null,
            "speakingRate": null,
            "hangUpSms": 0,
            "idxSmsAppId": null,
            "smsContent": null,
            "senderId": null,
            "feedbackValue": null,
            "feedbackPush": null,
            "successPush": null,
            "successPushTime": null,
            "failedPush": null,
            "ringPush": null,
            "toSeat": 1,
            "sipGroupId": 1000038,
            "outboundControl": 1,
            "calloutRate": 1,
            "toSeatType": 1,
            "toSeatKey": null,
            "delayTransfer": 0
        }
    ]
}
 
響應參數
參數 說明 類型
status 狀態碼,0成功,其他失敗參見接口響應碼。 String
reason 失敗原因說明 String
data    
 
響應示例
{
	"status": 0,
	"reason": "success",
	"data": null
}
 
響應狀態碼
status 狀態說明
0 成功
-1 帳號認證異常
-2 ip限制
-16 時間戳過期
-18 系統異常
-22 參數異常

Telegram
WhatsApp
諮詢

點擊此處開啟人工服務