CreateInstance

Updated at:

Creates an intelligent navigation instance, configures the instance name, description, and maximum number of concurrent sessions, and returns the ID of the new instance.

Operation description

Call this operation to create an intelligent navigation instance as the configuration object for a digital worker scenario.

When you integrate with Cloud Call Center, specify the integration source and associated instance by using UnionSource and UnionInstanceId. After a successful call, InstanceId is returned for subsequent API calls.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

voicebot:CreateInstance

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Name

string

Yes

The name of the scenario.

Test scenario

Description

string

No

The description of the scenario. The description can be up to 100 characters in length.

This is a test scenario

Concurrency

integer

Yes

The maximum number of concurrent sessions. The value must be a non-negative integer and cannot exceed the current available concurrency quota.

1

UnionSource

string

No

The integration source of the intelligent navigation. When you integrate with Cloud Call Center, set the value to CCC and specify the associated Cloud Call Center instance by using UnionInstanceId.

CCC

UnionInstanceId

string

No

The instance ID of the integration source. When UnionSource is set to CCC, specify the ID of the Cloud Call Center instance to be associated.

demo-lctms

NluServiceParamsJson

string

No

The parameter settings of the natural language understanding (NLU) service, represented as a JSON character string. The parameters correspond to the type of NLU service used.

{"agentKey":"20791f5f886b4826b3d9b676a029c33d","agentId":"1340201","isCCCAgent":false,"agentName":"Cloud Chatbot Business Workspace 1","agentLlm":true}

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request. You can use the ID to locate and troubleshoot issues.

01A1C878-63EC-50EF-B7A0-024F98B09129

InstanceId

string

The ID of the newly created intelligent navigation scenario.

c28fc549-d88f-4f6e-85ad-a0806e5e39c0

Examples

Success response

JSON format

{
  "RequestId": "9ab43460-c0b9-40e2-8447-48d82c97fc67",
  "InstanceId": "c28fc549-d88f-4f6e-85ad-a0806e5e39c0"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidConcurrency.LimitExceeded The specified Concurrency exceeds the upper limit.
400 InvalidInstanceName.Duplicated The specified InstanceName already exists.
500 InternalError An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.