-
Notifications
You must be signed in to change notification settings - Fork 12
/
posttextresponse.go
57 lines (35 loc) · 1.75 KB
/
posttextresponse.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Posttextresponse
type Posttextresponse struct {
// BotState - The state of the bot after completion of the request
BotState *string `json:"botState,omitempty"`
// ReplyMessages - The list of messages to respond with, if any
ReplyMessages *[]Posttextmessage `json:"replyMessages,omitempty"`
// IntentName - The name of the intent the bot is either processing or has processed, this will be blank if no intent could be detected.
IntentName *string `json:"intentName,omitempty"`
// Slots - Data parameters detected and filled by the bot.
Slots *map[string]string `json:"slots,omitempty"`
// BotCorrelationId - The optional ID specified in the request
BotCorrelationId *string `json:"botCorrelationId,omitempty"`
// AmazonLex - Raw data response from AWS (if called)
AmazonLex *map[string]interface{} `json:"amazonLex,omitempty"`
// GoogleDialogFlow - Raw data response from Google Dialogflow (if called)
GoogleDialogFlow *map[string]interface{} `json:"googleDialogFlow,omitempty"`
// GenesysDialogEngine - Raw data response from Genesys' Dialogengine (if called)
GenesysDialogEngine *map[string]interface{} `json:"genesysDialogEngine,omitempty"`
// GenesysBotConnector - Raw data response from Genesys' BotConnector (if called)
GenesysBotConnector *map[string]interface{} `json:"genesysBotConnector,omitempty"`
// NuanceMixDlg - Raw data response from Nuance Mix Dlg (if called)
NuanceMixDlg *map[string]interface{} `json:"nuanceMixDlg,omitempty"`
}
// String returns a JSON representation of the model
func (o *Posttextresponse) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}