Is there a way to save every conversation transcri...
# 🤝help
h
hey guys Is there a way to save every conversation transcript?
b
I am doing this currently with an API call that sends the conversation to an external DB, you could do that
h
is there any youtuve video about it so i can see the steps? or can you share with me the code ? thank you
b
I do something like this after the user + bot have 1 interaction:
Copy code
const url = 'https://my-url/endpoint'
const headers = {
  'Content-Type': 'application/json',
  'Authorization': `Bearer ${env.myDB}`
}
const userId = user.userId
const payload = {
  user_id: userId,
  bot_message: workflow.botMessage,
  user_message: workflow.userMessage
}
const response = await axios.post(url, payload, { headers })
3 Views