How to see each individual chat from users
# 🤝help
n
is there a way to see each the chat of each user? this way when a customer service agent connects, they can view the existing messages.
m
// Your Slack webhook URL const url = 'https://hooks.slack.com/services/YOURSLACKWEBHOOK; // Get the transcript const summaryText = conversation.SummaryAgent.transcript; const payload = { text: summaryText }; try { const response = await axios.post(url, payload); if (response.status !== 200) { throw new Error(HTTP error! status: ${response.status}); } return 'Message sent to Slack successfully!'; } catch (error) { console.error(error); return ''; }
That sends transcripts to my slack. You can also record variables into google sheets. This is what I use
workflow.makeSuccess = false; const leadData = { example: workflow.example, exampleEmail: workflow.exampleEmail, }; try { const response = await axios.post('https://hooks.zapier.com/hooks/catch/YOURZAPIERWEBHOOK', leadData); workflow.makeSuccess = true; } catch (error) { console.error(error); }
@nutritious-wall-45807 @flaky-furniture-79886
n
Thats cool man
5 Views