Guides

Messaging & Voice

Messaging connects your chat app to SlyCode so you can drive any card's AI session from your phone: send prompts, get replies, switch cards, and talk by voice. Telegram is the supported channel today; the channel layer is an abstraction, so more channels are planned.

What messaging gives you

Once connected, your chat is a remote control for every session SlyCode manages. A message you send is routed to the AI session for whatever card or project you are pointed at, and replies come back to the same chat. You can:

  • Send prompts to any card's session and read the replies.
  • Navigate between projects and cards without opening the dashboard.
  • Dictate prompts as voice messages and get spoken replies back.
  • Send photos into a session and receive files out of it.

The bot is locked to a single authorized user: your Telegram user id. Messages from anyone else are ignored.

Telegram setup

  1. Create a bot. Message BotFather on Telegram and follow the prompts. It gives you a bot token.
  2. Add the token and your user id to the .env file in your SlyCode folder. The setup wizard asks for these during install; if you skipped that step, add them now.
  3. Restart SlyCode with slycode restart.
.env
# Telegram channel
TELEGRAM_BOT_TOKEN=YOUR_BOT_TOKEN
TELEGRAM_USER_ID=YOUR_TELEGRAM_USER_ID

# Voice (optional)
STT_BACKEND=openai
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
ELEVENLABS_API_KEY=YOUR_ELEVENLABS_API_KEY

Voice input

Send a voice message and SlyCode transcribes it to text before routing it to the session, tagged so the AI knows it arrived by voice. The speech-to-text backend is selectable via STT_BACKEND:

BackendValueNeeds
OpenAI Whisper APIopenaiOPENAI_API_KEY
Local whisper.cpplocalWHISPER_CLI_PATH and WHISPER_MODEL_PATH
AWS Transcribeaws-transcribeAWS_TRANSCRIBE_S3_BUCKET; region and language are optional. Uses the instance IAM role, no API key.

Voice output

Replies can come back as voice messages, rendered with ElevenLabs. Set ELEVENLABS_API_KEY in .env to enable it, then control delivery from the chat:

  • /mode picks text, voice, or both.
  • /voice searches and swaps ElevenLabs voices.
  • /tone sets the speaking tone from presets or free text.

Voice, mode, and tone can be set per project, falling back to your global choices. A voice reply from a project's session speaks in that project's voice even if your chat last navigated somewhere else.

Quick-launch shortcuts

/start with a token deep-links straight to a target instead of showing help: the global terminal, a project's terminal, a card by number, or a saved shortcut. Saved shortcuts are managed per project from the web UI and can carry an auto-fired prompt, a forced provider, and a prefer-existing-session flag, so one tap from your phone can land on a card and start work immediately.

Files and photos

Media moves in both directions. Send a photo (or several) and it is delivered into the current session as a screenshot the AI can look at. Going the other way, a session can ship files back to your chat: documents, audio, or video, with sensible size limits and a deny-list that refuses sensitive paths like .env files and SSH keys.

Next steps

  • Automations: schedule recurring prompts and let cards report back over messaging.
  • Configuration: the full .env and workspace settings reference.