Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Anda dapat membuat entity kustom untuk mencocokkan data khusus untuk agen Anda.
Misalnya, Anda dapat menentukan jenis entity vegetable
yang dapat mencocokkan jenis sayuran
yang tersedia untuk dibeli dengan agen toko bahan makanan.
Tempat menemukan data ini
Saat membuat agen,
hal yang paling umum adalah menggunakan
konsol Dialogflow ES (kunjungi dokumentasi, buka konsol).
Petunjuk di bawah berfokus pada penggunaan konsol.
Untuk mengakses data entitas kustom:
Jika Anda membuat agen menggunakan API, bukan konsol, lihat
referensi EntityTypes.
Nama kolom API mirip dengan nama kolom konsol.
Petunjuk di bawah ini menyoroti perbedaan penting antara konsol dan API.
Perhatikan bahwa Tentukan sinonim sudah dicentang.
Klik baris pertama dan berikan nilai referensi di kolom kiri.
Klik kolom berikutnya atau tekan Enter dan berikan sinonim.
Lanjutkan menambahkan baris untuk entri entity lainnya.
Klik Simpan.
Operasi batch
Anda dapat memindahkan, menyalin, atau menghapus beberapa entitas menggunakan operasi batch:
Salin:
Menyalin entitas yang dipilih ke agen target.
Pindahkan:
Memindahkan entity yang dipilih ke agen target.
Hapus:
Menghapus entitas yang dipilih secara permanen.
Tindakan ini tidak dapat diurungkan.
Opsi tambahan berikut akan diminta untuk operasi salin dan pindahkan:
Salin entitas terkait:
Memindahkan atau menyalin entitas yang digunakan dalam
entitas gabungan.
Menimpa entity:
Menimpa entity dengan nama yang sama.
Untuk menyalin, memindahkan, atau menghapus beberapa entity:
Arahkan kursor ke daftar
dan pilih satu atau beberapa entitas.
Tindakan ini akan menampilkan opsi batch.
Pilih tindakan yang diinginkan.
Pilih opsi yang diinginkan dalam dialog.
Klik Mulai.
Batasan
Batasan berikut berlaku:
Nama jenis entity kustom bersifat unik untuk setiap agen.
Nama jenis entitas harus diawali dengan huruf dan dapat berisi hal berikut: A-Z, a-z, 0-9, _ (garis bawah), - (tanda hubung).
Referensi entity dan nilai sinonim tidak memiliki batasan tersebut.
[[["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-09-03 UTC."],[[["\u003cp\u003eCustom entities can be created to match data specific to an agent, such as defining a \u003ccode\u003evegetable\u003c/code\u003e entity for a grocery store agent.\u003c/p\u003e\n"],["\u003cp\u003eIt is recommended to define entities before adding training phrases to intents in the Dialogflow ES console, as the console will automatically annotate training phrases with existing entities.\u003c/p\u003e\n"],["\u003cp\u003eCustom entity data can be accessed by navigating to the "Entities" section in the left sidebar menu of the Dialogflow ES console and selecting the "Custom" tab.\u003c/p\u003e\n"],["\u003cp\u003eBatch operations allow for copying, moving, or deleting multiple entities at once, with options to copy related entities or overwrite existing ones.\u003c/p\u003e\n"],["\u003cp\u003eCustom entity type names must be unique for each agent and follow specific naming conventions, although reference and synonym values have no such limitations.\u003c/p\u003e\n"]]],[],null,["# Custom entities\n\nYou can create custom entities for matching data specific to your agent.\nFor example, you could define a `vegetable` entity type\nthat can match the types of vegetables\navailable for purchase with a grocery store agent.\n| **Note:** When building your agent, it's best to define your entities prior to adding [training phrases](/dialogflow/docs/intents-training-phrases) to your intents. The console will automatically annotate your training phrases with existing entities. However, if you create entities after training phrases, you can manually annotate the phrases.\n\nWhere to find this data\n-----------------------\n\nWhen building an agent,\nit is most common to use the\nDialogflow ES console ([visit documentation](/dialogflow/docs/console), [open console](https://dialogflow.cloud.google.com)).\nThe instructions below focus on using the console.\nTo access custom entity data:\n\n1. Go to the [Dialogflow ES console](https://dialogflow.cloud.google.com).\n2. Select an agent.\n3. Select **Entities** in the left sidebar menu.\n4. Select the **Custom** tab for custom entities.\n\nIf you are building an agent using the API instead of the console, see the\n[EntityTypes reference](/dialogflow/docs/reference/common-types#entitytypes).\nThe API field names are similar to the console field names.\nThe instructions below highlight any important differences between the console and the API.\n\nCreate custom entities\n----------------------\n\nTo create a custom [map entity](/dialogflow/docs/entities-options#map):\n\n1. Click **Create entity**.\n2. Enter a name for the entity.\n3. Note that **Define synonyms** is already checked.\n4. Click the first row and provide a reference value in the left column.\n5. Click the next column or press **Enter** and provide synonyms.\n6. Continue adding rows for other entity entries.\n7. Click **Save**.\n\nBatch operations\n----------------\n\nYou can move, copy, or delete multiple entities using batch operations:\n\n- **Copy**: Copies selected entities to the target agent.\n- **Move**: Moves selected entities to the target agent.\n- **Delete**: Permanently deletes the selected entities. This cannot be undone.\n\nThe following additional options are prompted for copy and move operations:\n\n- **Copy related entities** : Moves or copies entities used in [composite entities](/dialogflow/docs/entities-options#comp).\n- **Overwrite entities**: Overwrites entities with the same name.\n\nTo copy, move, or delete multiple entities:\n\n1. Hover you mouse over the list and select one or more entities. This reveals the batch options.\n2. Choose the desired action.\n3. Select the desired options in the dialog.\n4. Click **Start**.\n\nLimitations\n-----------\n\nThe following limitations apply:\n\n- Custom entity type names are unique for each agent. Entity type names should start with a letter and can contain the following: `A-Z`, `a-z`, `0-9`, `_` (underscore), `-` (dash). Entity reference and synonym values have no such limitation."]]