本页面包含所有自定义界面模块事件的 API 文档。
活动详情
事件名称 | 载荷 | 说明 |
---|---|---|
active-conversation-selected | ActiveConversationSelectedPayload | 在选择对话时分派。 |
smart-reply-selected | SmartReplySelection | 在选择智能回复条状标签时分派。 |
smart-reply-follow-up-suggestions-received | SmartReplyFollowUpSuggestionsReceivedPayload | 在收到智能回复跟进建议后发送。 |
conversation-details-received | ConversationDetailsReceivedPayload | 在从 SDK 收到对话详情(包括客服人员和客户信息)时调度。 |
conversation-initialization-requested | ConversationInitializationRequestedPayload | 在应初始化 Dialogflow 对话时调度。 |
conversation-initialized | ConversationInitializedPayload | 在 Dialogflow 对话已初始化时分派。 |
conversation-started | ConversationStartedPayload | 在 Dialogflow 对话开始时分派。 |
conversation-completed | ConversationCompletedPayload | 在 Dialogflow 对话结束时分派。 |
conversation-profile-requested | ConversationProfileRequestedPayload | 在提取 Dialogflow 对话资料时调度。 |
conversation-profile-received | ConversationProfileReceivedPayload | 在收到 Dialogflow 对话个人资料后调度。 |
conversation-model-requested | ConversationModelRequestedPayload | 在提取 Dialogflow 对话模型时调度。 |
conversation-model-received | ConversationModelReceivedPayload | 在收到 Dialogflow 对话模型后调度。 |
new-message-received | NewMessageReceivedPayload | 在收到新的转写消息时分派。 |
analyze-content-requested | AnalyzeContentRequestDetails | 应发出 AnalyzeContent 请求时调度。 |
analyze-content-response-received | AnalyzeContentResponseReceivedPayload | 在收到新的 AnalyzeContentResponse 时调度。 |
conversation-summarization-requested | ConversationSummarizationRequestedEventPayload | 请求了对话摘要。 |
stateless-conversation-summarization-requested | StatelessConversationSummarizationRequestedPayload | 请求了无状态对话摘要。 |
stateless-conversation-summarization-response-received | StatelessConversationSummarizationResponseReceivedPayload | 收到了无状态对话总结响应。 |
conversation-summarization-received | ConversationSummarizationReceivedPayload | 收到对话摘要。 |
dialogflow-api-error | DialogflowApiErrorPayload | 遇到了 Dialogflow API 错误。 |
dialogflow-api-authentication-error | void | 遇到 Dialogflow API 身份验证 (401) 错误。 |
answer-record-requested | AnswerRecordRequestedPayload | 请求了答案记录。 |
answer-record-received | AnswerRecordReceivedPayload | 收到了回答记录。 |
patch-answer-record-requested | PatchAnswerRecordRequestedPayload | 系统已请求补丁答案记录。 |
patch-answer-record-received | PatchAnswerRecordReceivedPayload | 已收到补丁答案记录请求。 |
article-search-requested | ArticleSearchRequestedPayload | 已请求搜索报道。 |
article-search-response-received | ArticleSearchResponseReceivedPayload | 收到了文章搜索结果。 |
dark-mode-toggled | DarkModeToggledPayload | 在代理桌面版中切换深色模式。 |
snackbar-notification-requested | SnackbarNotificationPayload | 系统已请求显示动作条通知。 |
live-person-connector-initialized | void | LivePerson 连接器已初始化。 |
genesys-cloud-connector-initialized | void | Genesys Cloud 连接器已初始化。 |
api-connector-initialized | void | API 连接器已初始化。 |
event-based-connector-initialized | void | 基于事件的连接器已初始化。 |
live-person-connector-initialization-failed | void | LivePerson 连接器初始化失败。 |
genesys-cloud-connector-initialization-failed | void | Genesys Cloud 连接器初始化失败。 |
genesys-cloud-connector-access-token-received | GenesysCloudConnectorAccessTokenReceivedPayload | 收到 Genesys Cloud 连接器访问令牌。 |
api-connector-initialization-failed | void | API 连接器初始化失败。 |
event-based-connector-initialization-failed | void | 基于事件的连接器初始化失败。 |
event-based-connection-established | void | 在建立 WebSocket 连接时调度。 |
list-messages-requested | ListMessagesRequestedPayload | 请求列出给定对话的消息。 |
list-messages-response-received | ListMessagesResponseReceivedPayload | 在收到列表消息响应时分派。 |
virtual-agent-assist-response-message-selected | VirtualAgentAssistResponseMessageSelectedPayload | 选择虚拟客服助理响应消息时调度。此方法将用于使用所选消息填充客服人员输入框。 |
human-agent-transfer-initiated | HumanAgentTransferInitiatedPayload | 当来电从虚拟客服转接给人工客服时调度。 |
search-knowledge-requested | SearchKnowledgeRequestedPayload | 请求了搜索知识。 |
search-knowledge-response-received | SearchKnowledgeResponseReceivedPayload | 收到搜索知识响应。 |
knowledge-assist-v2-answer-pasted | 字符串 | 要粘贴到聊天中的 Knowledge Assist v2 回答。 |
batch-create-messages-requested | BatchCreateMessagesRequestedPayload | 在对话中批量创建消息。这会将消息添加到对话中,但不会为消息生成 Agent Assist 建议。 |
batch-create-messages-response-received | BatchCreateMessagesResponseReceivedPayload | 收到批量创建消息的响应。 |
事件载荷
查看所有自定义事件载荷。
ActiveConversationSelectedPayload
interface ActiveConversationSelectedPayload {
conversationName: string;
}
AnalyzeContentRequestDetails
interface AnalyzeContentRequestDetails {
type?: string;
conversationId: string;
participantRole:
| "ROLE_UNSPECIFIED"
| "HUMAN_AGENT"
| "AUTOMATED_AGENT"
| "END_USER";
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.conversations.participants/analyzeContent#request-body
*/
request: AnalyzeContentRequest;
}
AnalyzeContentResponseReceivedPayload
interface AnalyzeContentResponseReceivedPayload {
conversationName: string;
payload: {
type?: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.conversations.participants#Participant
*/
participant?: Participant;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.conversations.participants/analyzeContent#request-body
*/
request?: AnalyzeContentRequest;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AnalyzeContentResponse
*/
response: AnalyzeContentResponse;
};
}
ArticleSearchRequestedPayload
interface ArticleSearchRequestedPayload {
queryText: string;
}
ArticleSearchResponseReceivedPayload
interface ArticleSearchResponseReceivedPayload {
conversationName: string;
/**
* @link
* https://cloud.google.com/dialogflow/priv/docs/reference/rest/v2beta1/projects.locations.conversations.suggestions/searchArticles#response-body
*/
payload: SearchArticlesResponse;
}
ConversationDetailsReceivedPayload
interface ConversationDetailsReceivedPayload {
conversationName: string;
payload: {
chatInfo: {
rtSessionId: string;
accountId: string;
chatRequestedTime: number;
chatStartTime: number;
sessionStartTime: number;
chatStartUrl: string;
spectatedEngagement: boolean;
chatSkill: string;
};
chattingAgentInfo: {
agentName: string;
agentNickname: string;
agentGroupName: string;
agentId: number;
};
agentInfo: {
accountId: string;
agentName: string;
agentNickname: string;
agentId: number;
agentEmail: string;
employeeId: string;
maxChats: number;
agentGroupName: string;
};
chatTranscript: { lines: TranscriptMessage[] };
surveyQuestions: {
preChat: {
email: { value: string; displayName: string };
phone: { value: string; displayName: string };
name: { value: string; displayName: string };
customizedQuestions: [];
};
postChat: [];
agentSurvey: [];
};
visitorInfo: {
visitorId: string;
visitorName: string;
visitorSso: boolean;
device: string;
browser: string;
operatingSystem: string;
country: string;
countryCode: string;
state: string;
city: string;
isp: string;
organization: string;
IpAddress: string;
visitStartTime: string;
chattingVisitorState: string;
chatRequestedTime: string;
chatStartUrl: string;
visitorTimezone: string;
visitorTyping: boolean;
};
campaignInfo: {
campaignName: string;
campaignId: string;
campaignDescription: string;
targetAudience: [];
goalName: string;
goalId: string;
goalDescription: string;
};
engagementInfo: {
VisitorBehavior: [];
skill: string;
engagementType: string;
engagementId: string;
engagementName: string;
agentNote: string;
engagementSkill: string;
};
visitorJourney: {
pages: [];
searchEngine: { searchProvider: string; searchKeywords: string };
};
SDE: {
customerDetails: [];
personalInfo: [];
marketingSource: [];
leadGeneration: [];
transaction: [];
viewedProducts: [];
shoppingCart: [];
serviceActivity: [];
error: [];
};
authenticatedData: { customerDetails: []; personalInfo: [] };
claimsAndAuthType: { claims: {}; acr: string };
applicationInfo: { theme: "light" | "dark" };
customVariables: [];
splitSession: { customVariables: [] };
};
}
ConversationInitializationRequestedPayload
interface ConversationInitializationRequestedPayload {
conversationName: string;
}
ConversationInitializedPayload
interface ConversationInitializedPayload {
conversation: Conversation;
participants: ParticipantsMap<Participant_ | null>;
}
ConversationProfileRequestedPayload
interface ConversationProfileRequestedPayload {
conversationProfileName: string;
}
ConversationProfileReceivedPayload
type ConversationProfileReceivedPayload =
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.conversationProfiles#ConversationProfile
*/
ConversationProfile | null;
ConversationModelRequestedPayload
interface ConversationModelRequestedPayload {
modelName: string | null;
}
ConversationModelReceivedPayload
type ConversationModelReceivedPayload =
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.conversationModels#ConversationModel
*/
ConversationModel | null;
ConversationSummarizationReceivedPayload
interface ConversationSummarizationReceivedPayload {
conversationName: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SuggestConversationSummaryResponse
*/
payload: SuggestConversationSummaryResponse;
}
ConversationSummarizationRequestedEventPayload
type ConversationSummarizationRequestedEventPayload = {
conversationName?: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.conversations.suggestions/suggestConversationSummary#request-body
*/
request?: SuggestConversationSummaryRequest;
} | void;
DarkModeToggledPayload
interface DarkModeToggledPayload {
on: boolean;
}
DialogflowApiErrorPayload
type DialogflowApiErrorPayload = {
conversationName: string;
source:
| "TYPE_UNSPECIFIED"
| "ARTICLE_SUGGESTION"
| "FAQ"
| "SMART_REPLY"
| "DIALOGFLOW_ASSIST"
| "SMART_COMPOSE"
| "ISSUE_SMART_COMPOSE"
| "SPELL_GRAMMAR_CORRECTION"
| "CONVERSATION_SUMMARIZATION"
| "KEY_MOMENT"
| "ARTICLE_SEARCH"
| "CONVERSATION_GUIDANCE"
| "ARTICLE_SUGGESTION_VOICE"
| "CONVERSATION_SUMMARIZATION_VOICE"
| "KNOWLEDGE_SEARCH"
| "KNOWLEDGE_ASSIST"
| "ENTITY_EXTRACTION"
| "ANALYZE_CONTENT"
| "INITIALIZATION"
| "AUTHORIZATION"
| "LIST_MESSAGES"
| "BATCH_CREATE_MESSAGES"
| "GET_CONVERSATION_PROFILE"
| "GET_CONVERSATION_MODEL"
| "SEARCH_KNOWLEDGE"
| "GENERATE_STATELESS_SUMMARY";
data?: Dictionary;
error: GoogleRpcStatus | null;
} | null;
SmartReplySelection
SuggestionFeatureSelection<SmartReplyAnswer>
SmartReplyFollowUpSuggestionsReceivedPayload
interface SmartReplyFollowUpSuggestionsReceivedPayload {
conversationName: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SuggestSmartRepliesResponse#smartreplyanswer
*/
payload: SmartReplyAnswer_[];
}
PatchAnswerRecordRequestedPayload
type PatchAnswerRecordRequestedPayload = PatchPayload<{
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.answerRecords#AnswerRecord
*/
answerRecord: AnswerRecord;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.answerRecords#AnswerRecord
*/
previousAnswerRecord?: AnswerRecord | undefined;
}>;
PatchAnswerRecordReceivedPayload
interface PatchAnswerRecordReceivedPayload {
conversationName: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.answerRecords#AnswerRecord
*/
payload: AnswerRecord;
}
SnackbarNotificationPayload
interface SnackbarNotificationPayload {
message: string;
actionMessage?: string | undefined;
actionHandler?: () => void;
}
AnswerRecordRequestedPayload
interface AnswerRecordRequestedPayload {
answerRecordName: string;
}
AnswerRecordReceivedPayload
interface AnswerRecordReceivedPayload {
conversationName: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.answerRecords#AnswerRecord
*/
payload: AnswerRecord;
}
ConversationStartedPayload
interface ConversationStartedPayload {
conversationName: string;
}
ConversationCompletedPayload
interface ConversationCompletedPayload {
conversationName: string;
}
NewMessageReceivedPayload
type NewMessageReceivedPayload =
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/Message
*/
Message;
GenesysCloudConnectorAccessTokenReceivedPayload
export declare interface GenesysCloudConnectorAccessTokenReceivedPayload {
accessToken: string;
}
ListMessagesRequestedPayload
interface ListMessagesRequestedPayload {
conversationName: string;
}
ListMessagesResponseReceivedPayload
interface ListMessagesResponseReceivedPayload {
conversationName: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ListMessagesResponse
*/
payload: ListMessagesResponse;
}
VirtualAgentAssistResponseMessageSelectedPayload
interface VirtualAgentAssistResponseMessageSelectedPayload {
responseMessage: string;
}
HumanAgentTransferInitiatedPayload
interface HumanAgentTransferInitiatedPayload {
conversationName: string;
}
SearchKnowledgeRequestedPayload
interface SearchKnowledgeRequestedPayload {
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.suggestions/searchKnowledge
*/
request: SearchKnowledgeRequest;
}
SearchKnowledgeResponseReceivedPayload
interface SearchKnowledgeResponseReceivedPayload {
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.suggestions/searchKnowledge
*/
request: SearchKnowledgeRequest;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SearchKnowledgeResponse
*/
response: SearchKnowledgeResponse;
}
BatchCreateMessagesRequestedPayload
interface BatchCreateMessagesRequestedPayload {
conversationName: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.conversations.messages/batchCreate#request-body
*/
request: BatchCreateMessagesRequest;
}
BatchCreateMessagesResponseReceivedPayload
interface BatchCreateMessagesResponseReceivedPayload {
conversationName: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/BatchCreateMessagesResponse
*/
response: BatchCreateMessagesResponse;
}
StatelessConversationSummarizationRequestedPayload
interface StatelessConversationSummarizationRequestedPayload {
conversationName?: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.suggestions/generateStatelessSummary#request-body
*/
request?: GenerateStatelessSummaryRequest;
}
StatelessConversationSummarizationResponseReceivedPayload
interface StatelessConversationSummarizationResponseReceivedPayload {
conversationName?: string;
/**
* @link
* https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/GenerateStatelessSummaryResponse
*/
response?: GenerateStatelessSummaryResponse;
}