Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#display_name
def display_name() -> ::String
-
(::String) — Optional. The human-readable name of the fulfillment, unique within the
agent.
This field is not used for Fulfillment in an Environment.
#display_name=
def display_name=(value) -> ::String
-
value (::String) — Optional. The human-readable name of the fulfillment, unique within the
agent.
This field is not used for Fulfillment in an Environment.
-
(::String) — Optional. The human-readable name of the fulfillment, unique within the
agent.
This field is not used for Fulfillment in an Environment.
#enabled
def enabled() -> ::Boolean
- (::Boolean) — Optional. Whether fulfillment is enabled.
#enabled=
def enabled=(value) -> ::Boolean
- value (::Boolean) — Optional. Whether fulfillment is enabled.
- (::Boolean) — Optional. Whether fulfillment is enabled.
#features
def features() -> ::Array<::Google::Cloud::Dialogflow::V2::Fulfillment::Feature>
- (::Array<::Google::Cloud::Dialogflow::V2::Fulfillment::Feature>) — Optional. The field defines whether the fulfillment is enabled for certain features.
#features=
def features=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::Fulfillment::Feature>
- value (::Array<::Google::Cloud::Dialogflow::V2::Fulfillment::Feature>) — Optional. The field defines whether the fulfillment is enabled for certain features.
- (::Array<::Google::Cloud::Dialogflow::V2::Fulfillment::Feature>) — Optional. The field defines whether the fulfillment is enabled for certain features.
#generic_web_service
def generic_web_service() -> ::Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService
- (::Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService) — Configuration for a generic web service.
#generic_web_service=
def generic_web_service=(value) -> ::Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService
- value (::Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService) — Configuration for a generic web service.
- (::Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService) — Configuration for a generic web service.
#name
def name() -> ::String
-
(::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.
#name=
def name=(value) -> ::String
-
value (::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.
-
(::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.