Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

set intent for type="Agent" #9

Open
huesoamz opened this issue Nov 17, 2017 · 0 comments
Open

set intent for type="Agent" #9

huesoamz opened this issue Nov 17, 2017 · 0 comments

Comments

@huesoamz
Copy link

Hi, The documentation says:

.setIntent('book-flight') // the intent of the sent message (does not have to be set for agent messages)

But in the case of Watson Conversation (IBM tool), the intention its determined by the "Agent" not by the user so..what would happenedd if I do this?:
...
chatbase.setAsTypeAgent();
...
var msg = chatbase.newMessage()
.setMessage(data.output.text.toString())
msg.setIntent('XXX')

Would be broke something? The request was sended

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

No branches or pull requests

1 participant