Algunos productos y funciones están en proceso de cambiar de nombre. Las funciones de flujo y de la guía generativa también se migrarán a una sola consola consolidada. Consulta los detalles.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Por lo general, los intents se crean y borran con la consola.
Sin embargo, en ciertas situaciones avanzadas, puede que te resulte más fácil usar la API.
Crea un intent
En los siguientes ejemplos, se muestra cómo llamar al método Create para el tipo Intent.
Selecciona un protocolo y una versión para la Referencia de intent:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-04-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."]]],[]]