// Your Slack webhook URL const url = 'https://hoo...
# 🌎general
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 ''; }