Raita logo

Prompt Variables

Variables are placeholders in your prompt text that Raita replaces at generation time.

Write them as {variableName} anywhere in a prompt field.

Prompt editor with variables


Common Variables (all modes)

VariableReplaced with
{topic}The Article Worker's topic field
{keyword}Same as {topic} (alias)
{niche}The worker's niche field
{language}The worker's language field
{topicQueryParam}URL-encoded version of {topic} (used in search macros)

Blaze Mode Variables

These are only available in Blaze mode prompts, and only at the stage where they are generated:

VariableAvailable inReplaced with
{title}Detail, Meta, Opening, ClosingGenerated title
{lsi}DetailGenerated section list (newline-separated)
{outline}DetailSame as {lsi} — full outline text
{section}DetailCurrent section heading being generated
{subtopic}DetailCurrent subtopic
{index}DetailSection index number (0-based)
{item}DetailCurrent item from outline
{internal_links} / {internalLinks}DetailGenerated internal link HTML

Compose Mode Variables

VariableReplaced with
{title}Generated title (if title prompt set)
{index}Section index number (0-based)
{internalLink}One internal link from the target list
{random5InternalLink}5 randomly selected internal links
{chain}All previously generated sections (sequential mode only)

Special Flags

FlagEffect
{debug}(Simple mode only) Return the injected prompt text without calling the AI
{webSearch}Enable web search for this prompt (provider-dependent — see AI Provider Setup)
{imagegen}Trigger image generation for this article

Tips

  • Variables are case-sensitive: {topic} works, {Topic} does not
  • Variables that can't be resolved are left as-is in the prompt (e.g. if {title} is used before title generation runs)
  • {internalLinks} that reach the scraper layer unresolved are stripped automatically