Skip to content
This repository was archived by the owner on Oct 16, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions functionals/botpress-nlu/src/providers/dialogflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default class DialogflowProvider extends Provider {
return {
intent,
intents: [intent],
original: detection,
Copy link
Author

@adamreisnz adamreisnz Oct 9, 2018

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.

entities: entities.map(entity => ({
name: entity.name, // usually the entity name, but can be modified
type: entity.name, // when parameter name modified dialogflow doesn't give the original entity name
Expand Down