Please enable JavaScript.
Coggle requires JavaScript to display documents.
ChatBot Front-end State (appState (chatWindowOpen: boolean, unreadMessage:…
ChatBot Front-end State
appState
chatWindowOpen: boolean
unreadMessage: boolean
clientTyping
botTyping
profilePageOpen
mousePosition
serverConnected: boolean
windowActive: boolean
windowVisibility: boolean
messages: Array
Message(Type)
timestamp: string
infoType (what kind of message component)
DocLink / Video / Prompt / Text / Event/ Iridize/ Image
data(if type not bot_answers;
data structure is related with infoType
)
DocLink
url
title
createdAt
intro
imgUrl
creator
id
Video
url
createdAt
title
creator
Event
schedule
date
time
title
text
eventType
url
Text
text
Image
imgUrl
text
url
Iridize
apiName
name
author
role (Bot / Client / Support)
popupMsg: boolean
unread: boolean
id: string
persistTime: number
createdAt: string (some popup message is created before send)
type
UserChat/SupportChat/BotReply/BotAnswers
session
id
createdAt
isRated: boolean
rating: boolean
Answers(Type)
type
BotAnswers
session
id
createdAt
id
author
role (Bot / Client / Support)
unread
answers: [Message]
timestamp
queryID
focusOn: answer.id
inputField
addEmoji
typing
text
focused
blur
socket
userInfo
role
firstname
lastname
id
location
axData
chatbotEnvironment
session
id
started
popMessageStack: [id]
messageRepo: {[id: string]: Message}
incomingMessageQueue: [Message]
answerExpandList: {[answersId: string]: string (answer id)}