Skip to main content

GetDialogLog

Retrieves records of real-time conversations and the results of intent analysis.

Operation description

Request description

This API provides conversation records between customers and service agents, as well as the customer intent content obtained through model analysis.

Debug

You can directly run this API in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples. Debug

RAM authorization

The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. Details are as follows:
  • Action: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization in the operation. Details are as follows:
    • For required resource types, an asterisk (*) is added before them.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
dianjin:GetDialogLognone
*All Resources
*
    None
None

Request syntax

POST /{workspaceId}/api/dialog/log HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
workspaceIdstringYes

The workspace ID.

llm-xxxx
bodyobjectNo

The request body.

idstringYes

The id field in the response parameters of the real-time conversation API.

175600129454077743fb03ac54955a4be72ec08f9c216
sessionIdstringYes

The session ID.

1758010668S001w4paq82azm

Response elements

ElementTypeDescriptionExample
object

ResultCode

successboolean

Indicates whether the request is successful.

true
dataTypestring

The data type.

null
timestring

The timestamp.

2024-01-01 00:00:00
errCodestring

The error code.

0
messagestring

The error message.

ok
dataobject

The response data.

recallListstring

The recall list.

## Example:\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:暂时没有了。谢谢。\"时,用户意图为:\"客户想要挂断电话\"\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:哎你好。\"时,用户意图为:\"客户询问来电目的\"\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:我现在财务状况很好,谢谢关心。\"时,用户意图为:\"客户拒绝贷款\"\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:不用了,谢谢,不要再打电话了,谢谢。\"时,用户意图为:\"投诉/退订/不要打电话/骂人\"\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:你好。\"时,用户意图为:\"客户询问来电目的\"
intentionListarray<object>

The intent list.

intentionListobject

The intent.

intentionNamestring

The intent name.

客户明确表示拒绝营销
intentionScriptstring

The intentionScript field contains the reply scripts of the service agent for different user intents.

非常抱歉,给您带来了不好的体验。如您无需再接受我们的官方来电,请回复“我要退订”四个字!
descriptionstring

The description field provides a detailed description of the user's intent.

客户明确表示投诉/退订/不要打电话/骂人等拒绝营销
conversationListstring

The conversationList field records the conversation content.

##客服##:您好,请问是张三先生是吧?\n ##客户##:人工客服\n ##客服##:您好,我是2804,很高兴为您服务!\n ##客服##:您好,请问有什么可以帮到您?\n ##客户##:好的 谢谢\n
hitIntentionListarray<object>

The list of hit intents.

hitIntentionListobject

The hit intent.

intentionNamestring

The intent name.

客户要求转人工
intentionScriptstring

The scripted reply provided based on the customer's intent.

很抱歉,我这里无法直接为您转接,您可以拨打我司客服热线进行咨询。
descriptionstring

The description of the customer's intent.

客户希望与真人接触,不想和AI客服继续对话。
analysisProcessstring

The analysis process. (This field has a value only when the analysis process switch is enabled during the real-time conversation.)

客户回答的内容与提供的意图列表描述均不匹配,没有表达出对账单、还款、天气或其他服务的具体需求或问题。
modelCostTimelong

The model processing time, in milliseconds.

1382
requestIdstring

The request ID.

051EEB18-049A-17FF-A5E0-14A5B127C798
costlong

The processing time.

null

Examples

Success response JSON format
{
  "success": true,
  "dataType": null,
  "time": "2024-01-01 00:00:00",
  "errCode": 0,
  "message": "ok",
  "data": {
    "recallList": "## Example:\\n- 对话内容为:\\\"##客服##:您好,请问有什么可以帮到您?\\n ##客户##:暂时没有了。谢谢。\\\"时,用户意图为:\\\"客户想要挂断电话\\\"\\n- 对话内容为:\\\"##客服##:您好,请问有什么可以帮到您?\\n ##客户##:哎你好。\\\"时,用户意图为:\\\"客户询问来电目的\\\"\\n- 对话内容为:\\\"##客服##:您好,请问有什么可以帮到您?\\n ##客户##:我现在财务状况很好,谢谢关心。\\\"时,用户意图为:\\\"客户拒绝贷款\\\"\\n- 对话内容为:\\\"##客服##:您好,请问有什么可以帮到您?\\n ##客户##:不用了,谢谢,不要再打电话了,谢谢。\\\"时,用户意图为:\\\"投诉/退订/不要打电话/骂人\\\"\\n- 对话内容为:\\\"##客服##:您好,请问有什么可以帮到您?\\n ##客户##:你好。\\\"时,用户意图为:\\\"客户询问来电目的\\\"",
    "intentionList": [
      {
        "intentionName": "客户明确表示拒绝营销",
        "intentionScript": "非常抱歉,给您带来了不好的体验。如您无需再接受我们的官方来电,请回复“我要退订”四个字!",
        "description": "客户明确表示投诉/退订/不要打电话/骂人等拒绝营销"
      }
    ],
    "conversationList": "##客服##:您好,请问是张三先生是吧?\\n ##客户##:人工客服\\n ##客服##:您好,我是2804,很高兴为您服务!\\n ##客服##:您好,请问有什么可以帮到您?\\n ##客户##:好的 谢谢\\n ",
    "hitIntentionList": [
      {
        "intentionName": "客户要求转人工",
        "intentionScript": "很抱歉,我这里无法直接为您转接,您可以拨打我司客服热线进行咨询。\n",
        "description": "客户希望与真人接触,不想和AI客服继续对话。"
      }
    ],
    "analysisProcess": "客户回答的内容与提供的意图列表描述均不匹配,没有表达出对账单、还款、天气或其他服务的具体需求或问题。",
    "modelCostTime": 1382
  },
  "requestId": "051EEB18-049A-17FF-A5E0-14A5B127C798",
  "cost": 0
}

Error codes

Visit the Error Center to view more error codes.

Change history

Change timeChange summaryOperation
No change history yet.