Skillset Abilitys

Create Skillset Ability

Create ability

post
/v1/skillset/{skillsetId}/ability/create

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

skillsetIdstring* Required

Request Body * Required

Request Body Schema: application/json

namestring

The associated name

descriptionstring

The associated description

metaobject

Meta data information

secretIdstring

The ID of the secret associated with the ability

botIdstring

The ID of the bot associated with the ability

instructionstring

The instruction of the ability

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.skillset.ability.create(

skillsetId,
{
"name":"string",
"description":"string",
"meta":"object",
"secretId":"string",
"botId":"string",
"instruction":"string"
}
)
{
"id":"string"
}
The ability was created successfully