Class Webhook (1.11.0)

public sealed class Webhook : IMessage<Webhook>, IEquatable<Webhook>, IDeepCloneable<Webhook>, IBufferMessage, IMessage

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.

Inheritance

Object > Webhook

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

Webhook()

public Webhook()

Webhook(Webhook)

public Webhook(Webhook other)
Parameter
Name Description
other Webhook

Properties

Disabled

public bool Disabled { get; set; }

Indicates whether the webhook is disabled.

Property Value
Type Description
Boolean

DisplayName

public string DisplayName { get; set; }

Required. The human-readable name of the webhook, unique within the agent.

Property Value
Type Description
String

GenericWebService

public Webhook.Types.GenericWebService GenericWebService { get; set; }

Configuration for a generic web service.

Property Value
Type Description
Webhook.Types.GenericWebService

Name

public string Name { get; set; }

The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/agents/&lt;Agent ID>/webhooks/&lt;Webhook ID>.

Property Value
Type Description
String

ServiceDirectory

public Webhook.Types.ServiceDirectoryConfig ServiceDirectory { get; set; }

Configuration for a Service Directory service.

Property Value
Type Description
Webhook.Types.ServiceDirectoryConfig

Timeout

public Duration Timeout { get; set; }

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.

Property Value
Type Description
Duration

WebhookCase

public Webhook.WebhookOneofCase WebhookCase { get; }
Property Value
Type Description
Webhook.WebhookOneofCase

WebhookName

public WebhookName WebhookName { get; set; }

WebhookName-typed view over the Name resource name property.

Property Value
Type Description
WebhookName

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月05日 UTC.