All Products
Search
Document Center

Chat App Message Service:BeeBotChat

Last Updated:Nov 18, 2024
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Conducts sessions with the bot based on its unique identifier (ID).

Operation description

The ID of the session.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cams:BeeBotChatupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SessionIdstringNo

The title of the related knowledge.

en
UtterancestringYes

The title of the hit question.

659216218162179
IsvCodestringNo

The source of the answer.

ksiekdki39ksks93939
ChatBotInstanceIdstringYes

Indicates whether the answer is in plain text or rich text.

1
KnowledgeIdstringNo

The hit statement.

1
IntentNamestringNo

The source of the answer.

intent
SenderIdstringNo

The information about the slot.

861500000000
SenderNickstringNo

Beijing

nick
PerspectivearrayNo

Beijing

stringNo

The name.

u6Yvizzjba
VendorParamobjectNo

The node name. When AnswerSource is set to BotFramework, a value is returned for this parameter.

{\"skills\":\"chat_search\",\"accessToken\":\"73f4d5c8e8c334d9b538890bca68ac9a\",\"senderStaffId\":\"1697204021326\",\"senderCorpId\":\"dingee291fb2828058b9\"}
CustSpaceIdstringNo

The metadata.

293483938849493

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The passthrough parameter.

90E63D28-E31D-1EB2-8939-A94866411B2O
Codestring

The content of the text message.

OK
Messagestring

Indicates whether the answer is in plain text or rich text.

none
Dataobject

The list of the recommended knowledge. When AnswerType is set to Recommend, the list of the recommended knowledge is returned by the bot for this parameter.

MessageIdstring

The ID of the recommended knowledge.

ab6be8af-cee4-40c3-9919-2ac7461d7d98
SessionIdstring

The source of the recommended answer.

1234
Messagesarray<object>

The source of the recommended answer. When AnswerType is set to Recommend, a value is returned for this parameter.

object
Knowledgeobject

When AnswerType is Knowledge, this field contains the Knowledge object returned by the robot.

HitStatementstring

Hit statement.

provident fund
Summarystring

Introduction to hit problems.

Withdrawal of housing provident fund
RelatedKnowledgesarray<object>

Related knowledge list.

RelatedKnowledgesobject
KnowledgeIdstring

The ID of knowledge associated with knowledge.

735899
Titlestring

The title of related knowledge.

Withdrawal of housing provident fund.
Categorystring

Knowledge category.

provident fund.
Titlestring

Hit the title of the problem.

Withdrawal of housing provident fund.
Contentstring

Hit the content of the problem.

Provident fund withdrawal, please search for provident fund withdrawal on the homepage and submit the form for handling the matter.
AnswerSourcestring

Distinguish answer types.

KnowledgeBase
Idstring

The ID of the hit problem in the knowledge base.

735898
ContentTypestring

Indication of plain/rich text answers.

PLAIN_TEXT
Textobject

When AnswerType is Text, this field contains the Text object returned by the robot.

HitStatementstring

Hit statement.

Check the weather.
DialogNamestring

When AnswerSource is BotFramework, this field returns the name of the dialogue unit.

Example: Checking Weather
AnswerSourcestring

Distinguish answer types.

BotFramework
Slotsarray<object>

Slot information list.

Slotsobject

Slot information.

Valuestring

Specific values.

Beijing
Originstring

Original value.

Beijing
Namestring

Name.

Check weather intentions. city
Hitboolean

Whether it hits.

false
NodeNamestring

When AnswerSource is BotFramework, this field returns the node name.

Example: Checking Weather Check the weather and fill in the slots__ city
IntentNamestring

When AnswerSource is BotFramework, this field returns the intent name.

Check weather intention.
MetaDatastring

Metadata.

[[{\"columnName\":\"name\",\"stringValue\":\"wangshanshan\"}]]
ExternalFlagsobject

When AnswerSource is BotFramework, this field returns a transparent parameter.

Extobject

This field returns transparent parameters.

UserDefinedChatTitlestring

Custom Chat Topic Title.

greet.
Contentstring

The content of the text message.

May I ask where you want to check the weather?
NodeIdstring

When AnswerSource is BotFramework, this field returns the node ID.

1410-c7a72a78.__city
ContentTypestring

Indication of plain/rich text answers.

PLAIN_TEXT
Recommendsarray<object>

When AnswerType is Recommended, this field contains a list of Recommendations returned by the robot.

Recommendobject

Recommended object.

KnowledgeIdstring

Clarify the knowledge ID.

4548
Titlestring

Clarify the content, which may be the entities of graph Q&A, the knowledge titles of knowledge Q&A, or the column values of table Q&A.

Test plain text.
AnswerSourcestring

Clarify the identification of the source.

KNOWLEDGE
AnswerTypestring

The type of this message.

Text
AnswerSourcestring

When AnswerType is Recommended, this field indicates the source of the recommended answer.

KNOWLEDGE
AccessDeniedDetailstring

Access denied for detailed information.

None

Examples

Sample success responses

JSONformat

{
  "RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O",
  "Code": "OK",
  "Message": "none",
  "Data": {
    "MessageId": "ab6be8af-cee4-40c3-9919-2ac7461d7d98",
    "SessionId": "1234",
    "Messages": [
      {
        "Knowledge": {
          "HitStatement": "provident fund",
          "Summary": "Withdrawal of housing provident fund",
          "RelatedKnowledges": [
            {
              "KnowledgeId": "735899",
              "Title": "Withdrawal of housing provident fund."
            }
          ],
          "Category": "provident fund.",
          "Title": "Withdrawal of housing provident fund.",
          "Content": "Provident fund withdrawal, please search for provident fund withdrawal on the homepage and submit the form for handling the matter.\n",
          "AnswerSource": "KnowledgeBase",
          "Id": "735898",
          "ContentType": "PLAIN_TEXT"
        },
        "Text": {
          "HitStatement": "Check the weather.",
          "DialogName": "Example: Checking Weather",
          "AnswerSource": "BotFramework",
          "Slots": [
            {
              "Value": "Beijing",
              "Origin": "Beijing",
              "Name": "Check weather intentions. city\n",
              "Hit": false
            }
          ],
          "NodeName": "Example: Checking Weather Check the weather and fill in the slots__ city\n",
          "IntentName": "Check weather intention.",
          "MetaData": "[[{\\\"columnName\\\":\\\"name\\\",\\\"stringValue\\\":\\\"wangshanshan\\\"}]]\n",
          "ExternalFlags": {
            "test": "test",
            "test2": 1
          },
          "Ext": {
            "test": "test",
            "test2": 1
          },
          "UserDefinedChatTitle": "greet.",
          "Content": "May I ask where you want to check the weather?",
          "NodeId": "1410-c7a72a78.__city",
          "ContentType": "PLAIN_TEXT"
        },
        "Recommends": [
          {
            "KnowledgeId": "4548",
            "Title": "Test plain text.",
            "AnswerSource": "KNOWLEDGE"
          }
        ],
        "AnswerType": "Text",
        "AnswerSource": "KNOWLEDGE"
      }
    ]
  },
  "AccessDeniedDetail": "None"
}

Error codes

HTTP status codeError codeError message
400Product.UnsubscriptYou have not subscribed to the specified product.
400Ram.PermissionDenyYou are not authorized to perform the operation.
400System.LimitControlThe system is under flow control.
400Unknown.ResourceOwnerIdThe resource does not belong to the current user.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-04The Error code has changed. The response structure of the API has changedView Change Details
2022-10-12The Error code has changed. The request parameters of the API has changedView Change Details