Premier
Premier

Reputation: 4228

Multiple answers for a node in IBM Watson Conversation service

How I can specify multiple answers for a specific dialog node? For example, when user asks “What is your name”, my VA should reply “My name is Alexander”, or “You can call me Alexander”, or “Friends call me Alex”. Maybe Conversation service must return a code and application checks the code and choose a random answer from answer's db.

Upvotes: 2

Views: 1263

Answers (1)

Simon O'Doherty
Simon O'Doherty

Reputation: 9349

For the application node that gives the response, select advanced mode and change to this:

{
  "output": {
    "text": {
      "values": [
        "My name is Alexander.",
        "You can call me Alexander", 
        "Friends call me Alex"
      ],
      "selection_policy": "random",
      "append": false
    }
  }
}

Upvotes: 4

Related Questions