Interface: Conversation<CustomData>
Conversation between the user and the chatbot as stored in the database.
Type parameters
Name | Type |
---|---|
CustomData | extends ConversationCustomData = ConversationCustomData |
Properties
_id
• _id: ObjectId
Defined in
packages/mongodb-chatbot-server/src/services/ConversationsService.ts:152
createdAt
• createdAt: Date
The date the conversation was created.
Defined in
packages/mongodb-chatbot-server/src/services/ConversationsService.ts:156
customData
• Optional
customData: CustomData
Custom data to include in the Conversation persisted to the database. You can pass this data to the () method.
Defined in
packages/mongodb-chatbot-server/src/services/ConversationsService.ts:164
messages
• messages: Message
[]
Messages in the conversation.
Defined in
packages/mongodb-chatbot-server/src/services/ConversationsService.ts:154
requestOrigin
• Optional
requestOrigin: string
The hostname that the request originated from.
Defined in
packages/mongodb-chatbot-server/src/services/ConversationsService.ts:158