BOT管理
<h5>简要描述</h5>
<ul>
<li>获取Bot信息</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/admin/bot/get</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>int</td>
<td>BOT id</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;id&quot;: 100001,
&quot;name&quot;: &quot;test1&quot;,
&quot;stamp&quot;: &quot;2022-11-25 14:17:56&quot;,
&quot;scene&quot;: &quot;大金融/担保贷款(消金类)/通用场景&quot;,
&quot;wait_timeout&quot;: 5,
&quot;max_duration&quot;: 5,
&quot;branch&quot;: &quot;{\&quot;否定\&quot;: {\&quot;type\&quot;: \&quot;否定\&quot;, \&quot;答法\&quot;: \&quot;没有,没想法,不感兴趣,这个不考虑,不好的,没人要,没考虑,暂时没需要,没需要,不需要,不太需要,暂时不需要,不打算,用不到,找别人\&quot;, \&quot;关键词\&quot;: \&quot;\&quot;}, \&quot;拒绝\&quot;: {\&quot;type\&quot;: \&quot;拒绝\&quot;, \&quot;答法\&quot;: \&quot;没想法,不感兴趣,这个不考虑,不好的,没人要,没考虑,暂时没需要,没需要,不需要,不太需要,暂时不需要,不打算,用不到,找别人\&quot;, \&quot;关键词\&quot;: \&quot;\&quot;}, \&quot;肯定\&quot;: {\&quot;type\&quot;: \&quot;肯定\&quot;, \&quot;答法\&quot;: \&quot;没问题,同意,有兴趣,是的,就是,对的,当然,确定,毫无疑问,可以,可以考虑,需要,有的,请说,考虑,那你说吧,你继续,你继续说,知道,说说看,这个我知道,您介绍一下吧,大体知道,好得,好了,我考虑一下,挺好,不错,ok,OK,然后,还可以,挺好的,有点印象,我考虑,那行,这样子啊,好好,怎么样,什么样,这样啊,大概清楚,对的,你说,了解,知道了,考虑得,听明白了,我在,你说一下,有过,有需要,收到了,收到,我需要,嗯,哎,哦,啊,是,对,行,好,说,有\&quot;, \&quot;关键词\&quot;: \&quot;\&quot;}, \&quot;默认\&quot;: {\&quot;type\&quot;: \&quot;默认\&quot;, \&quot;答法\&quot;: \&quot;XXX\&quot;, \&quot;关键词\&quot;: \&quot;\&quot;}}&quot;,
&quot;priority&quot;: 0,
&quot;remark&quot;: &quot;&quot;
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>BOT ID</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>名称</td>
</tr>
<tr>
<td>stamp</td>
<td>string</td>
<td>更改时间</td>
</tr>
<tr>
<td>scene</td>
<td>string</td>
<td>场景</td>
</tr>
</tbody>
</table>
<h5>简要描述</h5>
<ul>
<li>主流程列表</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/admin/botProcess/grid</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>bot_id</td>
<td>是</td>
<td>int</td>
<td>bot id</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>名称</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: [
{
&quot;uuid&quot;: &quot;a652e5ae-3a57-11ed-af20-3c22fb503294&quot;,
&quot;name&quot;: &quot;开场白&quot;,
&quot;canvas&quot;: null,
&quot;process&quot;: &quot;[{\&quot;name\&quot;: \&quot;普通话术\&quot;, \&quot;type\&quot;: \&quot;play_detect\&quot;, \&quot;uuid\&quot;: \&quot;10\&quot;, \&quot;action\&quot;: {\&quot;否定\&quot;: \&quot;12\&quot;, \&quot;肯定\&quot;: \&quot;11\&quot;}, \&quot;repeat\&quot;: 0, \&quot;phrases\&quot;: [{\&quot;file\&quot;: \&quot;a.wav\&quot;, \&quot;content\&quot;: \&quot;喂,您好, (停顿2s)您好,我这边是专业办理银行信用贷款和抵押贷款的。月息在5,6厘左右,(语气高昂兴奋)请问您最近有没有资金周转的需求啊?~\&quot;, \&quot;duration\&quot;: 11.78}], \&quot;speak_scale\&quot;: 0}, {\&quot;name\&quot;: \&quot;跳转节点\&quot;, \&quot;next\&quot;: {\&quot;method\&quot;: \&quot;next_process\&quot;}, \&quot;type\&quot;: \&quot;jump\&quot;, \&quot;uuid\&quot;: \&quot;11\&quot;, \&quot;phrase\&quot;: {}}, {\&quot;name\&quot;: \&quot;普通话术\&quot;, \&quot;type\&quot;: \&quot;play_detect\&quot;, \&quot;uuid\&quot;: \&quot;12\&quot;, \&quot;action\&quot;: {\&quot;否定\&quot;: \&quot;12\&quot;, \&quot;肯定\&quot;: \&quot;11\&quot;}, \&quot;phrases\&quot;: [{\&quot;file\&quot;: \&quot;b.wav\&quot;, \&quot;content\&quot;: \&quot;您也不要这么快拒绝嘛~我们是专业做银行贷款的,利息是真的很优惠(恳切语气),您也可以先了解一下贷款的市场行情,留个备用啊\&quot;, \&quot;duration\&quot;: 9.47}], \&quot;speak_scale\&quot;: 0}]&quot;,
&quot;sort&quot;: 1,
&quot;bot_id&quot;: 100000
},
{
&quot;uuid&quot;: &quot;6c6c0fa6-60ce-11ed-938f-3c22fb503294&quot;,
&quot;name&quot;: &quot;业务介绍&quot;,
&quot;canvas&quot;: null,
&quot;process&quot;: &quot;[{\&quot;name\&quot;: \&quot;普通话术\&quot;, \&quot;type\&quot;: \&quot;play_detect\&quot;, \&quot;uuid\&quot;: \&quot;363f70a0-6175-11ed-938f-3c22fb503294\&quot;, \&quot;action\&quot;: {\&quot;默认\&quot;: \&quot;a97239d2-6175-11ed-938f-3c22fb503294\&quot;}, \&quot;repeat\&quot;: 0, \&quot;phrases\&quot;: [{\&quot;file\&quot;: \&quot;VLPWDYRGNHDZZIXYUFVLOVKOHRNFIUCX.wav\&quot;, \&quot;content\&quot;: \&quot;我们这边和四大行以及各大商业银行都有合作的,利息低,额度高,下款也快,还可以根据您的需求为您配置最合适的贷款组合。您看这边有需求的话,咱们现在聊一聊可以吗?\&quot;, \&quot;duration\&quot;: 13.84}], \&quot;speak_scale\&quot;: 0}, {\&quot;name\&quot;: \&quot;跳转节点\&quot;, \&quot;next\&quot;: {\&quot;method\&quot;: \&quot;hangup\&quot;}, \&quot;type\&quot;: \&quot;jump\&quot;, \&quot;uuid\&quot;: \&quot;a97239d2-6175-11ed-938f-3c22fb503294\&quot;, \&quot;phrase\&quot;: {\&quot;file\&quot;: \&quot;hangup.wav\&quot;, \&quot;content\&quot;: \&quot;嗯嗯,好的呢,稍后我会让客户经理和您沟通哈,您记得保持电话畅通,这边就先不打扰啦(语气欢快),祝您生活愉快,再见!\&quot;}}]&quot;,
&quot;sort&quot;: 2,
&quot;bot_id&quot;: 100000
}
]
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>string</td>
<td>唯一标识</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>名称</td>
</tr>
<tr>
<td>canvas</td>
<td>string</td>
<td>画布</td>
</tr>
<tr>
<td>process</td>
<td>string</td>
<td>流程</td>
</tr>
<tr>
<td>sort</td>
<td>string</td>
<td>排序</td>
</tr>
<tr>
<td>bot_id</td>
<td>int</td>
<td>bot id</td>
</tr>
</tbody>
</table>
<h5>简要描述</h5>
<ul>
<li>增加分支</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/admin/bot/addSub</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>bot_id</td>
<td>是</td>
<td>int</td>
<td>bot id</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>名称</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>string</td>
<td>分支属性</td>
</tr>
<tr>
<td>answers</td>
<td>是</td>
<td>string</td>
<td>答法</td>
</tr>
<tr>
<td>keywords</td>
<td>是</td>
<td>string</td>
<td>关键词</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>data</td>
<td>int</td>
<td>大于0表示成功</td>
</tr>
</tbody>
</table>
<h5>简要描述</h5>
<ul>
<li>修改分支</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/admin/bot/editSub</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>bot_id</td>
<td>是</td>
<td>int</td>
<td>bot id</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>名称</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>string</td>
<td>分支属性</td>
</tr>
<tr>
<td>answers</td>
<td>是</td>
<td>string</td>
<td>答法</td>
</tr>
<tr>
<td>keywords</td>
<td>是</td>
<td>string</td>
<td>关键词</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>data</td>
<td>int</td>
<td>大于0表示成功</td>
</tr>
</tbody>
</table>
<ul>
<li>删除分支</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/admin/bot/delSub</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>bot_id</td>
<td>是</td>
<td>int</td>
<td>bot id</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>名称</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>data</td>
<td>int</td>
<td>大于0表示成功</td>
</tr>
</tbody>
</table>