🔬 Analyze Mattermost attachments with OpenAI vision for AI agents

⚡ 16 views · 🔬 Document Extraction & Analysis

Description

Overview

Subworkflow for analyzing Mattermost attachments.

Per-attachment behavior

Setup checklist

  1. Set MATTERMOST_BASE_URL in the Config node.
  2. Create an HTTP Header Auth credential called “Mattermost PAT” with:
    • Name: Authorization
    • Value: Bearer <your_personal_access_token>
  3. Attach this credential to all three HTTP Request nodes (Get file info, Download file, Download text file).
  4. Attach your OpenAI credential to the “OpenAI: Analyze Image” node.
  5. Tune in Config: VISION_MODEL, MAX_IMAGE_SIZE_BYTES, MAX_TEXT_SIZE_BYTES, MAX_TEXT_LINES.

Notes

đź”— Nodes Used

HTTP Request, Execute Workflow Trigger, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup