Skip to content

Conversation

@AlexanderKanakis
Copy link
Collaborator

@AlexanderKanakis AlexanderKanakis commented Jan 27, 2022

Instructions

Make sure that the correct version of apps-engine is installed by running npm install @rocket.chat/apps-dialogflow

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:

  1. df_set_timeout
  2. change_language_code
  3. drop_queue

{
"devDependencies": {
"@rocket.chat/apps-engine": "WideChat/Rocket.Chat.Apps-engine.git#v1.29.2",
"@rocket.chat/apps-engine": "git+https://github.com/WideChat/Rocket.Chat.Apps-engine.git#dialogflow_branch",
Copy link

@ear-dev ear-dev Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: this is fine for testing, but we need to be careful that we revert or fix this before we merge.

"js-tokens": "^4.0.0"
}
},
"@google-cloud/dialogflow-cx": {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do all of these things need to also go into package.json?

I'm seeing this error when I try to deploy with rc-apps:
Error: Cannot find module '@rocket.chat/apps-engine/node_modules/@google-cloud/dialogflow-cx'

Copy link
Collaborator Author

@AlexanderKanakis AlexanderKanakis Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not found a way to remove that error. If I point the app to the correct location of the module, the app will not deploy.

With the current set-up we get the error, but the app can deploy.

@ear-dev ear-dev requested a review from Shailesh351 February 11, 2022 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants