Rawi (راوي) Documentation | Act Templates
Act Templates
Section titled “Act Templates”Act Templates are reusable prompt patterns that help you instruct the AI to behave in a specific way (e.g., code reviewer, security auditor, technical writer). You can list, show, and apply act templates to your queries.
Listing Available Act Templates
Section titled “Listing Available Act Templates”$ rawi ask --list-acts🎭 Available Act Templates:
📁 Code Review: • code-review - Review code for bugs and improvements
📁 Documentation: • doc-writer - Generate documentation from code
Usage: rawi ask --act <template-id> "your question"Show template: rawi ask --act <template-id> --show$ rawi ask --act code-review --show🎭 Act Template: Code ReviewID: code-reviewCategory: Code ReviewTemplate: "You are a code reviewer. Review the following code for bugs and improvements."$ rawi ask --act code-review "Review this function for security issues"Profile Management
Section titled “Profile Management”Profiles let you save and switch between different provider configurations (e.g., OpenAI for work, Ollama for local, Anthropic for research).
Creating and Using Profiles
Section titled “Creating and Using Profiles”# Create a new profile for OpenAI$ rawi configure --profile work --provider openai --model gpt-4o --api-key sk-...
# Use a profile when asking a question$ rawi ask "Summarize this code" --profile workListing and Managing Profiles
Section titled “Listing and Managing Profiles”# List all profiles$ rawi configure --list
# Show details for a profile$ rawi configure --show --profile work
# Delete a profile$ rawi configure --delete personalDefault Profile
Section titled “Default Profile”If you do not specify a profile, Rawi uses the default profile.
$ rawi ask "What is TypeScript?"# Uses the 'default' profileExample Workflow
Section titled “Example Workflow”# List act templates$ rawi ask --list-acts
# Show a template$ rawi ask --act doc-writer --show
# Use a template with a specific profile$ rawi ask --act code-review "Review this code" --profile workFor more details, see the Providers Guide, Configuration Guide, and CLI Commands Reference.
Tip: Use profiles to separate work and personal API keys, and act templates to standardize your prompts for repeatable results.