Back to Templates
Trigger: The workflow starts with the Microsoft Outlook Trigger node, polling your inbox every minute for new emails.
Extract & Clean Email Content: The email’s key fields (from, subject, isRead, body) are extracted. The body is converted from HTML to Markdown, then sanitized to plain text for reliable AI processing.
Node Setup Details:
Microsoft Outlook Trigger
Markdown Node
{{$json["body"]["content"]}} (HTML email body)Email Body MarkdownSanitize Node (Code Node)
Email Body Markdown from previous node// Get the markdown content from the previous node
const markdownContent = $input.item.json["Email Body Markdown"];
Setup AI tools