Yes, you can. In your application, write a function that sends a “stop” request to your agent.
function stop_conversation(){ var api_request = new Request('https://api.api.ai/v1/query?v=20150910', {
method: 'POST',
mode: 'cors',
redirect: 'follow',
headers: {
'Authorization': 'Bearer 21f6a5778d484870ad46be4d34ac2eeb',
'content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({
q: 'stop',
lang: 'en',
sessionId: '44628d21-d7a4-47d5-b1c6-a7f851be65fv'
})
});
}
If you use the runtime library , then call Assist('stop');.
...
"" " Google", . " " .
:
data: {
google: {
expect_user_response: false,
}
}
, .