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.
In genere, gli intent vengono creati ed eliminati utilizzando la console.
Tuttavia, in alcuni scenari avanzati,
potresti trovare più semplice utilizzare l'API.
Creare un intent
Gli esempi seguenti mostrano come chiamare il metodo Create per il tipo Intent.
Seleziona un protocollo e una versione per il riferimento all'intent:
[[["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-07-14 UTC."],[[["Intents can be created and deleted via the API for advanced scenarios, offering an alternative to the console."],["The API reference provides protocol-specific (REST, RPC) and language-specific (C++, C#, Go, Java, Node.js, Python) guidance for creating and deleting intents."],["Creating an intent using the REST API involves a POST request to a specified URL, with a JSON body containing the intent's display name."],["Deleting an intent using the REST API involves a DELETE request to a specific URL that includes the `INTENT_ID`, returning a successful status code and an empty response."],["Updating specific fields of an intent can be done by using the field mask guide provided in the content."]]],[]]