The ALIYUN::AppFlow::ChatbotModel is used to create a chatbot model.
Syntax
{
"Type": "ALIYUN::AppFlow::ChatbotModel",
"Properties": {
"ChatbotId": String,
"ModelActionId": String,
"ModelId": String,
"Parameters": Map,
"Status": String,
"UserAuthConfigId": String
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
ChatbotId | String | Yes | No | The ID of the chatbot. | None. |
ModelActionId | String | No | Yes | The ID of the model operation. | None. |
ModelId | String | No | No | The ID of the model. | None. |
Parameters | Map | No | Yes | The parameters of the model. | None. |
Status | String | No | Yes | The status of the model. | Valid values:
|
UserAuthConfigId | String | No | Yes | The ID of the user identity verification configuration. | None. |
Return value
Fn::GetAtt
ChatbotModelId: the ID of the chatbot model.
Example
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ChatbotId:
Type: String
Description:
en: The ID of the chatbot.
Required: true
ModelId:
Type: String
Description:
en: The ID of the model.
Required: false
Resources:
ChatbotModel:
Type: ALIYUN::AppFlow::ChatbotModel
Properties:
ChatbotId:
Ref: ChatbotId
ModelId:
Ref: ModelId
Outputs:
ChatbotModelId:
Description: The ID of the chatbot model.
Value:
Fn::GetAtt:
- ChatbotModel
- ChatbotModelId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ChatbotId": {
"Type": "String",
"Description": {
"en": "The ID of the chatbot."
},
"Required": true
},
"ModelId": {
"Type": "String",
"Description": {
"en": "The ID of the model."
},
"Required": false
}
},
"Resources": {
"ChatbotModel": {
"Type": "ALIYUN::AppFlow::ChatbotModel",
"Properties": {
"ChatbotId": {
"Ref": "ChatbotId"
},
"ModelId": {
"Ref": "ModelId"
}
}
}
},
"Outputs": {
"ChatbotModelId": {
"Description": "The ID of the chatbot model.",
"Value": {
"Fn::GetAtt": [
"ChatbotModel",
"ChatbotModelId"
]
}
}
}
}