On New E-mail
|
V
Send a message on discord via webhook
Now the problem that I have is that some e-mail are too long/are in HTML, which discord then rejects, and I’m wondering if there is a way to add a function that will do the following:
On failure send a message via a discord webhook: “New E-mail; Can’t parse, please check the inbox”
My advice is to check if it is HTML, and convert it to markdown using our Text Helper piece
then use a code piece with our AI Copilot to truncate the text by the max amount of text Discord allows and then send the message using the Discord action.