Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to perform PAUSE operation in directline 3 CONTAINERMODE #128

Open
KBANDANA opened this issue Apr 14, 2022 · 5 comments
Open

Unable to perform PAUSE operation in directline 3 CONTAINERMODE #128

KBANDANA opened this issue Apr 14, 2022 · 5 comments
Assignees
Labels

Comments

@KBANDANA
Copy link

KBANDANA commented Apr 14, 2022

Hi Team,

I want to validate 2 bot responses, second response is coming after sometime. How to validate the second response.
I am using the "CONTAINERMODE": "directline3". Where 2nd response is coming max by 1 min.

I am using the PAUSE statement in below ways, but not working:-

Way :- 1
#bot
Statement1.
PAUSE 40000
Statement2.

Way :- 2
#bot
Statement1.
PAUSE 40000

#bot
Statement2.

I have used waitforbot logic hook also but it is not working.

#bot
Statement1.
WAITFORBOT 40000
Statement2.

Way :- 2
#bot
Statement1.
WAITFORBOT 40000

#bot
Statement2.

How to overcome this issue, please suggest.

@bandanakumari92
Copy link

@codeforequity-at Please help to update on the issue.

@codeforequity-at
Copy link
Owner

What about this ? Should immediately assert the Statement1 response, then wait up to 40 seconds for the Statement2

#bot
Statement1.

#bot
WAITFORBOT 40000
Statement2.

@codeforequity-at
Copy link
Owner

A better place to ask such question is the Botium Forum https://forum.botium.ai/

@bandanakumari92
Copy link

This is about validating the proactive message of chatbot through botium. If we are in some workflow and chatbot is expecting some input through user side, and user has responded within 1 min. Then chatbot will send the proactive message. So I need to validate the proactive messages through botium.
Suppose I am in ticket creation flow, ticket creation form is opened. And user not responded within 1 min then it will send the proactive message.

Tried the below steps but got failed.
Please find the below convo

#me
Cancel

#bot
OK. Thank you.

#me
Create a ticket

#bot
OK, Let's create an IT support request.

#bot
Please provide all required details
CARDS Please provide all required details
FORMS Title|Description|How urgent is your need?
BUTTONS Next|Cancel

#bot
WAITFORBOT 60000
I'm waiting for your response. (This message needs to be validated)

Getting below error:-
Error: Proactive Messages/Line 22: error waiting for bot - Bot did not respond within 10s
########################################
Proactive Messages/Line 22: error waiting for bot - Bot did not respond within 10s
------------ TRANSCRIPT ----------------------------
#me: Cancel
#bot: OK. Thank you.
#me: Create a ticket
#bot: OK, Let's create an IT support request.
#bot: Please provide all required details
CARD(Please provide all required details)
BUTTON(Next | {"action":"Next"})
BUTTON(Cancel | {"action":"Cancel"})
FORM(summary | Title)
FORM(description | Description)
FORM(priority | How urgent is your need?)
at BotiumBindings.wrapBotiumError (node_modules\botium-bindings\src\BotiumBindings.js:77:14)
at C:\botium\node_modules\botium-bindings\src\BotiumBindings.js:134:33

Please help to resolve this.

@bandanakumari92
Copy link

bandanakumari92 commented Apr 20, 2022

Thanks for your response, sure will post in Forum too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants