conversation.SummaryAgent.summary
and contains an explanation of what happened in conversation, like “The user asked for the opening hours and the bot answered by saying the business works 24/7”. You can choose how detailed the summary is by setting the max tokens in the Agent settings.conversation.SummaryAgent.transcript
and contains the history of the conversation going back a certain amount of turns. You can set that amount of turns in the Summary Agent settings. If you set it to 0, the transcript will contain all messages.summary
variable is useful if you don’t need to have many details about the conversation, especially because some of them get lengthy and if you may not want all that data. The transcript
variable is the best way to have the full history of the conversation in a single text without needing Hooks or other workarounds. Using the Summary Agent for exporting conversations is also great because you have access to the history during the very conversation so you don’t need to make manual or scheduled requests to our API from external services.