Skip to content
On this page

<<EasyGPT>>.advanced.importChat()

Import a chat log.

Chat logs may be imported and exported. For instance, you might use this to preserve a prior interaction a user had with your chatbot and load it again when they return.

Usage

js
instance.advanced.importChat(messages);

// Continue conversation.
instance.addMessage("What we're we talking about again?");

Parameters

PARAMETERTYPEDefaultDESCRIPTION
chatLogArrayN/AA list of messages, sourced from exportChat.

Returns

EasyGPT instance (<<EasyGPT>>)