Search code examples
watson-conversationwatsonwatson-virtual-agent

Watson Virtual Angent: Find Nearest Store module and Invoke client Workspace


I'm trying to use my Workspace intents in order to recive as an answer the map visualization of the nearest store.

The problem is that: if use Invoke client Workspace how can I insert the data to visualize the map in the dialog flow as an answer to a user request about the nearest store so it is when I use IBM Content?

Thanks for any helps,

Filippo.


Solution

  • You will need to add to your custom dialog the following: (extracted from https://github.com/watson-virtual-agents/virtual-agent-dialog/blob/master/dialog-contract.md?cm_mc_uid=77031076060014712594367&cm_mc_sid_50200000=1477519039)

    {
        "output": {
            "text": "Select your store",
            "layout": {
                "name": "show-locations"
            }
        },
        "context": {
            "request": {
                "args": {
                    "location": "$user_location",
                    "location-type": "$location_type"
                },
                "name": "getStoreList"
            }
        }
    }