hermes-whatsapp-voice.yaml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: hermes-whatsapp-voice
  2. repo: https://github.com/ashwanthbalakrishnan5/hermes-whatsapp-voice
  3. sha: 562572e4927f8c5216df414c786c30d0066a8054
  4. title: WhatsApp Voice Calls
  5. description: >-
  6. Live voice calls with Hermes over WhatsApp, on the linked-device (personal number) setup most
  7. Hermes users already have, with no WhatsApp Business account. Call your bot's number and talk to
  8. your Hermes: the voice uses Hermes's own persona (a short briefing fetched from Hermes) and hands
  9. real work to Hermes mid-call. Or let Hermes call you for things that matter: whatsapp_call_owner
  10. rings only the configured owner number (it has no destination parameter) and reports answered,
  11. no answer or declined, so the agent can fall back to another channel, including from cron. A short
  12. summary of each call arrives in WhatsApp, and each call keeps a record with timing metrics
  13. (hermes whatsapp-voice calls). Speech runs on Gemini Live (gemini-3.8-live by default), reusing the
  14. Gemini key Hermes already has; every call setting (languages, pauses, timeouts, any Live setup
  15. field) is configurable. Optional chat-session mode (context_mode: core_session, off by default)
  16. makes the call part of the owner's WhatsApp chat with Hermes. Setup is a dashboard tab (pairing QR,
  17. settings, test call) or an agent runbook skill.
  18. Disclosure — runs a separate sidecar process (Rust, built on whatsapp-rust) that the user starts or
  19. installs as a systemd/launchd user service; the binary is downloaded from this repo's GitHub
  20. release, built and attested by its release workflow, and checked against checksums pinned in the
  21. repo (plus the build attestation when the gh CLI is present). The sidecar becomes an extra linked
  22. device of the bot's WhatsApp number through an unofficial protocol, stores that session in the
  23. plugin's data directory, and answers only the owner's number. During calls it streams audio to
  24. generativelanguage.googleapis.com with GOOGLE_API_KEY or GEMINI_API_KEY (read via get_secret), along
  25. with the persona briefing, the outgoing call's reason and ask_hermes results as text. It calls the
  26. local api_server with API_SERVER_KEY for ask_hermes (a full Hermes turn with the owner's tools), the
  27. persona briefing (at startup and after each call) and the post-call summary, a run that may write
  28. to Hermes memory and whose result is sent to the owner on WhatsApp. The
  29. dashboard tab's backend saves only this plugin's settings (through hermes config set), starts and
  30. stops pairing, places test calls to the owner, and restarts the sidecar service (systemctl --user
  31. or launchctl). A pre_gateway_dispatch hook sends the owner's WhatsApp DM texts into an active
  32. chat-session call instead of a second text reply (slash commands, media, groups and other chats are
  33. untouched). Chat-session mode (opt-in) also runs a loopback service inside Hermes's process that
  34. reads the owner's WhatsApp DM session (system prompt, recent history, tool schemas) and sends it to
  35. Gemini, runs only the tools listed in voice_tools through Hermes in that session, and writes the
  36. call into that session. It never answers Hermes approval prompts: a command that needs approval is
  37. denied during the call and the owner is told to ask again in the WhatsApp text chat; it imports private Hermes modules (listed in the repo's
  38. CORE_PATCHES.md) and falls back to the default mode if they change. Optional recording
  39. (record_calls, off) saves the owner's side of each call as WAV in the plugin's data directory,
  40. locally only. An advanced voice_api_url setting can point the Live connection at another endpoint,
  41. which then receives the Gemini key and call audio. No telemetry.
  42. maintainer: ashwanthbalakrishnan5
  43. tier: community
  44. version: "0.2.2"
  45. category: voice
  46. docs_url: https://github.com/ashwanthbalakrishnan5/hermes-whatsapp-voice#readme
  47. requires_hermes: ">=0.21.6"
  48. platforms: [linux, macos]
  49. known_issues:
  50. - "Uses an unofficial, reverse-engineered WhatsApp protocol (whatsapp-rust): WhatsApp updates can break calls, and automated use may get the bot number restricted. Use a number you can afford to lose."
  51. - "Prebuilt sidecar binaries cover Linux amd64/arm64 and macOS arm64; elsewhere it builds from source (Rust 1.94+, cmake, a C compiler)."
  52. capabilities:
  53. provides_tools:
  54. - whatsapp_call_owner
  55. - whatsapp_call_status
  56. provides_hooks:
  57. - pre_gateway_dispatch
  58. provides_middleware: []
  59. requires_env: []