I know how to use the Watson Assistant API to create a skill, but I also need to create an assistant and add the skill to it. How can I do this with Watson API or SDK?
2 Answers
You are referring to this IBM Watson Assistant REST API. The API is (currently?) limited to some tasks only, including management of sessions, environments and releases.
It is possible to provision Watson Assistant through the Resource Controller API.

- 16,724
- 2
- 28
- 49
You can't create a new Assistant by API, you need to use the GUI from Watson Assistant. Concerning the skills, you could create a new one from API but it is really complex. I would suggest to start by creating a skill manually and then using APIs to handle tasks such as backup, switch, adding entities and so on. Essentially, a skill contains all the entities and intents + dialog + some logics. It's a big object in JSON format that is really complex to manipulate programmatically. This way, the user interface do helps the user in those tasks.

- 730
- 3
- 9
- 23
-
Thanks, I managed to create and update skills by API, but it really seems impossible to create and delete assistants automatically. I ended up needing to create assistants as slots and update related skills to reach my initial goal. Thank you for your help! – Lucas Toledo Faria Sep 06 '22 at 11:45