All integrationsNotes

Trilium Notes

Work with the notes in your own Trilium Notes: search them, create notes and add to them, file things under today in your journal, label and move notes, attach files, export a note tree and back up the database.

actions
37
triggers
3

Triggers

Start a workflow when something happens in Trilium Notes.

  • New noteRuns when a note is created in Trilium, anywhere or under the note you choose, with its title, labels and what it says. Notes made before the workflow is turned on don't start it.
  • Note updatedRuns when a note's title or content changes in Trilium, anywhere or under the note you choose, with what it says now. Adding a label or moving a note doesn't start it, and a note being written starts it each time a newer save is found.
  • Label added to noteRuns when a label you choose, such as #todo, is put on a note in Trilium, with the note and what it says. Notes that already carry the label when the workflow is turned on don't start it.

Actions

Steps a workflow can run in Trilium Notes.

  • Search notesSearch your notes the way Trilium's own search box does: words, a label such as #todo, or both, such as #book tolkien.
  • Find notes by labelFind the notes that carry a label, such as every note labelled #todo, most recently changed first.
  • List child notesList the notes directly under a note, in the order Trilium shows them, such as everything in an Inbox note.
  • Get noteGet a note's details: its title, type, labels, relations, where it sits in the tree and when it changed.
  • Get note contentGet what a note says, as Trilium keeps it and as plain Markdown text for a message or an AI step.
  • Download note fileGet the file of a file or image note, such as a PDF kept in Trilium, saved in Lodol for a later step.
  • Create noteCreate a note under another note, with its content, or from a file.
  • Update noteRename a note, or change its type or format. Its content stays as it is.
  • Replace note contentReplace everything a note says with new content.
  • Append to noteAdd to the end of a note, keeping what it already says, such as a new line in a log or a running list.
  • Delete noteDelete a note, with the notes under it. Trilium keeps deleted notes for a while, where they can be restored from its recent changes.
  • Add labelPut a label on a note, such as #todo or #status = waiting. A note that already has it, with that value, is left as it is.
  • Add relationPoint a note at another note with a named relation, such as ~project or ~template.
  • Update attributeChange a label's value, or where a label or relation sits in the note's list. A relation's target can't be changed: delete it and add another.
  • Delete attributeTake a label or relation off a note, by its ID.
  • Remove labelTake a label off a note by its name, such as #todo once the work is done. A label the note inherits from a parent stays.
  • Clone notePlace a note under a second parent as well, the way Trilium's Clone does: it's one note, shown in both places.
  • Move noteMove a note under another parent, such as out of an Inbox note into a project's note.
  • Update placementChange the prefix shown before a note's title in one place, or its position among the parent's notes.
  • Remove placementTake a note out from under one parent. The note stays wherever else it is placed; removing its only placement deletes the note.
  • Refresh note orderTell every open Trilium window the new order of a note's child notes, after their positions were changed. 'Move note' and 'Update placement' do this themselves.
  • Create attachmentAttach a file, or some text, to a note.
  • List attachmentsList the files attached to a note, with their names, formats and sizes.
  • Get attachmentGet an attachment's name, format and size.
  • Download attachmentGet an attachment's file, saved in Lodol for a later step, with what it says when it's text.
  • Update attachmentRename an attachment, change its format or position, or replace its file or text.
  • Delete attachmentDelete an attachment from its note.
  • Get day noteGet the journal's note for a day, such as today's. Trilium makes it if there isn't one yet.
  • Get week noteGet the journal's note for a week, made if there isn't one yet. Week notes have to be turned on in Trilium's journal first.
  • Get month noteGet the journal's note for a month, made if there isn't one yet.
  • Get year noteGet the journal's note for a year, made if there isn't one yet.
  • Get inbox noteGet the note new notes belong in: the note you labelled #inbox, or otherwise the day's note in the journal.
  • Add note to journalCreate a note under a day in your journal, today's unless you choose another, such as a daily summary or something to remember.
  • Export noteExport a note with all the notes under it as a ZIP of HTML or Markdown files, saved in Lodol, such as to email it or keep a copy elsewhere.
  • Create revisionSave a note as it is now to its revision history, such as before a workflow rewrites it, so the old version can be restored in Trilium.
  • Create backupBack up the whole Trilium database to a file on its server, such as every night or before a big change.
  • Get server infoGet the version of Trilium the server runs and where it keeps its data, such as to check the server is up.

Automate Trilium Notes with Lodol.

Connect Trilium Notes, then hand Lodol the job in Slack, Claude or ChatGPT.

We’re letting people in a few at a time.