Mongo¶
-
mongo.
create_entry
(user, entry, agent)¶ This method creates an entry in the conversation thread between the user and the chatbot. The id of the current channel is also stored.
- Parameters:
param user: The user object containing all the information of the user. param entry: The current entry of the conversation, the input context is also stored. param agent: The agent name of the conversation. - Return:
- The id of the current interaction stored.
-
mongo.
update_entry
(entry_id, output)¶ This method updates the output of the current conversation thread.
Parameters:
param entry_id: The id of the message. param output: The output context of the interaction.