Halaman ini berisi dokumentasi API untuk semua peristiwa modul UI kustom.
Detail acara
Nama peristiwa | Payload | Deskripsi |
---|---|---|
active-conversation-selected | ActiveConversationSelectedPayload | Dikirim saat percakapan dipilih. |
smart-reply-selected | SmartReplySelection | Dikirim saat chip Smart Reply dipilih. |
smart-reply-follow-up-suggestions-received | SmartReplyFollowUpSuggestionsReceivedPayload | Dikirim saat saran tindak lanjut Smart Reply telah diterima. |
conversation-details-received | ConversationDetailsReceivedPayload | Dikirim saat detail percakapan diterima dari SDK (termasuk info agen dan pelanggan). |
conversation-initialization-requested | ConversationInitializationRequestedPayload | Dikirim saat percakapan Dialogflow harus diinisialisasi. |
conversation-initialized | ConversationInitializedPayload | Dikirim saat percakapan Dialogflow telah diinisialisasi. |
conversation-started | ConversationStartedPayload | Dikirim saat percakapan Dialogflow dimulai. |
conversation-completed | ConversationCompletedPayload | Dikirim saat percakapan Dialogflow selesai. |
conversation-profile-requested | ConversationProfileRequestedPayload | Dikirim saat profil percakapan Dialogflow diambil. |
conversation-profile-received | ConversationProfileReceivedPayload | Dikirim saat profil percakapan Dialogflow telah diterima. |
conversation-model-requested | ConversationModelRequestedPayload | Dikirim saat model percakapan Dialogflow diambil. |
conversation-model-received | ConversationModelReceivedPayload | Dikirim saat model percakapan Dialogflow telah diterima. |
new-message-received | NewMessageReceivedPayload | Dikirim saat pesan transkrip baru telah diterima. |
analyze-content-requested | AnalyzeContentRequestDetails | Dikirim saat permintaan AnalyzeContent harus dibuat. |
analyze-content-response-received | AnalyzeContentResponseReceivedPayload | Dikirim saat AnalyzeContentResponse baru telah diterima. |
conversation-summarization-requested | ConversationSummarizationRequestedEventPayload | Ringkasan percakapan diminta. |
stateless-conversation-summarization-requested | StatelessConversationSummarizationRequestedPayload | Ringkasan percakapan stateless diminta. |
stateless-conversation-summarization-response-received | StatelessConversationSummarizationResponseReceivedPayload | Respons ringkasan percakapan stateless diterima. |
conversation-summarization-received | ConversationSummarizationReceivedPayload | Ringkasan percakapan diterima. |
dialogflow-api-error | DialogflowApiErrorPayload | Terjadi error Dialogflow API. |
dialogflow-api-authentication-error | void | Terjadi error autentikasi Dialogflow API (401). |
answer-record-requested | AnswerRecordRequestedPayload | Rekaman jawaban diminta. |
answer-record-received | AnswerRecordReceivedPayload | Rekaman jawaban diterima. |
patch-answer-record-requested | PatchAnswerRecordRequestedPayload | Permintaan data jawaban patch. |
patch-answer-record-received | PatchAnswerRecordReceivedPayload | Permintaan data jawaban patch diterima. |
article-search-requested | ArticleSearchRequestedPayload | Penelusuran artikel diminta. |
article-search-response-received | ArticleSearchResponseReceivedPayload | Hasil penelusuran artikel diterima. |
dark-mode-toggled | DarkModeToggledPayload | Mode gelap diaktifkan di desktop Agen. |
snackbar-notification-requested | SnackbarNotificationPayload | Notifikasi snackbar diminta. |
live-person-connector-initialized | void | Konektor LivePerson diinisialisasi. |
genesys-cloud-connector-initialized | void | Konektor Genesys Cloud diinisialisasi. |
api-connector-initialized | void | Konektor API diinisialisasi. |
event-based-connector-initialized | void | Konektor berbasis peristiwa diinisialisasi. |
live-person-connector-initialization-failed | void | Inisialisasi konektor LivePerson gagal. |
genesys-cloud-connector-initialization-failed | void | Inisialisasi konektor Genesys Cloud gagal. |
genesys-cloud-connector-access-token-received | GenesysCloudConnectorAccessTokenReceivedPayload | Token akses konektor Genesys Cloud diterima. |
api-connector-initialization-failed | void | Inisialisasi konektor API gagal. |
event-based-connector-initialization-failed | void | Inisialisasi konektor berbasis peristiwa gagal. |
event-based-connection-established | void | Dikirim saat koneksi Websocket dibuat. |
list-messages-requested | ListMessagesRequestedPayload | Meminta untuk mencantumkan pesan untuk percakapan tertentu. |
list-messages-response-received | ListMessagesResponseReceivedPayload | Dikirim saat respons pesan daftar diterima. |
virtual-agent-assist-response-message-selected | VirtualAgentAssistResponseMessageSelectedPayload | Dikirim saat pesan respons Virtual Agent Assist dipilih. Ini akan digunakan untuk mengisi kotak input agen dengan pesan yang dipilih. |
human-agent-transfer-initiated | HumanAgentTransferInitiatedPayload | Dikirim saat panggilan dialihkan dari agen virtual ke agen manusia. |
search-knowledge-requested | SearchKnowledgeRequestedPayload | Pengetahuan penelusuran diminta. |
search-knowledge-response-received | SearchKnowledgeResponseReceivedPayload | Respons pengetahuan penelusuran diterima. |
knowledge-assist-v2-answer-pasted | string | Jawaban Knowledge Assist v2 yang akan ditempelkan ke dalam chat. |
batch-create-messages-requested | BatchCreateMessagesRequestedPayload | Membuat pesan secara massal dalam percakapan. Tindakan ini akan menambahkan pesan ke percakapan tanpa membuat saran Agent Assist untuk pesan tersebut. |
batch-create-messages-response-received | BatchCreateMessagesResponseReceivedPayload | Respons pesan pembuatan batch diterima. |
Payload peristiwa
Lihat semua payload peristiwa kustom.
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;
}