Go to the content
DE Download
Pages of the documentation

Action Blocks

The plugin shows a code block of a note as a button. A note with such blocks is a runbook that you can run.

An action block in a note

How to write a block

Use the language opfold-action. Each line is key: value. The field label is the text of the button.

Start a workflow. The note is the task file of the run.

label: Plan this task
workflow: plan.yaml

Start a workflow with another task file and a variable.

label: Review the import
workflow: review.yaml
task: 02 Projects/Demo/task-001 - Single Task.md
var.TARGET: banking import

Start a plugin command. The path of the note is the input of the command.

label: Show the search index
command: rag.status

Open a chat session. {{file}} is a link to the note.

label: Summarize this note
prompt: Summarize {{file}} in five sentences.

Fields

Field Meaning
label The text of the button.
workflow The workflow file that the button starts.
task The task file of the run. The default is the note.
var.<NAME> A variable of the workflow.
command The id of a plugin command.
input The input of the command. The default is the path of the note.
prompt The first message of a chat session.

When the plugin is off

The block shows as a normal code block.