Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Intent biasanya dicocokkan saat
ekspresi pengguna akhir cocok dengan frasa pelatihan intent.
Namun, Anda juga dapat memicu intent menggunakan peristiwa.
Peristiwa dapat dipanggil dengan banyak cara.
Ada dua jenis peristiwa:
Peristiwa platform: Peristiwa bawaan ini disediakan oleh integrasi platform.
Fungsi ini dipanggil saat peristiwa khusus platform terjadi.
Misalnya, peristiwa FACEBOOK_LOCATION dipanggil
oleh integrasi Facebook saat pengguna akhir menerima atau menolak
permintaan untuk lokasi pengguna akhir.
Peristiwa kustom:
Peristiwa ini ditentukan oleh Anda.
Anda dapat memanggil peristiwa ini menggunakan
fulfillment
atau
API.
Misalnya, Anda dapat menetapkan pemberitahuan berwaktu selama percakapan,
yang memanggil peristiwa pada waktu tertentu.
Peristiwa ini dapat memicu intent yang memberi tahu pengguna akhir tentang sesuatu.
Mengonfigurasi intent untuk peristiwa
Peristiwa diidentifikasi hanya dengan namanya.
Peristiwa khusus platform memiliki nama tertentu, tetapi Anda dapat memberi nama peristiwa kustom apa pun.
Untuk mengonfigurasi intent agar dipicu
saat peristiwa tertentu dipanggil:
Untuk memperbarui peristiwa intent dengan API,
lihat jenis Intent.
Parameter peristiwa
Saat dipanggil, peristiwa juga dapat memiliki data parameter
yang dapat Anda akses dalam respons intent yang dipicu.
Untuk informasi selengkapnya, lihat
Referensi parameter untuk parameter peristiwa.
[[["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\u003eIntents can be triggered by events, in addition to matching end-user expressions with training phrases.\u003c/p\u003e\n"],["\u003cp\u003eThere are two types of events: platform events, which are built-in and provided by platform integrations, and custom events, which are defined by the user.\u003c/p\u003e\n"],["\u003cp\u003ePlatform events are invoked by platform-specific events, such as the \u003ccode\u003eFACEBOOK_LOCATION\u003c/code\u003e event, while custom events can be invoked using fulfillment or the API.\u003c/p\u003e\n"],["\u003cp\u003eIntents can be configured to be triggered when specific events are invoked by adding the event names to the "Events" section in the Dialogflow ES console.\u003c/p\u003e\n"],["\u003cp\u003eWhen events are invoked, they may include parameter data that can be accessed within the responses of the triggered intent.\u003c/p\u003e\n"]]],[],null,["# Events\n\nIntents are normally matched when\nan end-user expression matches an intent training phrase.\nHowever, you can also trigger intents using *events*.\nEvents can be invoked in many ways.\n\nThere are two types of events:\n\n- [**Platform events**](/dialogflow/docs/events-platform): These built-in events are provided by platform [integrations](/dialogflow/docs/integrations). They are invoked when platform-specific events occur. For example, the `FACEBOOK_LOCATION` event is invoked by the Facebook integration when an end-user accepts or rejects a request for the end-user's location.\n- [**Custom events**](/dialogflow/docs/events-custom): These are events that you define. You can invoke these events using either [fulfillment](/dialogflow/docs/fulfillment-overview) or [the API](/dialogflow/docs/api-overview). For example, you might set a timed alert during a conversation, which invokes an event at a certain time. This event could trigger an intent that alerts the end-user about something.\n\nConfigure an intent for events\n------------------------------\n\nEvents are identified simply by their name.\nPlatform-specific events have specific names,\nbut you can name custom events anything.\n\nTo configure an intent so that it is triggered\nwhen certain events are invoked:\n\n1. Go to the [Dialogflow ES console](https://dialogflow.cloud.google.com).\n2. Select an agent.\n3. Select **Intents** in the left sidebar menu.\n4. Select an intent.\n5. Expand the *Events* section.\n6. Enter one or more event names.\n\nTo update intent events with the API,\nsee the [Intents](/dialogflow/docs/reference/common-types#intents) type.\n\nEvent parameters\n----------------\n\nWhen invoked, events may also have parameter data\nthat you can access in the triggered intent's responses.\nFor more information, see\n[Parameter reference for an event parameter](/dialogflow/docs/intents-actions-parameters#event)."]]