google / chatbase-node

Quickly integrate your Node.js chatbot with Chatbase Analytics
Apache License 2.0
78 stars 24 forks source link

set intent for type="Agent" #9

Open huesoamz opened 7 years ago

huesoamz commented 7 years ago

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