Skip to content

Accessing the state property of system object in the skills object of context variable in ibm watson assistant v2 api #257

@developer-bz

Description

@developer-bz

This is not an issue, rather something informative.
I could read from the ibm watson assistant v2 api documentation that there is a state property which provides information about the current conversation state. It also says that it is an encoded string. Is there any way i can decode this string and get the information on the current conversation state? If yes, please provide the steps to decode it.

Below is the format of the json object where state property is present,

context: {
  skills: {
    ['main skill']: {
        user_defined: {},
        system: {
          state: "eyJzZXNzaW9uX2lkIjoiNGNlMTlksomerandomstringBmLTlhZWMtNTBjYjcxM2I4YjkzIiwic2tpbGxfcmVmZXJlbmNlIjoibWFpbiBza2lsbCI...................................................."
        }
      }
    }
  }

Also find the link to the documentation, https://cloud.ibm.com/apidocs/assistant/assistant-v2#send-user-input-to-assistant

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions