History
Go back and see what you and your character have been through together
// Assuming you have created a Carter object called carter
// Access the latest interaction
const lastInteraction = carter.history[0]
// OR
const lastInteraction = carter.latest()
// Access a specific entry
const interaction = carter.history[7]
// Loop through interactions and log the results
for (const interactions of carter.history) {
console.log(interaction.payload.text) // Your message to carter
console.log(interaction.outputText) // His response
}Last updated