CreateIntent - 意图-创建

更新时间:
复制 MD 格式

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

调试

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

调试

授权信息

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

请求参数

名称

类型

必填

描述

示例值

AgentKey

string

否

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

ac627989eb4f8a98ed05fd098bbae5_p_beebot_public

InstanceId

string

是

机器人 ID

chatbot-cn-yjzbyrEvqd

IntentDefinition

object

是

意图定义结构体

IntentName

string

是

意图名称

查天气意图

AliasName

string

否

意图别名

查天气意图

SlotInfos

array<object>

否

槽位信息

object

否

滑槽信息

SlotId

string

是

滑槽 ID

fg452dfg3df23

Name

string

是

槽位名

天气

Value

string

是

关联的实体名

天气

Interactive

boolean

否

是否交互式

false

Array

boolean

否

是否数组

false

Encrypt

boolean

否

是否脱敏

false

返回参数

名称

类型

描述

示例值

object

返回信息

IntentId

integer

意图 ID

43546474

RequestId

string

请求 ID

df56gjh5et34g3g3

示例

正常返回示例

JSON格式

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

错误码

HTTP status code

错误码

错误信息

描述

400 BusinessErrorIntent.OutRange The business error Intent is out of range.
400 BusinessErrorIntentName.OutRange The business error IntentName is out of range.
400 BusinessErrorIntentName.Repeat The business error IntentName is repeat.
400 BusinessErrorIntentName.InvalidCharactor The business error IntentName contains invalid charactor.
400 BusinessErrorIntentEntity.NotExists The business error IntentEntity is not exists.

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

变更历史

更多信息,参考变更详情。