Use this file to discover all available pages before exploring further.
The rf prompts command provides complete CRUD (Create, Read, Update, Delete) operations for managing prompt templates. Supports both interactive mode with editor integration and non-interactive mode for automation.
# View specific promptrf prompts get system-prompt# Output:# Prompt: system-prompt# ---# You are a helpful AI assistant.# Your goal is to help users with their questions.# Always be polite and professional.
# With inline contentrf prompts create support-bot --content "You are a helpful support assistant"# From filerf prompts create support-bot --file ./prompts/support.txt# Multi-line contentrf prompts create support-bot --content "You are a support assistant.Always be helpful and polite.Provide clear and concise answers."
If your prompts use template variables, you can test rendering:
# Render with variables (JSON format)rf prompts render welcome-email '{"name": "John", "company": "ACME"}'# Output:# Welcome to ACME, John!# We're excited to have you on board...
Example prompt with variables:
Hello {{name}},Welcome to {{company}}! We're thrilled to have you join us.Best regards,The {{company}} Team
rf prompts create system --content "You are a helpful AI assistant powered by RunFlow.Your capabilities:- Answer questions accurately- Provide code examples- Explain complex concepts simply- Always be professional and helpfulGuidelines:- Be concise but thorough- Ask clarifying questions when needed- Admit when you don't know something"
rf prompts create support --content "You are a customer support assistant for {{company}}.Your role:- Help customers resolve issues- Answer product questions- Escalate complex issues to human agentsTone:- Friendly and empathetic- Professional and clear- Patient and understandingAlways:1. Greet the customer warmly2. Listen to their concern3. Provide step-by-step solutions4. Ask if they need further help"
rf prompts create rag-assistant --content "You are a knowledge base assistant.Context from knowledge base:{{context}}User question:{{question}}Instructions:- Answer based ONLY on the provided context- If the answer isn't in the context, say 'I don't have that information'- Cite sources when possible- Be accurate and concise"
You are a senior software engineer reviewing code.Review the following code and provide feedback on:1. Code quality and best practices2. Potential bugs or issues3. Performance optimizations4. Security concerns5. Readability and maintainabilityBe constructive and specific in your feedback.Code to review:{{code}}
# Export all promptsmkdir prompt-libraryrf prompts list | while read name; do rf prompts get "$name" > "prompt-library/$name.txt"done# Import prompts to new environmentfor file in prompt-library/*.txt; do name=$(basename "$file" .txt) rf prompts create "$name" --file "$file"done
# Set your preferred editorexport EDITOR=nanorf prompts create my-prompt# Or use non-interactive moderf prompts create my-prompt --content "Your content here"