What Are App Cards?
App cards are app-specific instruction guides that teach agents how to use apps effectively. Think of them as cheat sheets that help your agent understand:- How to navigate the app’s UI
- Where to find buttons and features
- App-specific shortcuts and gestures
- Search syntax and filters (for apps like Gmail)
- Common workflows and best practices
- The compose button is at the bottom-right
- Search supports filters like
from:sender@email.comorhas:attachment - Swiping right archives emails, swiping left deletes them
Why Use App Cards?
Without app cards:- Agents guess how to navigate unfamiliar apps
- Trial-and-error wastes time and tokens
- Success rates drop for complex workflows
- ✅ Agents know exactly where to find features
- ✅ First-attempt success for common tasks
- ✅ Reduced token usage (less exploration needed)
- ✅ Better handling of app-specific quirks
Quick Start
Droidrun includes a sample Gmail app card to demonstrate how app cards work:- Gmail (
com.google.android.gm) - Email navigation, search, composition
How App Cards Work
Automatic Loading
- Detection: Agent detects the current foreground app (e.g., Gmail)
- Loading: Droidrun loads the app card for that package name
- Injection: App card content is added to the agent’s prompt
- Guidance: Agent uses the instructions to make better decisions
When Are They Used?
App cards are used by the Manager Agent when running in reasoning mode (--reasoning flag or reasoning: true in config):
Creating Custom App Cards
Want to add an app card for your favorite app? Here’s how:Step 1: Find the Package Name
- Chrome:
com.android.chrome - WhatsApp:
com.whatsapp - Instagram:
com.instagram.android - YouTube:
com.google.android.youtube
Step 2: Create the Files
Create the app cards directory and files:Step 3: Register the App Card
Add your app mapping toconfig/app_cards/app_cards.json:
Step 4: Test
Configuration
App cards are enabled by default and load fromconfig/app_cards/:
App Card Best Practices
Content Guidelines
Do:- Be concise and actionable
- Focus on UI patterns and workflows
- Include search syntax and special features
- Mention common pitfalls or quirks
- Use bullet points and clear headings
- Write essays or lengthy explanations
- Describe every single feature
- Include information that changes frequently (version-specific details)
- Duplicate general Android knowledge (agents already know how to tap, swipe, etc.)
Example: Good vs Bad
❌ Bad (too verbose):Troubleshooting
App Card Not Loading
Check these:-
Is the package name correct?
-
Is the mapping correct in app_cards.json?
-
Does the markdown file exist?
-
Are app cards enabled?
-
Are you using reasoning mode?
Debug Mode
Run with--debug to see app card loading:
Related Documentation
- CLI Usage - Droidrun CLI command reference
- Configuration - Configuration system details
- Agent Architecture - How agents work
- Manager Agent - Agent that uses app cards
Help your agents become app experts with well-crafted app cards!