Search code examples
watson-conversation

Is there a programmatic way to export intents for Watson Conversation?


I am aware you can go to the Watson Conversation interface, right click on a workspace, and download the JSON of a workspace, which contains the intents, as it says here: Is there any way to export intents for watson conversation?

However, I need to write a program/script to do this automatically. An API method for this would be great, but I did not find any method exposed in the API documentation. My question is different than this, because I could try a workaround and not use the API, like doing a GET to the download link, but I could not deal with the SSO authentication.

How can I download the workspace JSON programmatically?


Solution

  • The /workspaces endpoint was recently announced and might meet your need. Take a look here: https://www.ibm.com/watson/developercloud/conversation/api/v1/#get_workspace Look at EntityExportResponse.