Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Un evento che si è verificato lato server e che è correlato a una conversazione tra un agente e un utente.
Ad esempio, se il bot imposta un TTL per il messaggio e il TTL scade, viene attivato questo evento per notificare al partner che il messaggio del bot ha superato il tempo di attesa.
ServerEvent viene visualizzato nel campo "data" dell'oggetto "message" che l'agente riceve dalla sottoscrizione Pub/Sub. Il campo "data" è una stringa con codifica base64 che l'agente deve decodificare in modo che corrisponda alla struttura ServerEvent.
Utilizza RFC 3339, in cui l'output generato sarà sempre normalizzato in base a Z e utilizza 0, 3, 6 o 9 cifre decimali. Sono accettati anche offset diversi da "Z". Esempi: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" o "2014-10-02T15:01:23+05:30".
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-25 UTC."],[[["ServerEvents are notifications about occurrences related to conversations between agents and users, such as when a bot message's TTL expires."],["These events are delivered within the \"data\" field of a \"message\" object in a Pub/Sub subscription, requiring base64 decoding by the agent."],["Each ServerEvent contains fields such as `phoneNumber`, `agentId`, `messageId`, `eventType`, `eventId`, and `sendTime` to provide specific context."],["The `eventType` field specifies the type of the event, while `sendTime` indicates the server's event dispatch time in RFC 3339 format."],["The information is structured in a JSON format that contains information regarding the server event and it's corresponding data."]]],[]]