Brak opisu

IVR_Auto.xml 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ivr>
  3. <flow Name="IVR_Auto" Type="normal" MatchedNum="." MatchedLine="|-1|" Concurrency="1">
  4. <cell Name="CELL_START" Pos="1" Next="2" Note="开始节点" />
  5. <!--
  6. exec P_OptCallRecords 'tel','callid',type,bustype,mydkey,'recfile'
  7. tel:来电号码%[CallerID]
  8. callid:中间件定义%[CallID]
  9. typD:执行类型:1.插入通话记录;2.更新挂机时间;3.更新排队开始时间;4.插入留言;5.更新满意度
  10. bustypD:业务选择,用于需要有按键选择业务按键值
  11. mydkey:满意度按键值,1满意,2一般,3不满意
  12. recfilD:留言的录音文件:%[CallID]_%[CallerID]_%[StartTime].wav
  13. groupcode:坐席组编号
  14. 插入通话记录示例:exec P_OptCallRecords '%[CallerID]','%[CallID]',1,0,1,'','KFZ'
  15. -->
  16. <cell Name="CELL_BRANCH" Pos="2" Var="CalleeID" DefaultPos="1010" Note="首次分支分支节点">
  17. <Branch Value="8001" Pos="201" /><!--客服组正常流程:黑名单-节假日-坐席排队-->
  18. <Branch Value="6800" Pos="202" /><!--市场组直接转坐席-->
  19. <Branch Value="13811115000" Pos="603" />
  20. </cell>
  21. <cell Name="CELL_SQL" Pos="201" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr="exec P_OptCallRecords '%[CallerID]','%[CallID]',1,0,'0','','KFZ' "
  22. IsSaved="no" SuccessPos="3" FailPos="3" Note="插入通话记录-客服组" />
  23. <cell Name="CELL_SQL" Pos="202" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr="exec P_OptCallRecords '%[CallerID]','%[CallID]',1,0,'0','','SCZ' "
  24. IsSaved="no" SuccessPos="3" FailPos="3" Note="插入通话记录-市场组" />
  25. <cell Name="CELL_DEFINEVAR" Pos="3" Next="4" Note="定义变量节点">
  26. <DefVar VarType="1" VarName="AgentNo" VarVal="0" />
  27. <DefVar VarType="1" VarName="AgentExtNo" VarVal="0" />
  28. <DefVar VarType="1" VarName="KeyGroup" VarVal="0" /><!--坐席组按键值-->
  29. <DefVar VarType="1" VarName="GroupID" VarVal="0" /><!--通过坐席组按键值 获取相应的坐席组ID-->
  30. <DefVar VarType="1" VarName="Key" VarVal="0" />
  31. <DefVar VarType="1" VarName="BlackListVerify" VarVal="0" />
  32. <DefVar VarType="1" VarName="HolidayVerify" VarVal="0" />
  33. <DefVar VarType="1" VarName="zbdh" VarVal="0" />
  34. </cell>
  35. <cell Name="CELL_BRANCH" Pos="4" Var="CalleeID" DefaultPos="104" Note="流程不同分支节点">
  36. <Branch Value="8001" Pos="104" /><!--客服组正常流程:黑名单-节假日-坐席排队-->
  37. <Branch Value="6800" Pos="603" /><!--市场组直接转坐席-->
  38. <Branch Value="13811115000" Pos="104" />
  39. </cell>
  40. <!--黑名单-->
  41. <cell Name="CELL_SQL" Pos="104" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr="exec P_GetBlacklist '%[CallerID]','%[CallID]' " IsSaved="yes" SuccessPos="5" FailPos="5" Note="读取黑名单" />
  42. <cell Name="CELL_RECORDSET" Pos="5" LPos="6" EPos="6" GPos="6" Note="取黑名单结果">
  43. <Map Var="BlackListVerify" />
  44. </cell>
  45. <cell Name="CELL_COMPARE" Pos="6" Data1Type="2" Data2Type="1" Data3Type="1" Data1="BlackListVerify" Data2="0" Data3="" VarType="1" CompareType="2" TruePos="26" FalsePos="8" Note="判断黑名单" />
  46. <!--黑名单提示音-->
  47. <cell Name="CELL_AUDIODTMF" Pos="26" PlayType="2" ContentType="1" Content="E:\Midware\wav\黑名单提示音.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50"
  48. TTSEngine="0" StopWhenDtmf="2" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="" SuccessPos="25" FailPos="24" HangupPos="24" Note="黑名单提示音" />
  49. <!--黑名单提示音-->
  50. <!--黑名单-->
  51. <!--欢迎词-->
  52. <!-- <cell Name="CELL_AUDIODTMF" Pos="12" PlayType="2" ContentType="1" Content="E:\Midware\wav\欢迎词.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="2" MaxKeyCount="1" KeyPressInterval="0" FinishKey="#" KeyVar="" SuccessPos="8" FailPos="24" HangupPos="24" Note="放欢迎词" /> -->
  53. <!--欢迎词-->
  54. <!--节假日-->
  55. <!--判断是否加班或节假日,是放节假日音后挂机,否转坐席-->
  56. <cell Name="CELL_SQL" Pos="8" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr="exec P_GetHolidays" IsSaved="yes" SuccessPos="9" FailPos="603" Note="节假日查询" />
  57. <cell Name="CELL_RECORDSET" Pos="9" LPos="10" EPos="10" GPos="10" Note="取节假日结果">
  58. <Map Var="HolidayVerify" />
  59. </cell>
  60. <cell Name="CELL_COMPARE" Pos="10" Data1Type="2" Data2Type="1" Data3Type="1" Data1="HolidayVerify" Data2="0" Data3="" VarType="1" CompareType="2" TruePos="603" FalsePos="29" Note="判断节假日" />
  61. <cell Name="CELL_AUDIODTMF" Pos="11" PlayType="2" ContentType="1" Content="E:\Midware\wav\假期提示音.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="" SuccessPos="24" FailPos="24" HangupPos="24" Note="放节假日音" />
  62. <!--节假日-->
  63. <!--排队,转坐席-->
  64. <cell Name="CELL_SQL" Pos="603" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr="exec P_GetSeatGroup '%[CallerID]','%[CalleeID]'"
  65. IsSaved="yes" SuccessPos="604" FailPos="24" Note="获取坐席组ID" />
  66. <cell Name="CELL_RECORDSET" Pos="604" LPos="501" EPos="501" GPos="501" Note="获取坐席组ID结果">
  67. <Map Var="GroupID" />
  68. </cell>
  69. <cell Name="CELL_SQL" Pos="501" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr=" exec P_OptCallRecords '%[CallerID]','%[CallID]',3,%[KeyGroup],'0','','' " IsSaved="no" SuccessPos="13" FailPos="13" Note="更新排队开始时间" />
  70. <!--坐席排队时,没有登录坐席直接转值班电话,无空闲坐席转坐席全忙放音,有空闲坐席继续播报-->
  71. <!--Strategy:座席分配策略,1循环接听、2最大空闲接听、3最少接听接听、4指定坐席接听,指定多座席时,坐席工号之间用‘|’分隔,坐席数不要超过4个。-->
  72. <cell Name="CELL_BRANCH" Pos="13" Var="CalleeID" DefaultPos="1013" Note="排队分支节点">
  73. <Branch Value="8001" Pos="1013" /><!--客服组-->
  74. <Branch Value="6800" Pos="1014" /><!--市场组-->
  75. <Branch Value="13811115000" Pos="1013" />
  76. </cell>
  77. <cell Name="CELL_QUEUE" Pos="1013" Strategy="1" VipLevelType="1" VipLevel="0" GroupType="2" Group="GroupID" AgentVar="AgentNo" ExtenVar="AgentExtNo"
  78. NoAgentPos="29" NoFreePos="14" SuccessPos="31" HangupPos="24" Note="排队节点" />
  79. <cell Name="CELL_QUEUE" Pos="1014" Strategy="1" VipLevelType="1" VipLevel="0" GroupType="2" Group="GroupID" AgentVar="AgentNo" ExtenVar="AgentExtNo"
  80. NoAgentPos="29" NoFreePos="14" SuccessPos="31" HangupPos="24" Note="排队节点-sc" />
  81. <cell Name="CELL_AUDIODTMF" Pos="1015" PlayType="2" ContentType="1" Content="E:\Midware\wav\嘟嘟无人接听.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="" SuccessPos="24" FailPos="24" HangupPos="24" Note="放节假日音-sc" />
  82. <cell Name="CELL_AUDIODTMF" Pos="14" PlayType="1" ContentType="1" Content="E:\Midware\wav\坐席全忙.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50"
  83. TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="Key" SuccessPos="15" FailPos="24" HangupPos="24" Note="坐席全忙放音" />
  84. <cell Name="CELL_BRANCH" Pos="15" Var="Key" DefaultPos="14" Note="分支节点">
  85. <Branch Value="1" Pos="16" /><!--1.继续等待-->
  86. </cell>
  87. <cell Name="CELL_CONTINUEQUEUE" Pos="16" Agent="AgentNo" Exten="AgentExtNo" Audio="E:\Midware\wav\保持音.wav" Timeout="60" SuccessPos="18" HangupPos="24" TimeoutPos="14" Note="继续排队节点" />
  88. <cell Name="CELL_CANCELQUEUE" Pos="17" Reason="等烦了" Next="24" Note="放弃排队节点" />
  89. <cell Name="CELL_AUDIODTMF" Pos="18" PlayType="2" ContentType="1" Content="E:\Midware\wav\通话录音提示音.wav" TTSNumMode="1"
  90. TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="2" MaxKeyCount="1" KeyPressInterval="0" FinishKey="#" KeyVar="" SuccessPos="31" FailPos="24" HangupPos="24" Note="转接电话提示录音" />
  91. <cell Name="CELL_AUDIODTMF" Pos="31" PlayType="2" ContentType="2" Content=" `vs40 您好, `dig`vs30 %[AgentNo] `vs50 号客服为您服务." TTSNumMode="1" TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="2" MaxKeyCount="1" KeyPressInterval="0" FinishKey="#" KeyVar="" SuccessPos="19" FailPos="24" HangupPos="24" Note="播报工号" />
  92. <cell Name="CELL_TURNAGENT" Pos="19" Exten="AgentExtNo" SuccessPos="25" FailPos="17" HangupPos="24" Note="转座席节点">
  93. <BandData Var="CallID" />
  94. </cell>
  95. <!--排队,转坐席-->
  96. <!--转值班电话-->
  97. <cell Name="CELL_AUDIODTMF" Pos="29" PlayType="2" ContentType="1" Content="E:\Midware\wav\转值班电话提示.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="2" MaxKeyCount="1" KeyPressInterval="0" FinishKey="#" KeyVar="" SuccessPos="701" FailPos="24" HangupPos="24" Note="转值班电话提示音" />
  98. <cell Name="CELL_BRANCH" Pos="701" Var="CalleeID" DefaultPos="1013" Note="排队分支节点">
  99. <Branch Value="8001" Pos="7011" /><!--客服组-->
  100. <Branch Value="6800" Pos="7012" /><!--市场组-->
  101. </cell>
  102. <cell Name="CELL_SQL" Pos="7011" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr="EXEC P_GetZBDH '%[CallID]',0 " IsSaved="yes" SuccessPos="702" FailPos="24" Note="获取值班电话-客服组" />
  103. <cell Name="CELL_SQL" Pos="7012" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr="EXEC P_GetZBDH '%[CallID]',1 " IsSaved="yes" SuccessPos="702" FailPos="24" Note="获取值班电话-市场组" />
  104. <cell Name="CELL_RECORDSET" Pos="702" LPos="30" EPos="30" GPos="30" Note="获取值班电话结果">
  105. <Map Var="zbdh" />
  106. </cell>
  107. <cell Name="CELL_TRANSFEROUT" Pos="30" CalleeNumType="2" CalleeNum="zbdh" Timeout="60" SuccessPos="25" FailPos="24" Note="转值班电话" />
  108. <!--转值班电话-->
  109. <!---->
  110. <cell Name="CELL_SQL" Pos="24" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_Anto_20180709;Data Source=192.168.5.8" SqlStr=" exec P_OptCallRecords '%[CallerID]','%[CallID]',2,0,'0','','' " IsSaved="no"
  111. SuccessPos="204" FailPos="25" Note="更新挂机时间" />
  112. <cell Name="CELL_HANGUP" Pos="204" Next="25" Note="挂机节点" />
  113. <cell Name="CELL_END" Pos="25" Note="结束节点" />
  114. <!---->
  115. </flow>
  116. </ivr>