Alcuni prodotti e funzionalità sono in fase di rinominazione. Anche le funzionalità di playbook e flusso generativi sono in fase di migrazione a un'unica console consolidata. Consulta i dettagli.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Una sessione rappresenta una conversazione tra un agente Conversational Agents (Dialogflow CX) e un utente finale.
Durante una sessione puoi creare entità speciali, chiamate entità di sessione o entità utente.
Le entità di sessione possono estendere o sostituire i tipi di entità personalizzate
e esistono solo durante la sessione per cui sono state create.
Tutti i dati della sessione, incluse le entità della sessione, vengono archiviati da Conversational Agents (Dialogflow CX) per 30 minuti.
Ad esempio, se il tuo agente ha un tipo di entità @fruit che include "pera" e "uva", questo tipo di entità potrebbe essere aggiornato in modo da includere "mela" o "arancia", a seconda delle informazioni raccolte dall'agente dall'utente finale.
Il tipo di entità aggiornato avrà la voce dell'entità "mela" o "arancia" per il resto della sessione.
Gestione delle entità di sessione con l'API
Per gestire le entità di sessione con l'API,
utilizza i metodi per il tipo SessionEntity.
Seleziona un protocollo e una versione per il riferimento SessionEntityType:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eA session in Conversational Agents (Dialogflow CX) represents a conversation between the agent and an end-user.\u003c/p\u003e\n"],["\u003cp\u003eSession entities, also known as user entities, are special entities created during a session that can expand or replace custom entity types.\u003c/p\u003e\n"],["\u003cp\u003eSession entities are only active for the duration of the session in which they are created.\u003c/p\u003e\n"],["\u003cp\u003eAll session data, including session entities, is temporarily stored by Conversational Agents (Dialogflow CX) for a duration of 30 minutes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSessionEntityType\u003c/code\u003e API can be used to manage session entities, with resources and interfaces available for various protocols and versions, including REST and RPC.\u003c/p\u003e\n"]]],[],null,["# Session entities\n\nA *session* represents a conversation\nbetween a Conversational Agents (Dialogflow CX) agent and an end-user.\nYou can create special entities, called *session entities* ,\nor *user entities*,\nduring a session.\nSession entities can extend or replace custom entity types\nand only exist during the session that they were created for.\nAll session data, including session entities,\nis stored by Conversational Agents (Dialogflow CX) for 30 minutes.\n\nFor example, if your agent has a `@fruit` entity type\nthat includes \"pear\" and \"grape\",\nthat entity type could be updated to include \"apple\" or \"orange\",\ndepending on the information your agent collects from the end-user.\nThe updated entity type would have the \"apple\" or \"orange\" entity entry\nfor the rest of the session.\n\nManaging session entities with the API\n--------------------------------------\n\nTo manage session entities with the API,\nuse the methods for the `SessionEntity` type.\n\n\nGo to the SessionEntityType API reference \n**Select a protocol and version for the SessionEntityType reference:**\n\nClose\n\n\u003cbr /\u003e"]]