Constructor
new ConversationContext(settings)
Constructor of the class.
Parameters:
Name | Type | Description |
---|---|---|
settings |
Object | Settings for the instance. |
Methods
getConversationContext()
Given a session, return a promise to resolve the conversation context.
getConversationId(session) → {String}
Given a session instance of a chatbot, return the conversation identifier.
Parameters:
Name | Type | Description |
---|---|---|
session |
Object | Session instance of a message of chatbot. |
Returns:
Identifier of the conversation.
- Type
- String
setConversationContext()
Given a session, return a promise to set the conversation context.