Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Fulfillment (v1.1.0)

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
Returns
  • (::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
Parameter
  • value (::String) — Optional. The human-readable name of the fulfillment, unique within the agent.

    This field is not used for Fulfillment in an Environment.

Returns
  • (::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
Returns
  • (::Boolean) — Optional. Whether fulfillment is enabled.

#enabled=

def enabled=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether fulfillment is enabled.
Returns
  • (::Boolean) — Optional. Whether fulfillment is enabled.

#features

def features() -> ::Array<::Google::Cloud::Dialogflow::V2::Fulfillment::Feature>
Returns

#features=

def features=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::Fulfillment::Feature>
Parameter
Returns

#generic_web_service

def generic_web_service() -> ::Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService
Returns

#generic_web_service=

def generic_web_service=(value) -> ::Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.