Class Webhook (0.8.0)

Webhook(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Webhooks host the developer's business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow's natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.

Attributes: name (str): The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook] populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>. display_name (str): Required. The human-readable name of the webhook, unique within the agent. generic_web_service (google.cloud.dialogflowcx_v3beta1.types.Webhook.GenericWebService): Configuration for a generic web service. service_directory (google.cloud.dialogflowcx_v3beta1.types.Webhook.ServiceDirectoryConfig): Configuration for a Service Directory <https://cloud.google.com/service-directory>__ service. timeout (google.protobuf.duration_pb2.Duration): Webhook execution timeout. Execution is considered failed if Dialogflow doesn't receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds. disabled (bool): Indicates whether the webhook is disabled.

Inheritance

builtins.object > proto.message.Message > Webhook