Write Obsidian Note
AI-generatedOverview
This node allows users to write or update a note in an Obsidian vault. It is useful for automating note management within an Obsidian vault, such as updating note content or frontmatter metadata programmatically. For example, users can automate the creation of daily notes, update project documentation, or sync data from other sources into Obsidian notes.
Use Case Examples
- Automate creation of a daily note with specific frontmatter tags.
- Update an existing note's content and frontmatter based on external data.
Properties
| Name | Meaning |
|---|---|
| Obsidian Vault Path | The path to the user's Obsidian vault, which is the root directory where notes are stored. |
| Filename | The path to the specific note inside the configured vault to write or update. |
| Frontmatter Values To Save | A JSON object representing the frontmatter metadata to save or update in the note. |
| Content | The new content to save in the note. If left blank, the existing content is preserved. |
Output
JSON
filename- The full resolved path of the note file that was written or updated.content- The content of the note after writing.frontmatter- The frontmatter metadata saved in the note after writing.
Dependencies
- Requires access to the local filesystem to read and write files in the specified Obsidian vault path.
Troubleshooting
- Ensure the 'Obsidian Vault Path' is correctly set and accessible by the node to avoid path resolution errors.
- The note path must be inside the configured vault; otherwise, an error is thrown to prevent writing outside the vault.
- The 'Frontmatter Values To Save' must be a valid JSON or YAML object; invalid input will cause an error.
- If the 'Content' field is left blank, the existing note content is preserved; ensure this is intended behavior.