How to make a long pause in Watson Assistant?
I'm using IBM Watson Assistant for creating a chatbot. I'm using the web interface with the intents, entities and dialog flow|tree (I don't know how it is called, I'm just calling it web interface).
I would like to have one node in the dialog which waits for say 100s and then sends another message to the user but only if the user did not send another message in-between. I can add pause in a node but only a pause of at most 10s is possible. Of course I could add multiple such pause in sequence in a node but that's not so good style. How can I solve this instead to wait 100s and only sending a message afterwards if the user did not send a message during this 100s?
Moreover, I have a pretty linear flow in my chatbot (one large branch in the dialog tree). If the conversation with the chatbot is longer than 10 minutes I would like to stop it and jump out of the branch. I could solve it by storing the current time when the conversation starts and then checking in each node if the time difference is larger than 10 minutes and if so, jumping out. But this is again not good style. How can I solve this more elegant?
ibm-watson watson-conversation
add a comment |
I'm using IBM Watson Assistant for creating a chatbot. I'm using the web interface with the intents, entities and dialog flow|tree (I don't know how it is called, I'm just calling it web interface).
I would like to have one node in the dialog which waits for say 100s and then sends another message to the user but only if the user did not send another message in-between. I can add pause in a node but only a pause of at most 10s is possible. Of course I could add multiple such pause in sequence in a node but that's not so good style. How can I solve this instead to wait 100s and only sending a message afterwards if the user did not send a message during this 100s?
Moreover, I have a pretty linear flow in my chatbot (one large branch in the dialog tree). If the conversation with the chatbot is longer than 10 minutes I would like to stop it and jump out of the branch. I could solve it by storing the current time when the conversation starts and then checking in each node if the time difference is larger than 10 minutes and if so, jumping out. But this is again not good style. How can I solve this more elegant?
ibm-watson watson-conversation
add a comment |
I'm using IBM Watson Assistant for creating a chatbot. I'm using the web interface with the intents, entities and dialog flow|tree (I don't know how it is called, I'm just calling it web interface).
I would like to have one node in the dialog which waits for say 100s and then sends another message to the user but only if the user did not send another message in-between. I can add pause in a node but only a pause of at most 10s is possible. Of course I could add multiple such pause in sequence in a node but that's not so good style. How can I solve this instead to wait 100s and only sending a message afterwards if the user did not send a message during this 100s?
Moreover, I have a pretty linear flow in my chatbot (one large branch in the dialog tree). If the conversation with the chatbot is longer than 10 minutes I would like to stop it and jump out of the branch. I could solve it by storing the current time when the conversation starts and then checking in each node if the time difference is larger than 10 minutes and if so, jumping out. But this is again not good style. How can I solve this more elegant?
ibm-watson watson-conversation
I'm using IBM Watson Assistant for creating a chatbot. I'm using the web interface with the intents, entities and dialog flow|tree (I don't know how it is called, I'm just calling it web interface).
I would like to have one node in the dialog which waits for say 100s and then sends another message to the user but only if the user did not send another message in-between. I can add pause in a node but only a pause of at most 10s is possible. Of course I could add multiple such pause in sequence in a node but that's not so good style. How can I solve this instead to wait 100s and only sending a message afterwards if the user did not send a message during this 100s?
Moreover, I have a pretty linear flow in my chatbot (one large branch in the dialog tree). If the conversation with the chatbot is longer than 10 minutes I would like to stop it and jump out of the branch. I could solve it by storing the current time when the conversation starts and then checking in each node if the time difference is larger than 10 minutes and if so, jumping out. But this is again not good style. How can I solve this more elegant?
ibm-watson watson-conversation
ibm-watson watson-conversation
asked Jan 2 at 20:46
machinerymachinery
1,70942751
1,70942751
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Unfortunately Watson Assistant does not provide this feature. But we have a lot of ways to do that, cause Watson is one API and we have all the back-end to create custom code, for instance.
You can use the last request /message
and create one setInterval
, adding some condition if passed more than since the last request to /message
as you would like to and send some message that you want.
if(inputTiming > 100000) {
response.output.text = 'Hey, are you there?';
return response
}
Timing Events with Javascript
I will directly embedd my chatbot into facebook messenger without a middleware. How can I incorporate your approach into a dialog node in Watson Assistant? I don't know how to use javascript there.
– machinery
Jan 3 at 1:25
For sure you can do that. You can integrate multiples API! You will do something like that and in your Node backend you gonna use the example that I made. One question that I answered and you can follow here and the official tutorial here
– Sayuri Mizuguchi
Jan 3 at 2:34
Obs.: You can use ANY language that can do http requests in your backend. But I do suggest use the Watson Developer Cloud with a lot of official examples for Watson Services.
– Sayuri Mizuguchi
Jan 3 at 2:35
Thank you Sayuri. Perhaps I will use Skype instead of Facebook Messenger. But I think for Skype I can just follow this tutorial: developer.ibm.com/recipes/tutorials/…. Is this correct?
– machinery
Jan 3 at 15:55
Moreover, I would prefer Java or Python over Javascript but I think with Node.js only javascript is possible and I did not find the same tutorial you have linked for Java or Python. But in the end, Javascript should also be fine because I will not use it much.
– machinery
Jan 3 at 15:57
|
show 4 more comments
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012958%2fhow-to-make-a-long-pause-in-watson-assistant%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Unfortunately Watson Assistant does not provide this feature. But we have a lot of ways to do that, cause Watson is one API and we have all the back-end to create custom code, for instance.
You can use the last request /message
and create one setInterval
, adding some condition if passed more than since the last request to /message
as you would like to and send some message that you want.
if(inputTiming > 100000) {
response.output.text = 'Hey, are you there?';
return response
}
Timing Events with Javascript
I will directly embedd my chatbot into facebook messenger without a middleware. How can I incorporate your approach into a dialog node in Watson Assistant? I don't know how to use javascript there.
– machinery
Jan 3 at 1:25
For sure you can do that. You can integrate multiples API! You will do something like that and in your Node backend you gonna use the example that I made. One question that I answered and you can follow here and the official tutorial here
– Sayuri Mizuguchi
Jan 3 at 2:34
Obs.: You can use ANY language that can do http requests in your backend. But I do suggest use the Watson Developer Cloud with a lot of official examples for Watson Services.
– Sayuri Mizuguchi
Jan 3 at 2:35
Thank you Sayuri. Perhaps I will use Skype instead of Facebook Messenger. But I think for Skype I can just follow this tutorial: developer.ibm.com/recipes/tutorials/…. Is this correct?
– machinery
Jan 3 at 15:55
Moreover, I would prefer Java or Python over Javascript but I think with Node.js only javascript is possible and I did not find the same tutorial you have linked for Java or Python. But in the end, Javascript should also be fine because I will not use it much.
– machinery
Jan 3 at 15:57
|
show 4 more comments
Unfortunately Watson Assistant does not provide this feature. But we have a lot of ways to do that, cause Watson is one API and we have all the back-end to create custom code, for instance.
You can use the last request /message
and create one setInterval
, adding some condition if passed more than since the last request to /message
as you would like to and send some message that you want.
if(inputTiming > 100000) {
response.output.text = 'Hey, are you there?';
return response
}
Timing Events with Javascript
I will directly embedd my chatbot into facebook messenger without a middleware. How can I incorporate your approach into a dialog node in Watson Assistant? I don't know how to use javascript there.
– machinery
Jan 3 at 1:25
For sure you can do that. You can integrate multiples API! You will do something like that and in your Node backend you gonna use the example that I made. One question that I answered and you can follow here and the official tutorial here
– Sayuri Mizuguchi
Jan 3 at 2:34
Obs.: You can use ANY language that can do http requests in your backend. But I do suggest use the Watson Developer Cloud with a lot of official examples for Watson Services.
– Sayuri Mizuguchi
Jan 3 at 2:35
Thank you Sayuri. Perhaps I will use Skype instead of Facebook Messenger. But I think for Skype I can just follow this tutorial: developer.ibm.com/recipes/tutorials/…. Is this correct?
– machinery
Jan 3 at 15:55
Moreover, I would prefer Java or Python over Javascript but I think with Node.js only javascript is possible and I did not find the same tutorial you have linked for Java or Python. But in the end, Javascript should also be fine because I will not use it much.
– machinery
Jan 3 at 15:57
|
show 4 more comments
Unfortunately Watson Assistant does not provide this feature. But we have a lot of ways to do that, cause Watson is one API and we have all the back-end to create custom code, for instance.
You can use the last request /message
and create one setInterval
, adding some condition if passed more than since the last request to /message
as you would like to and send some message that you want.
if(inputTiming > 100000) {
response.output.text = 'Hey, are you there?';
return response
}
Timing Events with Javascript
Unfortunately Watson Assistant does not provide this feature. But we have a lot of ways to do that, cause Watson is one API and we have all the back-end to create custom code, for instance.
You can use the last request /message
and create one setInterval
, adding some condition if passed more than since the last request to /message
as you would like to and send some message that you want.
if(inputTiming > 100000) {
response.output.text = 'Hey, are you there?';
return response
}
Timing Events with Javascript
answered Jan 2 at 21:22


Sayuri MizuguchiSayuri Mizuguchi
3,93021334
3,93021334
I will directly embedd my chatbot into facebook messenger without a middleware. How can I incorporate your approach into a dialog node in Watson Assistant? I don't know how to use javascript there.
– machinery
Jan 3 at 1:25
For sure you can do that. You can integrate multiples API! You will do something like that and in your Node backend you gonna use the example that I made. One question that I answered and you can follow here and the official tutorial here
– Sayuri Mizuguchi
Jan 3 at 2:34
Obs.: You can use ANY language that can do http requests in your backend. But I do suggest use the Watson Developer Cloud with a lot of official examples for Watson Services.
– Sayuri Mizuguchi
Jan 3 at 2:35
Thank you Sayuri. Perhaps I will use Skype instead of Facebook Messenger. But I think for Skype I can just follow this tutorial: developer.ibm.com/recipes/tutorials/…. Is this correct?
– machinery
Jan 3 at 15:55
Moreover, I would prefer Java or Python over Javascript but I think with Node.js only javascript is possible and I did not find the same tutorial you have linked for Java or Python. But in the end, Javascript should also be fine because I will not use it much.
– machinery
Jan 3 at 15:57
|
show 4 more comments
I will directly embedd my chatbot into facebook messenger without a middleware. How can I incorporate your approach into a dialog node in Watson Assistant? I don't know how to use javascript there.
– machinery
Jan 3 at 1:25
For sure you can do that. You can integrate multiples API! You will do something like that and in your Node backend you gonna use the example that I made. One question that I answered and you can follow here and the official tutorial here
– Sayuri Mizuguchi
Jan 3 at 2:34
Obs.: You can use ANY language that can do http requests in your backend. But I do suggest use the Watson Developer Cloud with a lot of official examples for Watson Services.
– Sayuri Mizuguchi
Jan 3 at 2:35
Thank you Sayuri. Perhaps I will use Skype instead of Facebook Messenger. But I think for Skype I can just follow this tutorial: developer.ibm.com/recipes/tutorials/…. Is this correct?
– machinery
Jan 3 at 15:55
Moreover, I would prefer Java or Python over Javascript but I think with Node.js only javascript is possible and I did not find the same tutorial you have linked for Java or Python. But in the end, Javascript should also be fine because I will not use it much.
– machinery
Jan 3 at 15:57
I will directly embedd my chatbot into facebook messenger without a middleware. How can I incorporate your approach into a dialog node in Watson Assistant? I don't know how to use javascript there.
– machinery
Jan 3 at 1:25
I will directly embedd my chatbot into facebook messenger without a middleware. How can I incorporate your approach into a dialog node in Watson Assistant? I don't know how to use javascript there.
– machinery
Jan 3 at 1:25
For sure you can do that. You can integrate multiples API! You will do something like that and in your Node backend you gonna use the example that I made. One question that I answered and you can follow here and the official tutorial here
– Sayuri Mizuguchi
Jan 3 at 2:34
For sure you can do that. You can integrate multiples API! You will do something like that and in your Node backend you gonna use the example that I made. One question that I answered and you can follow here and the official tutorial here
– Sayuri Mizuguchi
Jan 3 at 2:34
Obs.: You can use ANY language that can do http requests in your backend. But I do suggest use the Watson Developer Cloud with a lot of official examples for Watson Services.
– Sayuri Mizuguchi
Jan 3 at 2:35
Obs.: You can use ANY language that can do http requests in your backend. But I do suggest use the Watson Developer Cloud with a lot of official examples for Watson Services.
– Sayuri Mizuguchi
Jan 3 at 2:35
Thank you Sayuri. Perhaps I will use Skype instead of Facebook Messenger. But I think for Skype I can just follow this tutorial: developer.ibm.com/recipes/tutorials/…. Is this correct?
– machinery
Jan 3 at 15:55
Thank you Sayuri. Perhaps I will use Skype instead of Facebook Messenger. But I think for Skype I can just follow this tutorial: developer.ibm.com/recipes/tutorials/…. Is this correct?
– machinery
Jan 3 at 15:55
Moreover, I would prefer Java or Python over Javascript but I think with Node.js only javascript is possible and I did not find the same tutorial you have linked for Java or Python. But in the end, Javascript should also be fine because I will not use it much.
– machinery
Jan 3 at 15:57
Moreover, I would prefer Java or Python over Javascript but I think with Node.js only javascript is possible and I did not find the same tutorial you have linked for Java or Python. But in the end, Javascript should also be fine because I will not use it much.
– machinery
Jan 3 at 15:57
|
show 4 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012958%2fhow-to-make-a-long-pause-in-watson-assistant%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown