Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Secara default, agen Anda merespons intent yang cocok
dengan respons statis.
Jika menggunakan salah satu opsi
integrasi, Anda dapat memberikan respons yang lebih dinamis menggunakan
fulfillment.
Saat Anda mengaktifkan fulfillment untuk intent, Dialogflow akan merespons intent tersebut dengan memanggil layanan yang Anda tentukan.
Misalnya, jika pengguna akhir ingin menjadwalkan potong rambut pada hari Jumat,
layanan Anda dapat memeriksa database dan merespons pengguna akhir
dengan informasi ketersediaan untuk hari Jumat.
Setiap
intent
memiliki setelan untuk mengaktifkan fulfillment.
Jika intent memerlukan beberapa tindakan oleh sistem atau respons dinamis,
Anda harus mengaktifkan fulfillment untuk intent tersebut.
Jika intent tanpa fulfillment yang diaktifkan cocok, Dialogflow akan menggunakan respons statis yang Anda tentukan untuk intent tersebut.
Saat intent dengan fulfillment yang diaktifkan dicocokkan, Dialogflow akan mengirimkan permintaan ke layanan webhook Anda dengan informasi tentang intent yang cocok.
Sistem Anda dapat melakukan tindakan yang diperlukan dan merespons Dialogflow dengan informasi tentang cara melanjutkan.
Jika fulfillment diaktifkan, respons statis yang Anda tentukan untuk intent
hanya digunakan jika
layanan webhook gagal.
Diagram berikut menunjukkan alur pemrosesan untuk fulfillment.
Pengguna akhir mengetik atau mengucapkan ekspresi.
Dialogflow mencocokkan ekspresi pengguna akhir dengan intent dan mengekstrak parameter.
Dialogflow mengirimkan pesan
permintaan webhook
ke layanan webhook Anda.
Pesan ini berisi informasi tentang intent yang cocok, tindakan, parameter,
dan respons yang ditentukan untuk intent.
Layanan Anda melakukan tindakan sesuai kebutuhan, seperti kueri database atau panggilan API eksternal.
Layanan Anda mengirimkan pesan
respons webhook
ke Dialogflow.
Pesan ini berisi respons yang harus dikirim ke pengguna akhir.
[[["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\u003eFulfillment allows for dynamic responses to user intents, unlike the default static responses.\u003c/p\u003e\n"],["\u003cp\u003eEnabling fulfillment for an intent triggers Dialogflow to call a defined service for a customized response.\u003c/p\u003e\n"],["\u003cp\u003eWhen fulfillment is enabled, Dialogflow sends a webhook request to your service with details about the matched intent.\u003c/p\u003e\n"],["\u003cp\u003eYour service then performs necessary actions and sends a webhook response back to Dialogflow with the tailored reply for the user.\u003c/p\u003e\n"],["\u003cp\u003eThe static response you have set up for an intent will only be used if the webhook service fails when fulfillment is enabled.\u003c/p\u003e\n"]]],[],null,["# Fulfillment\n\nBy default, your agent responds to a matched intent\nwith a static response.\nIf you're using one of the\n[integration](/dialogflow/docs/integrations)\noptions, you can provide a more dynamic response by using\n\n*fulfillment*.\n\nWhen you enable fulfillment for an intent,\nDialogflow responds to that intent\nby calling a service that you define.\nFor example, if an end-user wants to schedule a haircut on Friday,\nyour service can check your database and respond to the end-user\nwith availability information for Friday.\n\n\nEach\n[intent](/dialogflow/docs/intents-overview)\nhas a setting to enable fulfillment.\nIf an intent requires some action by your system or a dynamic response,\nyou should enable fulfillment for the intent.\nIf an intent without fulfillment enabled is matched,\nDialogflow uses the static response you defined for the intent.\n\n\nWhen an intent with fulfillment enabled is matched,\nDialogflow sends a request to your *webhook* service with information about the matched intent.\nYour system can perform any required actions and respond to\nDialogflow with information for how to proceed.\nWhen fulfillment is enabled, the static response you defined for the intent\nis only used if your\n[webhook service fails](/dialogflow/es/docs/fulfillment-webhook#errors).\nThe following diagram shows the processing flow for fulfillment.\n\n1. The end-user types or speaks an expression.\n2. Dialogflow matches the end-user expression to an intent and extracts parameters.\n3. Dialogflow sends a [webhook request](/dialogflow/docs/fulfillment-webhook#webhook_request) message to your webhook service. This message contains information about the matched intent, the action, the parameters, and the response defined for the intent.\n4. Your service performs actions as needed, like database queries or external API calls.\n5. Your service sends a [webhook response](/dialogflow/docs/fulfillment-webhook#webhook_response) message to Dialogflow. This message contains the response that should be sent to the end-user.\n6. Dialogflow sends the response to the end-user.\n7. The end-user sees or hears the response."]]