pub struct GoogleCloudDialogflowV2Fulfillment {
pub display_name: Option<String>,
pub enabled: Option<bool>,
pub features: Option<Vec<GoogleCloudDialogflowV2FulfillmentFeature>>,
pub generic_web_service: Option<GoogleCloudDialogflowV2FulfillmentGenericWebService>,
pub name: Option<String>,
}
Expand description
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.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- agent get fulfillment projects (response)
- agent update fulfillment projects (request|response)
- locations agent get fulfillment projects (response)
- locations agent update fulfillment projects (request|response)
Fields§
§display_name: Option<String>
Optional. The human-readable name of the fulfillment, unique within the agent. This field is not used for Fulfillment in an Environment.
enabled: Option<bool>
Optional. Whether fulfillment is enabled.
features: Option<Vec<GoogleCloudDialogflowV2FulfillmentFeature>>
Optional. The field defines whether the fulfillment is enabled for certain features.
generic_web_service: Option<GoogleCloudDialogflowV2FulfillmentGenericWebService>
Configuration for a generic web service.
name: Option<String>
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.
Trait Implementations§
source§impl Clone for GoogleCloudDialogflowV2Fulfillment
impl Clone for GoogleCloudDialogflowV2Fulfillment
source§fn clone(&self) -> GoogleCloudDialogflowV2Fulfillment
fn clone(&self) -> GoogleCloudDialogflowV2Fulfillment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more