通話記録コールバック
コールバックbodyパラメータ
| パラメータ |
タイプ |
空値可 |
説明 |
| callId |
String |
false |
通話識別子 |
| workflow |
int |
false |
電話タイプ(1着信2ダイレクト発信3双方向コールバック4自動発信) |
| fromNumber |
String |
false |
発信者番号 |
| toNumber |
String |
false |
着信者番号 |
| relayNumber |
String |
false |
中継番号 |
| callStartTime |
date |
false |
通話開始時間(例 yyyy-MM-dd HH:mm:ss) |
| callEndTime |
date |
false |
通話終了時間(例 yyyy-MM-dd HH:mm:ss) |
| callDuration |
int |
false |
通話総時間(秒) |
| callRecordUrl |
String |
true |
通話録音URL |
| customerProvince |
String |
true |
帰属地-省 |
| customerCity |
String |
true |
帰属地-市 |
| routerId |
int |
true |
ルーティングID |
| routerName |
String |
true |
ルーティング名 |
| transferAgentFlag |
int |
true |
オペレーターへの転送有無(0否1是) |
| agentId |
String |
true |
オペレーターID |
| agentName |
String |
true |
オペレーター名 |
| queueId |
String |
true |
キューID |
| queueName |
String |
true |
キュー名 |
| robotNames |
Array |
true |
シナリオ名配列(["シナリオ1","シナリオ2"]) |
| labelInfos |
Array |
true |
通常タグ配列(["果物","重要"]) |
| instances |
Array |
true |
対話記録 |
| instances[].callId |
String |
true |
通話識別子 |
| instances[].instanceId |
int |
true |
シナリオインスタンス識別子 |
| instances[].robotId |
int |
true |
ロボット識別子 |
| instances[].robotDefId |
int |
true |
ロボット定義識別子 |
| instances[].robotName |
String |
true |
シナリオ名 |
| instances[].dialogueStartTime |
date |
true |
対話開始時間 |
| instances[].dialogueEndTime |
date |
true |
対話終了時間 |
| instances[].dialogueDuration |
int |
true |
対話総時間(秒) |
| instances[].dialogueRecordUrl |
String |
true |
対話録音URL |
| instances[].dialogueRound |
int |
true |
対話ターン数 |
| instances[].intentionLabelKey |
String |
true |
意向タグ識別子 |
| instances[].intentionLabelName |
String |
true |
意向タグ名 |
| instances[].labelInfoList |
Array |
true |
タグ情報 |
| instances[].labelInfoList[].name |
String |
true |
タグ名 |
| instances[].dialogueContentList |
Array |
true |
対話内容 |
| instances[].dialogueContentList[].callId |
String |
true |
通話識別子 |
| instances[].dialogueContentList[].instanceId |
int |
true |
セッション識別子 |
| instances[].dialogueContentList[].robotId |
int |
true |
ロボットID |
| instances[].dialogueContentList[].robotDefId |
int |
true |
ロボット定義ID |
| instances[].dialogueContentList[].dialogueRole |
int |
true |
対話ロール(1ロボット2ユーザー9システム) |
| instances[].dialogueContentList[].dialogueStartTime |
date |
true |
対話終了時間 |
| instances[].dialogueContentList[].dialogueContent |
String |
true |
対話内容 |
| instances[].dialogueContentList[].dialogueRecordUrl |
String |
true |
対話録音URL |
| instances[].dialogueContentList[].matchType |
int |
true |
マッチタイプ(1問題ヒット2回答分岐ヒット3ノード重複ヒット4グローバル設定ヒット10未ヒット) |
| instances[].dialogueContentList[].matchResult |
String |
true |
マッチ結果 |
| instances[].dialogueContentList[].matchName |
String |
true |
マッチ名 |
| variables |
Array |
true |
変数 |
| variables[].variableName |
String |
true |
変数名 |
| variables[].variableValue |
String |
true |
変数値 |
| intentionLabelKey |
String |
true |
意向タグ識別子 |
| intentionLabelName |
String |
true |
意向タグ名 |
| allRecordUrl |
Array |
true |
全通話記録 |
| allRecordUrl[].recordUrl |
String |
true |
通話記録URL |
| allRecordUrl[].recordType |
String |
true |
通話記録タイプ |
| adTaskId |
int |
true |
発信タスクID |
| adTaskName |
String |
true |
発信タスク名 |
| contactDetailRel |
Object |
true |
連絡先情報 |
| contactDetailRel.name |
String |
true |
名前 |
| contactDetailRel.mobile |
String |
true |
番号 |
| contactDetailRel.companyName |
String |
true |
会社 |
| contactDetailRel.remark |
String |
true |
備考 |
| contactDetailRel.variates |
Object |
true |
連絡先変数情報 |
| contactDetailRel.variates.key |
String |
true |
連絡先変数キー |
| contactDetailRel.variates.type |
String |
true |
連絡先変数タイプ |
| contactDetailRel.variates.value |
String |
true |
連絡先変数値 |
| callResult |
int |
true |
着信結果 |
| calledResult |
int |
true |
発信結果 1-未接続 2-接続済み |
| agentCallDuration |
int |
true |
オペレーター通話時間 |
| hangupCause |
String |
true |
発信失敗原因 |
| hangupBy |
int |
true |
通話切断側 1: 顧客 2: オペレーター 3:システム 4: IVR 5: 外部回線 |
| customerNumber |
String |
true |
顧客番号 |
| remark |
String |
true |
備考 |
| taskContactBatchName |
String |
true |
連絡先名 |
| userAnsweredFlag |
int |
true |
有効通話(0否1是) |
| userAnsweredCount |
int |
true |
ユーザーインタラクション回数 |
| userAnsweredEffectiveCount |
int |
true |
ユーザー有効インタラクション回数 |
| isFinalCall |
int |
true |
最終通話識別子 1-最終発信 0-否 |
| gender |
String |
true |
性別、男性:male 女性: female 不明: unknown |
| ### コールバック例 |
|
|
|
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 522
{
"callId": "eff790c4-90a5-4453-990c-ff7d4aa30914",
"workflow": 3,
"fromNumber": "18920765651",
"toNumber": "05388593211",
"relayNumber": "05388593191",
"callStartTime": "2021-05-29 10:23:43",
"callEndTime": "2021-05-29 10:23:57",
"callDuration": 14,
"callRecordUrl": "https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
"customerProvince": "天津",
"customerCity": "天津",
"routerId": 185,
"routerName": "210528bbr",
"transferAgentFlag": 0,
"agentId": null,
"agentName": null,
"queueId": null,
"queueName": null,
"robotNames": [
"Fテスト_英語1"
],
"labelInfos": [
"満足"
],
"variables": [
{
"variableName": "2",
"variableValue": "北京"
}
],
"instances": [
{
"callId": "eff790c4-90a5-4453-990c-ff7d4aa30914",
"instanceId": 1622255025121140,
"robotId": 25233,
"robotDefId": 30724,
"robotName": "Fテスト_英語1",
"dialogueStartTime": "2021-05-29 10:23:43",
"dialogueEndTime": "2021-05-29 10:23:57",
"dialogueDuration": 13,
"dialogueRecordUrl": null,
"dialogueRound": 1,
"intentionLabelKey": "C",
"intentionLabelName": "C級(明確な拒否)",
"labelInfoList": [
{
"name": "果物"
}
],
"dialogueContentList": [
{
"callId": "eff790c4-90a5-4453-990c-ff7d4aa30914",
"instanceId": 1622255025121140,
"robotId": 25233,
"robotDefId": 30724,
"dialogueRole": 1,
"dialogueStartTime": "2021-05-29 10:23:43",
"dialogueContent": "Many lessons are boring, and he is very tired after doing gym.",
"dialogueRecordUrl": null,
"matchType": null,
"matchResult": "",
"matchName": ""
},
{
"callId": "eff790c4-90a5-4453-990c-ff7d4aa30914",
"instanceId": 1622255025121140,
"robotId": 25233,
"robotDefId": 30724,
"dialogueRole": 2,
"dialogueStartTime": "2021-05-29 10:23:49",
"dialogueContent": "うん。",
"dialogueRecordUrl": "https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
"matchType": 9,
"matchResult": "無視",
"matchName": "無視"
},
{
"callId": "eff790c4-90a5-4453-990c-ff7d4aa30914",
"instanceId": 1622255025121140,
"robotId": 25233,
"robotDefId": 30724,
"dialogueRole": 2,
"dialogueStartTime": "2021-05-29 10:23:56",
"dialogueContent": "英語です。",
"dialogueRecordUrl": "https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
"matchType": 6,
"matchResult": "回答ブランチにマッチ:【デフォルト】",
"matchName": "デフォルト"
}
]
}
],
"intentionLabelKey":"C",
"intentionLabelName":"C級(明確な拒否)",
"allRecordUrl": [
{
"recordUrl": "https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
"recordType": "ivr"
}
],
"adTaskId": 1762,
"adTaskName": "テスト発信タスク",
"contactDetailRel": {
"name": "zmh",
"mobile": "18770915633",
"companyName": "沃豊科技",
"remark": "美しく心優しい",
"variates": [
{
"key": "name",
"type": "text",
"value": "zmh"
},
{
"key": "age",
"type": "number",
"value": "18"
}
]
},
"callResult": 1,
"calledResult": 1,
"agentCallDuration": 23,
"hangupCause": "お客様が取り込み中",
"hangupBy": 1,
"customerNumber": 18770915633,
"remark": "",
"taskContactBatchName": "テスト連絡先",
"userAnsweredFlag": 1,
"userAnsweredCount": 2,
"userAnsweredEffectiveCount": 0,
"isFinalCall": 1,
"gender": "male"
}