Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Setiap parameter intent memiliki jenis, yang disebut jenis entity, yang menentukan secara tepat cara data dari ekspresi pengguna akhir diekstrak.
Dialogflow menyediakan entity sistem standar yang dapat mencocokkan banyak jenis data umum.
Misalnya, ada entity sistem untuk mencocokkan tanggal, waktu, warna, alamat email, dan sebagainya.
Anda juga dapat membuat
entity kustom
sendiri untuk mencocokkan data kustom.
Misalnya, Anda dapat menentukan entity vegetable
yang dapat mencocokkan jenis sayuran yang tersedia untuk dibeli dengan agen toko bahan makanan.
Terminologi entity
Istilah entity digunakan dalam dokumentasi ini dan di Konsol Dialogflow
untuk menjelaskan konsep umum entity.
Saat membahas detail entity,
penting untuk memahami istilah yang lebih spesifik:
Jenis entitas:
Menentukan jenis informasi yang ingin Anda ekstrak dari input pengguna.
Misalnya, sayuran dapat menjadi nama jenis entity.
Mengklik Create Entity dari Konsol Dialogflow akan membuat jenis entity.
Saat menggunakan API,
istilah jenis entity mengacu pada
jenis
EntityType.
Entri entity:
Untuk setiap jenis entity, ada banyak entri entity.
Setiap entri entity memberikan kumpulan kata atau frasa yang dianggap setara.
Misalnya, jika vegetable adalah jenis entity, Anda dapat menentukan tiga entri entity ini:
wortel
daun bawang, bawang hijau
paprika, paprika manis
Saat mengedit jenis entity dari Konsol Dialogflow,
setiap baris tampilan adalah entri entity.
Saat menggunakan API,
istilah entri entity mengacu pada
jenis Entity (EntityType.Entity atau EntityType_Entity
untuk beberapa bahasa library klien).
Nilai referensi dan sinonim entitas:
Beberapa entri entitas memiliki beberapa kata atau frasa
yang dianggap setara,
seperti contoh scallion di atas.
Untuk entri entity ini, Anda memberikan satu nilai referensi
dan satu atau beberapa sinonim.
[[["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-08-18 UTC."],[[["\u003cp\u003eEntity types define the kind of information extracted from user input, such as "vegetable".\u003c/p\u003e\n"],["\u003cp\u003eDialogflow offers predefined system entities for common data types and allows the creation of custom entities.\u003c/p\u003e\n"],["\u003cp\u003eEntity entries provide equivalent words or phrases for a given entity type, such as "carrot" or "scallion" for the vegetable entity type.\u003c/p\u003e\n"],["\u003cp\u003eEntity entries can include a reference value and synonyms, where multiple words or phrases are considered equivalent.\u003c/p\u003e\n"],["\u003cp\u003eThe term "entity" broadly describes the concept of entities, with more specific terms like "entity type" and "entity entry" used for detailed discussions.\u003c/p\u003e\n"]]],[],null,["# Entities\n\nEach intent\n[parameter](/dialogflow/docs/intents-actions-parameters#params)\nhas a type, called the\n\n*entity type*,\n\nwhich dictates exactly how data from an end-user expression is extracted.\n\n\nDialogflow provides predefined\n[system entities](/dialogflow/docs/entities-system)\nthat can match many common types of data.\nFor example, there are system entities for matching dates, times, colors, email addresses, and so on.\nYou can also create your own\n[custom entities](/dialogflow/docs/entities-custom)\nfor matching custom data.\nFor example, you could define a *vegetable* entity\nthat can match the types of vegetables available for purchase with a grocery store agent.\n\nEntity terminology\n------------------\n\nThe term *entity* is used in this documentation and in the Dialogflow Console\nto describe the general concept of entities.\nWhen discussing entity details,\nit's important to understand more specific terms:\n\n- **Entity type** :\n Defines the type of information you want to extract from user input.\n For example, *vegetable* could be the name of an entity type.\n Clicking **Create Entity** from the Dialogflow Console creates an *entity type* .\n When using the API,\n the term *entity type* refers to the\n [`EntityType`](/dialogflow/docs/reference/common-types#entitytypes)\n type.\n\n- **Entity entry** :\n For each entity type, there are many *entity entries* .\n Each entity entry provides a set of words or phrases that are considered equivalent.\n For example, if *vegetable* is an entity type, you could define these three entity entries:\n\n - carrot\n - scallion, green onion\n - bell pepper, sweet pepper\n\n When editing an entity type from the Dialogflow Console,\n each row of the display is an *entity entry* .\n When using the API,\n the term *entity entry* refers to the\n `Entity` type (`EntityType.Entity` or `EntityType_Entity`\n for some client library languages).\n- **Entity reference value and synonyms** :\n Some entity entries have multiple words or phrases\n that are considered equivalent,\n like the *scallion* example above.\n For these entity entries, you provide one *reference value*\n and one or more *synonyms*."]]