brief-accountant-68119
08/18/2023, 4:45 PM${message.sender}:${message.preview}
)
}
})
const myStr = Using the provided client information and chat history as context, try to answer the question as honestly as possible by keeping the conversation going with next steps to be taken. If you don't know the answer, say "I don't know."
Your answer should be friendly and complete, using the same words from the question as much as possible.
Client context: ${JSON.stringify(workflow.client)}
Chat history: ${JSON.stringify(workflow.chatHistory)}
User question: ${event.preview}}
console.log(The prompt is ${myStr.length} characters long
)
if (myStr.length > 5000) {
console.log('The prompt is too long! Omitting the chat history...')
workflow.chatHistory = []
}