getPanelAgentChatSummary(params: GetPanelAgentChatSummaryParams)

Requires:
@tuya-miniapp/cloud-api≥1.0.6

Description

Query role chat summary.

Parameters

ParameterTypeRequiredDescription
YesRequest body

Return Value

Type: Promise<string>
GetPanelAgentChatSummaryResult (See type definitions and minituya return parameters for field meanings)

Valid Values

GetPanelAgentChatSummaryParams.bindRoleType
ValueDescriptionSince
0--
1--
2--

Examples

Request example

import { getPanelAgentChatSummary } from '@tuya-miniapp/cloud-api';

const params = {
  devId: 'your_device_id',
  bindRoleType: 0,
  roleId: 'role_12345',
};

getPanelAgentChatSummary(params)
  .then(result => {
    console.log('Chat summary:', result);
  })
  .catch(error => {
    console.error('Failed to get chat summary:', error);
  });

Response example

"The user asked about the weather, and the agent provided an accurate forecast. The user was satisfied with the service."