Skip to content

Rawi (راوي) Documentation | 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.

Terminal window
$ 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

Profiles let you save and switch between different provider configurations (e.g., OpenAI for work, Ollama for local, Anthropic for research).

Terminal window
# 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 work
Terminal window
# List all profiles
$ rawi configure --list
# Show details for a profile
$ rawi configure --show --profile work
# Delete a profile
$ rawi configure --delete personal

If you do not specify a profile, Rawi uses the default profile.

Terminal window
$ rawi ask "What is TypeScript?"
# Uses the 'default' profile

Terminal window
# 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 work

For 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.