class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
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](cloud.google.com/dialogflow/docs/ fulfillment-overview).
Attributes
The human-readable name of the fulfillment, unique within the agent. This field is not used for Fulfillment in an Environment. Corresponds to the JSON property `displayName` @return [String]
Whether fulfillment is enabled. Corresponds to the JSON property `enabled` @return [Boolean]
Whether fulfillment is enabled. Corresponds to the JSON property `enabled` @return [Boolean]
The field defines whether the fulfillment is enabled for certain features. Corresponds to the JSON property `features` @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentFeature>]
Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications: - Basic authentication with username and password. - Authentication with additional authentication headers. More information could be found at: cloud.google.com/dialogflow/docs/ fulfillment-configure. Corresponds to the JSON property `genericWebService` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService]
Required. The unique identifier of the fulfillment. Supported formats: - ` projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This field is not used for Fulfillment in an Environment. Corresponds to the JSON property `name` @return [String]
Public Class Methods
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 9526 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 9531 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @enabled = args[:enabled] if args.key?(:enabled) @features = args[:features] if args.key?(:features) @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service) @name = args[:name] if args.key?(:name) end