jjzjj

WebhookResponse

全部标签

go - 如何发送 FulfillmentMessages 作为 Dialogflow v2 WebhookResponse 的一部分?

我正在尝试将履行消息作为Dialogflow的v2APIWebhookResponse的一部分发回。这个有效:仅发送一个FulfillmentText作为我的响应的一部分工作正常(在ActionsonGoogleSimulator中测试应用程序以正确的FulfillmentText值回复):funcrandom(c*gin.Context,wrdialogflow.WebhookRequest){log.Println("Randomactiondetected")fullfillment:=dialogflow.WebhookResponse{FulfillmentText:"foo

go - 如何发送 FulfillmentMessages 作为 Dialogflow v2 WebhookResponse 的一部分?

我正在尝试将履行消息作为Dialogflow的v2APIWebhookResponse的一部分发回。这个有效:仅发送一个FulfillmentText作为我的响应的一部分工作正常(在ActionsonGoogleSimulator中测试应用程序以正确的FulfillmentText值回复):funcrandom(c*gin.Context,wrdialogflow.WebhookRequest){log.Println("Randomactiondetected")fullfillment:=dialogflow.WebhookResponse{FulfillmentText:"foo