-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Brazil] integrate with Dialogflow CX's 'partial response' fuctionality #852
Comments
Steve will check with google about an updated version of the nodejs module for the API. If we go this route, we will need to refactor all communication between our app and the CX.agent |
@Shailesh351 can you look at this and concur. |
@AlexanderKanakis we will go with your current strategy into production for now...... please create the other neccessary PRs to make this work, and document that here. Also please document the effects of large responses vs. small, and how you are suggesting we use partial responses vs. normal responses on the CX.agent |
@AlexanderKanakis please document you new strategy here. Include any gottchas and weird errors.... |
PRs:
Instructions:Run |
@AlexanderKanakis not sure I understand the instruction to run |
@ear-dev For some reason @rocket.chat/apps-engine may not update properly if updated through the |
This seems odd to me...... if it's part of package.json, and one were to just delete the current node_modules directory, and the current package-lock.json, and run I see that your dependency changes in the related PRs here, are adding changes to package-lock.json, but not to package.json, and I'm not sure I understand how that is supposed to work. i.e. if something is in package-lock.json, but it is not represented in package.json, that should remove the entries in package-lock.json when we run npm install? Or, are those sub-dependencies from something that is described in package.json? |
Oops, I did not specify. They are dependencies that come from @rocket.chat/apps-engine. |
|
@Shailesh351 can you review these three PRs please and test it out when you have a chance? FYI - we have a test CX bot that includes a test for partial responses.... I'm working on providing you all the config.json that will point to that test agent. |
@AlexanderKanakis @Shailesh351 it sounds like we need to adjust the current blackout window for partial responses. 'if partial_respnse: wait for last response' |
NOTE: blackout_window in effect until the final response from CX. queue_window still applies as designed for events. blackout_window == drop all visitor messages please document which payloads can be processed by rocketchat during the middle of a series of partial responses. MOTIVATION: we want to protect against CX developer user error. |
Custom Payloads:Partial responses will not be able to handle payloads that require sending additional requests to the DF agent for any non-FINAL responses (the final message of a stream). Currently supported Custom Payloads:
|
@Shailesh351 @AlexanderKanakis I tested this out against our testbot test case and it worked well! Nice! @Shailesh351 can you please have a look at all three relevant PRs in this issue and review/approve when you have some time? Thanks! This will ultimately replace our use of 0 second timers..... |
Alexander has described the issues involved in issue number 809..... use this as starting point for discussion.
The text was updated successfully, but these errors were encountered: