đź“– AI-powered document chat with Nextcloud files using LangChain and OpenAI

⚡ 2,216 views · 📖 Internal Wiki & Knowledge Base

Description

Main Workflow “AI Nextcloud”


Sub-Workflow “Nextcloud Tool”

  1. Invocation: Triggered by other workflows with the input parameter path (folder path).

  2. File listing: Retrieves every file in the specified folder via the Nextcloud API.

  3. Filter: Allows only readable formats (PDF, Markdown, DOCX).

  4. Download & text extraction

    • PDF → Text via Extract From File
    • Markdown → Raw text
    • DOCX → Text via community node word2text
  5. Aggregation: Combines all extracted text into a single output field and returns it.

> Outcome: Each call yields the plain content of every supported file in a Nextcloud folder—providing rich context for the AI agent to answer user questions accurately.

đź”— Nodes Used

Nextcloud, Execute Workflow Trigger, AI Agent, OpenAI Chat Model, Simple Memory, Call n8n Workflow Tool

📥 Import

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

📖 Importing guide · 🔑 Credential setup