文档

CreateIntent - 意图-创建

新建意图,主要包含意图的meta信息,如:意图名称、意图别名、意图关联词槽信息;不包含意图话术、LGF。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
AgentKeystring

业务空间 key,不设置则访问默认业务空间,key 值在主账号业务管理页面获取

ac627989eb4f8a98ed05fd098bbae5_p_beebot_public
InstanceIdstring

机器人 ID

chatbot-cn-yjzbyrEvqd
IntentDefinitionobject

意图定义结构体

IntentNamestring

意图名称

查天气意图
AliasNamestring

意图别名

查天气意图
SlotInfosobject []

槽位信息

SlotIdstring

滑槽 ID

fg452dfg3df23
Namestring

槽位名

天气
Valuestring

关联的实体名

天气
Interactiveboolean

是否交互式

false
Arrayboolean

是否数组

false
Encryptboolean

是否脱敏

false

返回参数

名称类型描述示例值
object

返回信息

IntentIdlong

意图 ID

43546474
RequestIdstring

请求 ID

df56gjh5et34g3g3

示例

正常返回示例

JSON格式

{
  "IntentId": 43546474,
  "RequestId": "df56gjh5et34g3g3"
}

错误码

HTTP status code错误码错误信息
400BusinessErrorIntent.OutRangeThe business error Intent is out of range.
400BusinessErrorIntentName.OutRangeThe business error IntentName is out of range.
400BusinessErrorIntentName.RepeatThe business error IntentName is repeat.
400400 BusinessErrorIntentName.InvalidCharactorThe business error IntentName contains invalid charactor.
400BusinessErrorIntentEntity.NotExistsThe business error IntentEntity is not exists.

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈