Core Concept: Commands
Commands are the fundamental building blocks of Rephlo. A Command is essentially a saved "recipe" for an AI task, consisting of instructions (prompts) and configuration settings.
Anatomy of a Command
Every Command has the following properties:
- Name: A short, descriptive title (e.g., "Summarize Email").
- Description: A helper text explaining what it does.
- Instruction: The complete prompt including persona and task instructions (e.g., "You are an expert editor. Improve clarity and grammar while preserving the original meaning.").
- Icon: A visual symbol for the dashboard.
- Group: Optional category for organization.
┌─────────────────────────────────────────────────────────────────────────┐
│ COMMAND EDITOR INTERFACE │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Edit Command [X] │ │
│ ├─────────────────────────────────────────────────────────────────┤ │
│ │ │ │
│ │ Name: [Summarize Email________________________] │ │
│ │ │ │
│ │ Description: [Creates a brief summary of email content] │ │
│ │ │ │
│ │ Icon: [📧] [Change...] Group: [Writing v] │ │
│ │ │ │
│ │ ───────────────────────────────────────────────────────── │ │
│ │ Instruction:* [✨ Improve] │ │
│ │ ┌─────────────────────────────────────────────────────────┐ │ │
│ │ │ You are an expert summarizer. Create concise, │ │ │
│ │ │ actionable summaries that capture the key points. │ │ │
│ │ │ │ │ │
│ │ │ Summarize this email in 2-3 sentences, highlighting │ │ │
│ │ │ any action items or deadlines. Keep the tone │ │ │
│ │ │ professional but accessible. │ │ │
│ │ │ │ │ │
│ │ └─────────────────────────────────────────────────────────┘ │ │
│ │ │ │
│ │ ───────────────────────────────────────────────────────── │ │
│ │ Execution Mode: ( ) Standalone (o) Combination │ │
│ │ Default Space: [None v] │ │
│ │ │ │
│ │ [Cancel] [Test] [Save] │ │
│ │ │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────┘
Tip: Click the ✨ Improve button to have AI enhance your instruction with better prompt engineering techniques.
Execution Modes
Rephlo Commands generally operate in two modes, determined by how they use input:
1. Standalone Mode
These commands run independently of any selected text or background files. They act like a standard chatbot query.
- Use Case: "Generate a random password", "Explain Quantum Physics", "Draft a template."
- Input: You type the input manually into the prompt box.
2. Combination Mode (Context-Aware)
These are the most powerful commands. They combine three elements automatically:
- Your Instruction (The Command logic)
- Selected Text (What you highlighted on screen)
- Active Space (Relevant documents from your knowledge base)
- Use Case: "Rewrite this email [Selected Text] based on our tone guide [Space]."
- Behavior: Rephlo automatically packages the selected text and space data into the prompt before sending it to the AI.
Variables & Templating
When creating advanced commands, you can use dynamic placeholders:
{{input_text}}: Injects the text currently highlighted on your screen (your selected text).{{space_data_all}}: Injects all data from the active Space (your knowledge base documents).{{filename}}: Injects content from a specific file in your Space (e.g.,{{style_guide_pdf}}for a file named "style_guide.pdf").
┌─────────────────────────────────────────────────────────────────────────┐
│ VARIABLE INJECTION FLOW │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ YOUR PROMPT TEMPLATE RUNTIME INJECTION │
│ ┌──────────────────────┐ ┌──────────────────────┐ │
│ │ │ │ │ │
│ │ Review this text: │ │ Review this text: │ │
│ │ {{input_text}} │ ────────────▶ │ "The quick brown fox │ │
│ │ │ │ jumps over..." │ │
│ │ Apply the rules from:│ │ │ │
│ │ {{style_guide_pdf}} │ ────────────▶ │ Apply the rules from:│ │
│ │ │ │ [Content of PDF...] │ │
│ └──────────────────────┘ └──────────────────────┘ │
│ │
│ AVAILABLE VARIABLES: │
│ ┌───────────── ──────────┬────────────────────────────────────────┐ │
│ │ {{input_text}} │ Selected/highlighted text │ │
│ ├───────────────────────┼────────────────────────────────────────┤ │
│ │ {{space_data_all}} │ All documents from active Space │ │
│ ├───────────────────────┼────────────────────────────────────────┤ │
│ │ {{filename}} │ Specific file content (by name) │ │
│ └───────────────────────┴────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────── ──────────────┘
Example Command Prompt:
Review this text: {{input_text}}
Apply the writing rules from: {{style_guide_pdf}}
(Note: In standard usage, "Combination Mode" handles {{input_text}} injection automatically without you needing to type the variable manually.)
Favorites
You can mark frequently used commands as Favorites.
- Favorites appear on the Home Dashboard for one-click access.
- They are also prioritized in search results.
Next Concept: Learn about Spaces to add memory to your commands.