Templates / Generate SharePoint Word documents from Outlook emails with OpenAI and Pandoc

Generate SharePoint Word documents from Outlook emails with OpenAI and Pandoc

Ready for 3.0

by AI Solutions ✓ · 3 views · created 2026-08-18 · Document Extraction, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 20 nodes and runs on Microsoft Outlook events. Along the way it connects Microsoft Outlook and OpenAI.

How it runs

Trigger: On Microsoft Outlook events.

  1. Set Deployment Configuration (Edit Fields (Set)): sets or maps fields
  2. Validate Sender & Extract Request (Code): runs custom JavaScript code
  3. If: checks a condition and branches into true / false
  4. Fetch Template Catalog (HTTP Request): calls an HTTP API
  5. Build Template Catalog for AI (Code): runs custom JavaScript code
  6. AI Match Template & Extract Data (OpenAI): uses OpenAI
  7. Parse Template Match Decision (Code): runs custom JavaScript code
  8. If: checks a condition and branches into true / false
  9. Download Template Document (HTTP Request): calls an HTTP API
  10. Prepare No-Match Reply (Edit Fields (Set)): sets or maps fields

…plus 8 more steps. See the full node list below.

Services it uses

Microsoft OutlookOpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Quick overview This workflow monitors a Microsoft Outlook mailbox for document-generation requests, matches each request to a SharePoint template using OpenAI, converts the filled template to DOCX via a Pandoc service, uploads the result to Microsoft…

Excerpt from AI Solutions's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.