Using Input/Display Cards in Watson Assistant

The responses you feed your bot to assist the visitor's query need not be text all the time, you can add rich text too ie., image, select option, slider, links etc.You can add them to the Watson Assistant using the pre-defined SalesIQ script for each action.

SalesIQ Platforms offer various Input and Display Cards to procure inputs and show output to the visitors. 

To add them in Watson Assistant:

  • Login to IBM Cloud, Create or choose an assistant.
  • Navigate to Dialog section, Add Node or choose an existing node. Provide a name and add an indent.
  • In the Then Respond with section, click Options icon and choose Open JSON editor and add the input/display card you would like to provide as a response to the visitor. You should add the response below the Output key.

Note: We also support the Watson rich responses but in Option we support only the values and not the Label. So, make sure to provide a meaningful value. Also, we do not support Pause.

You should use the SalesIq input/display cards under the "output" and "user_defined" keys for them to work. If you're using the cards in a fresh editor, then you can use the format given below. If you're including the code in an existing that already has a user_defined  key, then you can remove the user_defined here and add below in the exisitng one. 

For Example:

{
  "output": {
    "generic": [
      {
        "values": [
          {
            "text": "operator forward"
          }
        ],
        "response_type": "text",
        "selection_policy": "multiline"
      }
    ],
    "user_defined": {
      "zohosalesiq": {
        "action": "forward",
        "operators": [
          "jane\\@zylker.com",
          "michee\\@zylker.com",
          "vinny\\@zylker.com"
        ]
      }
    }
  }
}

 

Note: If your using the Operator Forward option, on adding the operator's email address then the domain of the address gets truncated by Watson. The truncation happens on using the special characters $ and @ in a word. In order to prevent that you will have to add the ' \\ ' before the domain name eg: " tricia \\ @zylker.com ".