Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Fulfillment.
By default, your agent responds to a matched intent with a static response.
As an alternative, you can provide a more dynamic response by using
fulfillment. When you enable fulfillment for an intent, Dialogflow responds
to that intent by calling a service that you define. For example, if an
end-user wants to schedule a haircut on Friday, your service can check your
database and respond to the end-user with availability information for
Friday.
For more information, see the fulfillment
guide.
Generated from protobuf message google.cloud.dialogflow.v2.Fulfillment
Namespace
Google \ Cloud \ Dialogflow \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The unique identifier of the fulfillment. Supported formats: - projects/<Project ID>/agent/fulfillment - projects/<Project ID>/locations/<Location ID>/agent/fulfillment This field is not used for Fulfillment in an Environment.
↳ display_name
string
Optional. The human-readable name of the fulfillment, unique within the agent. This field is not used for Fulfillment in an Environment.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class Fulfillment (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.Fulfillment)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.Fulfillment)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.Fulfillment)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.Fulfillment)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.Fulfillment)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.Fulfillment)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.Fulfillment)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.Fulfillment)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.Fulfillment)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.Fulfillment)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.Fulfillment)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.Fulfillment)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.Fulfillment)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.Fulfillment)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.Fulfillment)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.Fulfillment)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.Fulfillment)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.Fulfillment)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.Fulfillment)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.Fulfillment)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.Fulfillment) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class Fulfillment.\n\nBy default, your agent responds to a matched intent with a static response.\n\nAs an alternative, you can provide a more dynamic response by using\nfulfillment. When you enable fulfillment for an intent, Dialogflow responds\nto that intent by calling a service that you define. For example, if an\nend-user wants to schedule a haircut on Friday, your service can check your\ndatabase and respond to the end-user with availability information for\nFriday.\nFor more information, see the [fulfillment\nguide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.Fulfillment`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The unique identifier of the fulfillment.\n\nSupported formats:\n\n- `projects/\u003cProject ID\u003e/agent/fulfillment`\n- `projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e/agent/fulfillment` This field is not used for Fulfillment in an Environment.\n\n### setName\n\nRequired. The unique identifier of the fulfillment.\n\nSupported formats:\n\n- `projects/\u003cProject ID\u003e/agent/fulfillment`\n- `projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e/agent/fulfillment` This field is not used for Fulfillment in an Environment.\n\n### getDisplayName\n\nOptional. The human-readable name of the fulfillment, unique within the\nagent.\n\nThis field is not used for Fulfillment in an Environment.\n\n### setDisplayName\n\nOptional. The human-readable name of the fulfillment, unique within the\nagent.\n\nThis field is not used for Fulfillment in an Environment.\n\n### getGenericWebService\n\nConfiguration for a generic web service.\n\n### hasGenericWebService\n\n### setGenericWebService\n\nConfiguration for a generic web service.\n\n### getEnabled\n\nOptional. Whether fulfillment is enabled.\n\n### setEnabled\n\nOptional. Whether fulfillment is enabled.\n\n### getFeatures\n\nOptional. The field defines whether the fulfillment is enabled for certain\nfeatures.\n\n### setFeatures\n\nOptional. The field defines whether the fulfillment is enabled for certain\nfeatures.\n\n### getFulfillment"]]