n8n × Nextcloud · Episode 1 of 20 · spectacular · medium
The new series connects n8n with Nextcloud, one workflow for everyday office work every three weeks. It starts with the morning briefing. Nextcloud can export calendars and tasks as JSON, with recurring events already expanded. n8n fetches both, an AI turns them into five lines and posts them to a Talk room. It also works without AI: then you get a clean list.
Nextcloud apps: Calendar, Tasks, Talk, Assistant/AI
How it works
- Weekdays at 07:30: starts the workflow Monday to Friday at 7:30 (the workflow's time zone).
- Config: collects all personal values in one place: Nextcloud address, user, calendar, Talk room, language and AI endpoint. n8n works out the start and end of the day itself.
- Today's events: fetches the calendar through the CalDAV export as jCal (JSON).
expand=1withstartandendexpands today's recurring events. - Open tasks: uses
componentType=VTODOto get the tasks of the Nextcloud Tasks app, also as JSON. - Wait for both: waits until both requests are done.
- Build briefing: reads both JSON answers, sorts the meetings, spots overlaps and keeps only tasks that are due today, overdue or important. The result is a plain list plus the request for the AI.
- Use AI?: decides from
use_aiwhether to ask the AI. - AI summary: sends the list to an OpenAI-compatible endpoint. The instruction forbids inventing anything and puts overlaps and overdue items first.
- Compose message: takes the AI text, or the plain list when there is none. So the briefing always arrives.
- Post to Talk: posts the message to the chosen room through the Talk chat API (OCS).
What it is good for in the office
For anyone who opens three apps every morning just to see what the day looks like. The briefing lands where the team already talks, on the phone too via the Talk app. Double bookings stand out before the first call comes in.
Safety and limits
The workflow only reads; it changes no meetings and no tasks. It posts with your account, so best use a room of your own that only you are in. Meeting titles are often confidential: with use_ai = no nothing leaves your server; otherwise only send them to a provider you trust (for example an EU data centre or your own LocalAI server). An app password can be revoked on its own at any time.
Make it yours
Several calendars? Duplicate the “Today's events” node and add one more input to the merge. Instead of Talk you can send an e-mail or a Nextcloud notification. And if you want to hear the briefing, send the text to the Nextcloud Assistant's text-to-speech (coming in a later episode).
Import it in five minutes
- Download the workflow: nc-01.json.
- In n8n, top right “…” → “Import from File”.
- In Nextcloud, under Personal settings → Security → Devices & sessions, create an app password just for n8n. In n8n turn it into a “Basic Auth” credential (user name + app password) and select it in every Nextcloud node.
- In the Config node replace the placeholders: your Nextcloud address, user name, calendar, Talk room (the token is in the room address after
/call/). - Press “Execute workflow” once, check the result, then activate it.
The AI node needs an OpenAI-compatible endpoint as a “Header Auth” credential, for example IONOS AI Model Hub, your own LocalAI server or Mistral. Address and model are in the Config node. If the AI fails, the workflow carries on with a plain list.
New to n8n? The basics are in n8n introduced.
All episodes of the series →
The sister series: an n8n workflow of the week, every Thursday →