Dialogflow v3 API - Class Webhook (2.17.0)

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

Reference documentation and code samples for the Dialogflow v3 API class Webhook.

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
NameDescription
otherWebhook

Properties

Disabled

public bool Disabled { get; set; }

Indicates whether the webhook is disabled.

Property Value
TypeDescription
bool

DisplayName

public string DisplayName { get; set; }

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

Property Value
TypeDescription
string

GenericWebService

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

Configuration for a generic web service.

Property Value
TypeDescription
WebhookTypesGenericWebService

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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

Property Value
TypeDescription
string

ServiceDirectory

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

Configuration for a Service Directory service.

Property Value
TypeDescription
WebhookTypesServiceDirectoryConfig

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
TypeDescription
Duration

WebhookCase

public Webhook.WebhookOneofCase WebhookCase { get; }
Property Value
TypeDescription
WebhookWebhookOneofCase

WebhookName

public WebhookName WebhookName { get; set; }

WebhookName-typed view over the Name resource name property.

Property Value
TypeDescription
WebhookName