Skip to content
Permalink
Browse files

Add type for FollowupEventInput

  • Loading branch information...
dfischer committed Aug 27, 2018
1 parent c8e0c0e commit 6e5b677a24567bb9a35b03f6645a07615953b131
Showing with 14 additions and 6 deletions.
  1. +14 −6 fulfillment.go
@@ -9,12 +9,20 @@ import (
// Fulfillment is the response sent back to dialogflow in case of a successful
// webhook call
type Fulfillment struct {
FulfillmentText string `json:"fulfillmentText,omitempty"`
FulfillmentMessages Messages `json:"fulfillmentMessages,omitempty"`
Source string `json:"source,omitempty"`
Payload interface{} `json:"payload,omitempty"`
OutputContexts Contexts `json:"outputContexts,omitempty"`
FollowupEventInput interface{} `json:"followupEventInput,omitempty"`
FulfillmentText string `json:"fulfillmentText,omitempty"`
FulfillmentMessages Messages `json:"fulfillmentMessages,omitempty"`
Source string `json:"source,omitempty"`
Payload interface{} `json:"payload,omitempty"`
OutputContexts Contexts `json:"outputContexts,omitempty"`
FollowupEventInput FollowupEventInput `json:"followupEventInput,omitempty"`
}

// FollowupEventInput Optional. Makes the platform immediately invoke another sessions.detectIntent call internally with the specified event as input.
// https://dialogflow.com/docs/reference/api-v2/rest/v2beta1/projects.agent.sessions/detectIntent#EventInput
type FollowupEventInput struct {
Name string `json:"name"`
LanguageCode string `json:"languageCode,omitempty"`
Parameters interface{} `json:"parameters,omitempty"`
}

// Messages is a simple slice of Message

0 comments on commit 6e5b677

Please sign in to comment.
You can’t perform that action at this time.