提供: Bright Pattern Documentation
移動先: 案内、 検索
• English

addInteractionCompletedHandler(コールバック)

完了したインタラクションに関する情報を取得します。

リクエスト

構文

window.bpspat.api.addInteractionCompletedHandler(callback)
callback = function(data) {
}

引数

パラメータ 型 説明
callback 関数(function) APIメソッドのリクエストが完了した際に実行されるJavaScriptメソッドです


レスポンス

レスポンスオブジェクトには、以下のフィールドが含まれる場合があります。

名前 データ型 説明 例
data.item.id 文字列 インタラクションID "123123123"
data.global_id 文字列 グローバルインタラクションID (GIID) "asd234asdf234df"
data.phone_number 文字列 お客様の電話番号 "4151234567"
data.service 文字列 インタラクションを処理するサービスの名前 "Customer Support"
data.screenpop_data 文字列 スクリーンポップに表示される情報 "Case: 123123"
data.disposition 文字列 インタラクションのディスポジション "Product sold"
data.notes 文字列 そのインタラクションに関してエージェントが記録したメモ "Third time calling this week!"
data.recording_url 文字列 録音URL(ある場合) "http://www.exampleURL.com/123456"

例

{
	data.item_id: "123123123";
	data.global_id: "asd234asdf234df"
	data.phone_number: "55511122233"
	data.service: "Customer Support"
	data.screenpop_data: "Case: 123123"
	data.service: "Customer Support";

	data.disposition: "Case resolved";
	data.notes: "good guy";
	data.recording_url: "http://"

}

< 前へ