Questa pagina contiene la documentazione dell'API per tutti gli eventi del modulo UI personalizzato.
Dettagli evento
Nome evento | Payload | Descrizione |
---|---|---|
active-conversation-selected | ActiveConversationSelectedPayload | Viene inviato quando viene selezionata una conversazione. |
smart-reply-selected | SmartReplySelection | Inviata quando viene selezionato un chip di risposta rapida. |
smart-reply-follow-up-suggestions-received | SmartReplyFollowUpSuggestionsReceivedPayload | Inviati quando sono stati ricevuti suggerimenti di follow-up di Risposta rapida. |
conversation-details-received | ConversationDetailsReceivedPayload | Inviati quando i dettagli della conversazione vengono ricevuti dall'SDK (incluse le informazioni su agente e cliente). |
conversation-initialization-requested | ConversationInitializationRequestedPayload | Inviata quando deve essere inizializzata la conversazione Dialogflow. |
conversation-initialized | ConversationInitializedPayload | Inviata quando la conversazione Dialogflow è stata inizializzata. |
conversation-started | ConversationStartedPayload | Inviata quando la conversazione Dialogflow è iniziata. |
conversation-completed | ConversationCompletedPayload | Inviata al termine della conversazione con Dialogflow. |
conversation-profile-requested | ConversationProfileRequestedPayload | Inviata quando viene recuperato il profilo di conversazione Dialogflow. |
conversation-profile-received | ConversationProfileReceivedPayload | Inviata quando viene ricevuto il profilo di conversazione Dialogflow. |
conversation-model-requested | ConversationModelRequestedPayload | Inviata quando viene recuperato il modello di conversazione Dialogflow. |
conversation-model-received | ConversationModelReceivedPayload | Inviata quando viene ricevuto il modello di conversazione Dialogflow. |
new-message-received | NewMessageReceivedPayload | Inviata quando viene ricevuto un nuovo messaggio della trascrizione. |
analyze-content-requested | AnalyzeContentRequestDetails | Viene inviato quando deve essere effettuata una richiesta di AnalyzeContent. |
analyze-content-response-received | AnalyzeContentResponseReceivedPayload | Inviata quando viene ricevuto un nuovo AnalyzeContentResponse. |
conversation-summarization-requested | ConversationSummarizationRequestedEventPayload | È stata richiesta la sintesi della conversazione. |
stateless-conversation-summarization-requested | StatelessConversationSummarizationRequestedPayload | È stato richiesto il riassunto di conversazioni senza stato. |
stateless-conversation-summarization-response-received | StatelessConversationSummarizationResponseReceivedPayload | Risposta al riepilogo della conversazione senza stato ricevuta. |
conversation-summarization-received | ConversationSummarizationReceivedPayload | Riepilogo della conversazione ricevuto. |
errore-api-dialogflow | DialogflowApiErrorPayload | Si è verificato un errore dell'API Dialogflow. |
dialogflow-api-authentication-error | nullo | Si è verificato un errore di autenticazione dell'API Dialogflow (401). |
answer-record-requested | AnswerRecordRequestedPayload | Registrazione della risposta richiesta. |
answer-record-received | AnswerRecordReceivedPayload | Record risposta ricevuto. |
patch-answer-record-requested | PatchAnswerRecordRequestedPayload | Record della risposta alla patch richiesto. |
patch-answer-record-received | PatchAnswerRecordReceivedPayload | Richiesta di record della risposta alla patch ricevuta. |
article-search-requested | ArticleSearchRequestedPayload | Ricerca di articoli richiesta. |
article-search-response-received | ArticleSearchResponseReceivedPayload | Risultati di ricerca degli articoli ricevuti. |
dark-mode-toggled | DarkModeToggledPayload | Modalità Buio attivata in Agent desktop. |
snackbar-notification-requested | SnackbarNotificationPayload | È stata richiesta una notifica nella barra di app. |
live-person-connector-initialized | nullo | Connettore LivePerson inizializzato. |
genesys-cloud-connector-initialized | nullo | Connettore Genesys Cloud inizializzato. |
api-connector-initialized | nullo | Connettore API inizializzato. |
event-based-connector-initialized | nullo | Connettore basato su eventi inizializzato. |
live-person-connector-initialization-failed | nullo | L'inizializzazione del connettore LivePerson non è riuscita. |
genesys-cloud-connector-initialization-failed | nullo | L'inizializzazione del connettore Genesys Cloud non è riuscita. |
genesys-cloud-connector-access-token-received | GenesysCloudConnectorAccessTokenReceivedPayload | Token di accesso del connettore Genesys Cloud ricevuto. |
api-connector-initialization-failed | nullo | L'inizializzazione del connettore API non è riuscita. |
event-based-connector-initialization-failed | nullo | L'inizializzazione del connettore basato su eventi non è riuscita. |
event-based-connection-established | nullo | Inviata quando viene stabilita la connessione Websocket. |
list-messages-requested | ListMessagesRequestedPayload | Richiesta di elencare i messaggi di una determinata conversazione. |
list-messages-response-received | ListMessagesResponseReceivedPayload | Inviata quando viene ricevuta una risposta con un elenco di messaggi. |
virtual-agent-assist-response-message-selected | VirtualAgentAssistResponseMessageSelectedPayload | Viene inviato quando viene selezionato un messaggio di risposta dell'agente virtuale. Verrà utilizzato per compilare la casella di immissione dell'agente con il messaggio selezionato. |
human-agent-transfer-initiated | HumanAgentTransferInitiatedPayload | Inviata quando una chiamata viene trasferita da un agente virtuale a un agente umano. |
search-knowledge-requested | SearchKnowledgeRequestedPayload | È stata richiesta la conoscenza della ricerca. |
search-knowledge-response-received | SearchKnowledgeResponseReceivedPayload | Risposta della conoscenza della rete di ricerca ricevuta. |
knowledge-assist-v2-answer-pasted | string | Una risposta di Knowledge Assist v2 da incollare nella chat. |
batch-create-messages-requested | BatchCreateMessagesRequestedPayload | Creare in blocco i messaggi di una conversazione. In questo modo, i messaggi verranno aggiunti alla conversazione senza generare suggerimenti di Agent Assist. |
batch-create-messages-response-received | BatchCreateMessagesResponseReceivedPayload | Risposta alla creazione collettiva di messaggi ricevuta. |
Payload degli eventi
Visualizza tutti i payload degli eventi personalizzati.
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;
}