@famous-boots-34783 this sends it to my slack webhook. You can also set up one with zapier and gmail.
// Your Slack webhook URL
const url = 'https://hooks.slack.com/services/YOURSLACKHOOKHERE';
// 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 '';
}