Updated on 2025-05-08 GMT+08:00

CBS

The CBS connector is used to connect to Huawei Cloud CBS QABot.

Conversational Bot Service (CBS) QABot enables enterprises to rapidly build, deploy, and manage intelligent Q&A systems. It supports various scenarios, including automated post-sales support, agent assistance, and pre-sales consultation.

Creating a CBS Connection

  1. Log in to the new ROMA Connect console.
  2. In the navigation pane on the left, choose Connector. On the page displayed, click New Connection.
  3. Select the CBS connector.
  4. In the dialog box displayed, configure the connector and click OK.

    Parameter

    Description

    Name

    Enter the connector instance name.

    App Key

    Access key ID (AK) of the current account. Obtain the AK by referring to Access Keys. If an AK/SK pair has been generated, find the downloaded AK/SK file (such as credentials.csv).

    App Secret

    Secret access key (SK) of the current account. Obtain the SK by referring to Access Keys. If an AK/SK pair has been generated, find the downloaded AK/SK file (such as credentials.csv).

    Description

    Enter the description of the connector to identify it.

Action

  • Obtaining video details
  • Deleting a video
  • Updating the video name
  • Creating a video
  • Obtaining the video list
  • Closing a session
  • Processing a session
  • Enabling a session
  • Keyword statistics
  • Q&A statistics
  • Access statistics
  • QABot sessions

Configuration Parameters

Table 1 Obtaining video details

Parameter

Description

project_id

Project ID, which is used for resource isolation.

video_id

Video ID.

region_id

Region ID.

Table 2 Deleting a video

Parameter

Description

project_id

Project ID, which is used for resource isolation.

video_id

Video ID.

region_id

Region ID.

Table 3 Updating the video name

Parameter

Description

project_id

Project ID, which is used for resource isolation.

video_id

Video ID.

region_id

Region ID.

name

Video name.

Table 4 Creating a video

Parameter

Description

project_id

Project ID, which is used for resource isolation.

region_id

Region ID.

name

Video name.

Table 5 Obtaining the video list

Parameter

Description

project_id

Project ID, which is used for resource isolation.

region_id

Region ID.

limit

Range: ≥ 1. Default: 10.

name

Name. Length: < 63 characters.

offset

Range: ≥ 0. Default: 0.

Table 6 Closing a session

Parameter

Description

project_id

Project ID, which is used for resource isolation.

qabot_id

Robot identifier.

session_id

Session ID.

region_id

Region ID.

Table 7 Processing a session

Parameter

Description

project_id

Project ID, which is used for resource isolation.

qabot_id

Robot identifier.

session_id

Session ID.

region_id

Region ID.

extends

Extended parameter.

tag_ids

List of answer tag IDs to be matched.

should

List of answer tag IDs; at least one must be included.

domain_ids

Domain list. Multiple domains are separated by semicolons (;). If certain domains are specified, answers are matched from these domains. If no domains are specified, answers are matched from the entire knowledge base of the user.

Currently, a maximum of 10 domains are supported.

source

Source of a question, which can be customized and is displayed in Q&A logs.

chat_enable

  • true (default): Use chit-chat.
  • false: Not use chit-chat.

user_id

User ID, which is used to identify a user in logs. The value can be any string.

question

User input.

Table 8 Enabling a session

Parameter

Description

project_id

Project ID, which is used for resource isolation.

qabot_id

Robot identifier.

region_id

Region ID.

Table 9 Keyword statistics

Parameter

Description

project_id

Project ID, which is used for resource isolation.

qabot_id

Robot identifier.

region_id

Region ID.

start_time

Start time (UTC) of the query. The value is a long integer. Default: 0.

end_time

End time (UTC) of the query. The value is a long integer. Default: milliseconds of the current time.

top

Maximum number of keywords that can be displayed. Default: 10. Range: 0–50.

Table 10 Q&A statistics

Parameter

Description

project_id

Project ID, which is used for resource isolation.

qabot_id

Robot identifier.

region_id

Region ID.

start_time

Start time (UTC) of the query. The value is a long integer. Default: 0.

end_time

End time (UTC) of the query. The value is a long integer. Default: milliseconds of the current time.

interval

Statistical period. Options: month, week, and day.

time_zone

Time zone of the request. For example, the time zone of China (GMT+08:00) is +08:00 and that of the United States (GMT-05:00) is -05:00. Default: UTC.

domain

Domain.

Table 11 Access statistics

Parameter

Description

project_id

Project ID, which is used for resource isolation.

qabot_id

Robot identifier.

region_id

Region ID.

start_time

Start time (UTC) of the query. The value is a long integer. Default: 0.

end_time

End time (UTC) of the query. The value is a long integer. Default: milliseconds of the current time.

interval

Statistical period. Options: month, week, and day.

time_zone

domain

Time zone of the request. For example, the time zone of China (GMT+08:00) is +08:00 and that of the United States (GMT-05:00) is -05:00. Default: UTC.

Domain.

Table 12 QABot sessions

Parameter

Description

project_id

Project ID, which is used for resource isolation.

qabot_id

Robot identifier.

region_id

Region ID.

extends

Extended parameter.

tag_ids

List of answer tag IDs to be matched.

should

List of answer tag IDs; at least one must be included.

domain_ids

Domain list. Multiple domains are separated by semicolons (;). If certain domains are specified, answers are matched from these domains. If no domains are specified, answers are matched from the entire knowledge base of the user.

Currently, a maximum of 10 domains are supported.

source

Source of a question, which can be customized and is displayed in Q&A logs.

return_all_answers

Whether to return all types of answers.

  • true: Return all types of answers.
  • false: Not return all types of answers.

chat_enable

Whether to enable chit-chat.

  • true (default): Use chit-chat.
  • false: Not use chit-chat.

user_id

User ID, which is used to identify a user in logs. The value can be any string.

question

User input.

session_id

Session ID, in UUID format. Example: c04e6f7b-61d7-4a2d-a0c8-f9ecd2f62359.

Each time a session is started, the bot creates a session ID. If the ID is passed to the next request, the current session will continue. The validity period of each session is 2 minutes. If the transferred session ID has expired or is empty, the bot creates a new session ID (this may take some time).

query_types

Q&A types:

  • 0: knowledge base
  • 1: skill
  • 2: chat-chit
  • 3: graph
  • 4: document
  • 5: table

(Optional) If this parameter is left blank, the default bot integration policy is used.