PromptCache icon

PromptCache

Read prompts, versions, variables, and render templates from PromptCache

Actions7

Rendering → Invoke

AI-generated

Summary

Invokes a published PromptCache template for each input item, sending the supplied variables and optional environment or version selection. The API key must have prompts:read scope.

Inputs

  • Prompt ID (required) — The PromptCache prompt ID.
  • Variables (required) — A JSON object of values for the published template's required variables.
  • Environment — Choose Default, Preview, or Production to select the published environment slot.
  • Version Number — Select a published version number. Leave at 0 to use the latest published version, or the selected environment slot when one is set.

Output shape

One n8n item per input item, containing the API response as its json value.

The response is returned after unwrapping a PromptCache success envelope when present. Invalid variables or API errors fail the operation unless n8n error handling is configured.

Links

Discussion