Beberapa produk dan fitur sedang dalam proses penggantian nama. Fitur playbook dan alur generatif juga dimigrasikan ke satu konsol gabungan. Lihat detailnya.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Biasanya, Anda membuat dan menghapus intent menggunakan konsol.
Namun, dalam skenario lanjutan tertentu,
Anda mungkin merasa lebih mudah menggunakan API.
Membuat intent
Contoh berikut menunjukkan cara memanggil metode Create untuk jenis Intent.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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."]]],[]]