Skip to content

AI Context Item node

Injects one context item, chosen when you build the workflow.

Set it up

  1. Drag AI Context Item from the AI Context category onto the canvas.
  2. In the config panel, search for the item by label in the AI Context Item field. The list shows published items you can view, with their type.
  3. Select an item to see its purpose, the first 300 characters of its content, and a link to edit it.
  4. Connect rendered_text to additional_context on the AI Agent Executor.

The node has no inputs to connect. The item is fixed in the node's configuration.

Outputs

Output Content
rendered_text The rendered block for the item.
content The item's raw Markdown content.
purpose The item's purpose: when the AI should use it.
label The item's admin label.
context_id The item's entity ID. On failure, the stored value as given.
success TRUE when the item loaded.
error_message Why it failed, otherwise empty.

Use content when a downstream node needs the text without the block formatting, for example to put it in a prompt template.

What is stored

The node stores the item's UUID. A workflow exported as configuration keeps pointing at the same item on any site that has it, for example a site built from a recipe that ships both the workflow and the item.

Workflows saved before the module stored UUIDs hold the numeric entity ID. The node still accepts it. Reselect the item and save the workflow to switch to the UUID.

context_id in the output is always the entity ID, whatever the node stores, so downstream nodes get the same kind of ID as selected_ids on the AI Context node.

Subcontext

The node renders only the selected item. Its subcontext children are not included. Use the AI Context node with the parent in Always Include if you need the children too.

Failures

The node returns success: FALSE when:

  • no item is selected (parameter validation also rejects this);
  • the stored value is neither a UUID nor a positive integer;
  • the item does not exist on this site;
  • the item is unpublished;
  • the user the workflow runs as cannot view the item.