Reducing Voice Command Friction for Telegram AI Agent with iOS Back Tap

Problem and Solution
A developer using OpenClaw, an AI agent named Kazim within Telegram, wanted to reduce friction for sending voice commands on the go. The original process required unlocking the phone, opening Telegram, finding the correct chat, and holding the record button. The goal was to interact with the agent without launching the Telegram app.
Technical Implementation
The working setup uses three main components:
- iPhone Back Tap: Configured to trigger on a double-tap of the phone's back.
- iOS Shortcut: Activated by the Back Tap to start dictation and handle the command.
- Vercel Function: A serverless function that processes the command.
The workflow is: double-tap the back of the phone from any screen → dictation starts → the spoken command is sent to the Vercel function → the function uses GPT-4o-mini for processing → Kazim replies in the Telegram chat.
Debugging Details
The developer encountered and resolved two specific technical issues during the approximately two-hour setup:
- Vercel Environment Variable Error: The Vercel function returned a 500 error because environment variables set via the command
echo "value" | vercel env addincluded a trailing newline. This was fixed by adding.trim()to the variable in the code. - Empty Authentication Token: An authentication token passed in the JSON body of the request was arriving empty (length: 0 in error responses). The cause was unclear, potentially an iOS 26 bug or Shortcut configuration issue. The fix was to move the token to the URL query string instead of the request body.
Alternative solutions considered but not implemented included Siri integration (the required setting could not be found on iOS 26) and native Telegram Siri support.
📖 Read the full source: r/openclaw
👀 See Also

Claude Opus Used to Create AI Political Party with Reverse-CAPTCHA
A developer built kifd.org, a fictional AI political party for Germany entirely generated by Claude Opus 4.6. The project features public system prompts for each cabinet member and a reverse-CAPTCHA that requires proving you're an AI to join.

Developer Compares Claude AI to a Modern Calculator for Coding Workflow
A developer with 18 months on a serverless Angular/AWS SPA/PWA project reports using Claude AI for 90% of AI-assisted coding, describing it as a '21st century version of a calculator' that makes them 10x more productive despite occasional catastrophic outputs.

Senior Developer's Claude Max Learning Curve: From Vague Prompts to Structured Code Reviews
A developer with 8 years experience in Node.js, Go, Angular, and AWS shares how they initially used Claude Max incorrectly by treating it like a senior engineer with project context, then improved results by implementing structured review processes similar to mentoring junior developers.

Non-coder builds local video downloader with Claude AI in one evening
A user with zero coding knowledge used Claude AI to build AZ Downloader, a local video downloader that works on 14/16 platforms including YouTube, TikTok, Instagram, and Reddit. The tool was created in one evening and is now available on GitHub.