Skip to content
This repository was archived by the owner on Oct 16, 2018. It is now read-only.

Expose original response from DialogFlow#30

Open
adamreisnz wants to merge 1 commit into
botpress:masterfrom
adamreisnz:patch-1
Open

Expose original response from DialogFlow#30
adamreisnz wants to merge 1 commit into
botpress:masterfrom
adamreisnz:patch-1

Conversation

@adamreisnz

Copy link
Copy Markdown

We need the original response from DialogFlow for further processing.
This PR exposes that response (detection) in the event.nlu object as original.

We need the original response from DialogFlow for further processing.
This PR exposes that response (`detection`) in the `event.nlu` object as `original`.
@CLAassistant

CLAassistant commented Oct 7, 2018

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@mhjb

mhjb commented Oct 9, 2018

Copy link
Copy Markdown

@slvnperron is this the right repo to PR to?

return {
intent,
intents: [intent],
original: detection,

@adamreisnz adamreisnz Oct 9, 2018

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I used original as the key to store the original response in, but feel free to adjust this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants