Dialogflow v3 API - Class WebhookRequest (2.5.0)

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

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

The request message for a webhook call. The request is sent as a JSON object and the field names will be presented in camel cases.

You may see undocumented fields in an actual request. These fields are used internally by Dialogflow and should be ignored.

Inheritance

Object > WebhookRequest

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

WebhookRequest()

public WebhookRequest()

WebhookRequest(WebhookRequest)

public WebhookRequest(WebhookRequest other)
Parameter
NameDescription
otherWebhookRequest

Properties

DetectIntentResponseId

public string DetectIntentResponseId { get; set; }

Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that will be returned to the API caller.

Property Value
TypeDescription
String

FulfillmentInfo

public WebhookRequest.Types.FulfillmentInfo FulfillmentInfo { get; set; }

Always present. Information about the fulfillment that triggered this webhook call.

Property Value
TypeDescription
WebhookRequest.Types.FulfillmentInfo

IntentInfo

public WebhookRequest.Types.IntentInfo IntentInfo { get; set; }

Information about the last matched intent.

Property Value
TypeDescription
WebhookRequest.Types.IntentInfo

LanguageCode

public string LanguageCode { get; set; }

The language code specified in the [original request][QueryInput.language_code].

Property Value
TypeDescription
String

Messages

public RepeatedField<ResponseMessage> Messages { get; }

The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response];

Property Value
TypeDescription
RepeatedField<ResponseMessage>

PageInfo

public PageInfo PageInfo { get; set; }

Information about page status.

Property Value
TypeDescription
PageInfo

Payload

public Struct Payload { get; set; }

Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].

Property Value
TypeDescription
Struct

QueryCase

public WebhookRequest.QueryOneofCase QueryCase { get; }
Property Value
TypeDescription
WebhookRequest.QueryOneofCase

SentimentAnalysisResult

public WebhookRequest.Types.SentimentAnalysisResult SentimentAnalysisResult { get; set; }

The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.

Property Value
TypeDescription
WebhookRequest.Types.SentimentAnalysisResult

SessionInfo

public SessionInfo SessionInfo { get; set; }

Information about session status.

Property Value
TypeDescription
SessionInfo

Text

public string Text { get; set; }

If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.

Property Value
TypeDescription
String

Transcript

public string Transcript { get; set; }

If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.

Property Value
TypeDescription
String

TriggerEvent

public string TriggerEvent { get; set; }

If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain the name of the event.

Property Value
TypeDescription
String

TriggerIntent

public string TriggerIntent { get; set; }

If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

Property Value
TypeDescription
String

TriggerIntentAsIntentName

public IntentName TriggerIntentAsIntentName { get; set; }

IntentName-typed view over the TriggerIntent resource name property.

Property Value
TypeDescription
IntentName