AI-powered document chat with Nextcloud files using LangChain and OpenAI
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER 🎉 Early Black Friday Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Main Workflow “AI Nextcloud”
- Entry point: A public chat-trigger greets the user; every incoming chat message starts the flow.
- AI agent: A LangChain agent (“AI Nextcloud”) uses the configured OpenAI model plus short-term memory to continue the dialogue in context.
- Purpose: Answers questions about files stored in a Nextcloud folder. The user simply includes the folder path in their question.
- Tool integration: Calls the sub-workflow “Nextcloud Tool” whenever it needs to read files and pass their text back to the AI.
Sub-Workflow “Nextcloud Tool”
Invocation: Triggered by other workflows with the input parameter
path(folder path).File listing: Retrieves every file in the specified folder via the Nextcloud API.
Filter: Allows only readable formats (PDF, Markdown, DOCX).
Download & text extraction
- PDF → Text via Extract From File
- Markdown → Raw text
- DOCX → Text via community node word2text
Aggregation: Combines all extracted text into a single
outputfield 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.