Overview
PhoneClaw’s voice interface lets you create automation workflows by simply describing what you want to accomplish. The system uses speech recognition and AI to generate ClawScript code automatically.Voice generation is the fastest way to create automations. Just say “open Twitter and post a tweet every hour” and PhoneClaw generates the complete script with scheduling.
How Voice Generation Works
- You speak a natural language command
- PhoneClaw transcribes your speech
- An AI agent analyzes your request
- ClawScript code is generated automatically
- The script is saved and ready to run or schedule
Setting Up Voice Commands
If you accidentally denied permission, go to Settings → Apps → PhoneClaw → Permissions → Microphone and enable it.
Voice Command Examples
Simple Automation
Generate a basic automation workflow:Scheduled Task
Create an automation that runs on a schedule:When you say “every hour,” “daily,” or “every Monday,” PhoneClaw automatically generates the correct cron expression and schedules the task.
Multi-Step Workflow
Generate complex workflows with multiple steps:Conditional Logic
Generate scripts with branching:Voice Command Patterns
Action Verbs
Start commands with clear action verbs:- “Open” - Launch apps or navigate
- “Click” - Tap buttons or elements
- “Type” - Enter text in fields
- “Upload” - Select files/photos
- “Check” - Read or verify content
- “Wait” - Add delays
Location Descriptors
Include position information:- “in the top right corner”
- “at the bottom of the screen”
- “in the navigation bar”
- “below the title”
- “next to the profile picture”
Visual Characteristics
Describe what elements look like:- “the blue send button”
- “the red notification badge”
- “the plus icon”
- “the heart-shaped like button”
- “the three-dot menu”
Timing Keywords
Specify when to run:- “every hour” →
0 * * * * - “every day at 9am” →
0 9 * * * - “every Monday” →
0 0 * * 1 - “every 30 minutes” →
*/30 * * * * - “once a week” →
0 0 * * 0
Advanced Voice Commands
Multi-App Workflows
- Switches between Twitter and Instagram
- Extracts content from one app
- Inputs it into another
- Handles timing between app switches
Loop Operations
- A loop that runs 10 times
- Click action for the like button
- Scroll action to next post
- Delays between actions
Data Extraction
- Opens notifications
- Uses
magicScraperto extract text - Iterates through multiple notifications
- Speaks each one with
speakText
Editing Generated Scripts
Voice-generated scripts can be edited:// Increase delays if actions are too fast
delay(1000) → delay(2000)
// Make descriptions more specific
magicClicker("Button") → magicClicker("Blue send button in bottom right")
// Add error handling
try {
magicClicker("Submit button")
} catch (error) {
speakText("Error clicking button")
}
// Add confirmation checks
const result = magicScraper("Did the action succeed?")
if (result.includes("success")) {
speakText("Action completed")
}
Troubleshooting Voice Commands
Command Not Recognized
- Speak clearly and at a moderate pace
- Use shorter, simpler sentences
- Avoid background noise
- Try rephrasing with more common words
Wrong Script Generated
- Be more specific about element descriptions
- Include visual details (color, shape, icon)
- Specify exact locations (top, bottom, left, right)
- Break complex commands into smaller ones
Microphone Button Not Working
- Check microphone permission in Settings
- Restart PhoneClaw app
- Test with another voice app to verify microphone works
- Ensure device volume is not muted
Generated Code Has Errors
- View the Generation History to see exact code
- Edit the script manually to fix issues
- Test commands individually before combining
- Check logs for specific error messages
Best Practices
Be Specific
Use Natural Language
Include Timing
Break Down Complex Tasks
Instead of:Real-World Examples
Here are commands from actual PhoneClaw demos:TikTok Video Upload
Email 2FA Code Extraction
Captcha Solving
Waymo Twitter Automation
These examples are from actual PhoneClaw demo videos showing real-world automation scenarios.
Next Steps
Schedule Your Automations
Learn cron expressions and recurring tasks
Multi-App Workflows
Chain actions across multiple apps
ClawScript Reference
See all available functions