Good afternoon, i have a problem, I want to save the chat conversation in a spreadsheet, but I can't.
I use this code in an execute code but it doesn't work for me:
workflow.conversationTrans = 'the';
const conversationTranscript = _.get(workflow, 'conversation.SummaryAgent.transcript', '')
workflow.conversationTrans = conversationTranscript
workflow.zapierSuccess = false
const leadData = {
conversation: conversationTranscript
//conversation: workflow.conversationTrans
//conversation:{{conversation.SummaryAgent.transcript}}
}
try {
const response = await axios.post('https://hooks.zapier.com/hooks/catch/16246930/39wvcs2/', leadData)
console.log(response.data)
workflow.zapierSuccess = true
} catch(error) {
console.error(error)
}