Skip to content

feat(whatsapp): add text-based command menu#769

Open
reski-rukmantiyo wants to merge 1 commit intonextlevelbuilder:devfrom
reski-rukmantiyo:feat/whatsapp-command-menu
Open

feat(whatsapp): add text-based command menu#769
reski-rukmantiyo wants to merge 1 commit intonextlevelbuilder:devfrom
reski-rukmantiyo:feat/whatsapp-command-menu

Conversation

@reski-rukmantiyo
Copy link
Copy Markdown
Contributor

Summary

  • Add command menu system to the WhatsApp channel (#menu, #help, #stop, #stopall, #reset)
  • Text-based approach — WhatsApp silently drops ListMessage from linked/companion devices (whatsmeow connects as linked device, not Business API)
  • Commands are case-insensitive, non-command messages pass through to agent pipeline unchanged
  • Reuses the existing PublishInbound + Metadata["command"] pattern so the gateway consumer works without modification

Closes #768

Changes

  • New: internal/channels/whatsapp/commands.go — command detection, handling, text menu, command publishing
  • Modified: internal/channels/whatsapp/inbound.go — command interception before agent pipeline

Test plan

  • Send #menu or #help to WhatsApp bot → verify text menu appears
  • Send #stop while task running → verify task is stopped and feedback received
  • Send #stopall while tasks running → verify all tasks stopped and feedback received
  • Send #reset → verify conversation history cleared and confirmation received
  • Send normal text → verify it still goes to agent pipeline
  • Verify commands work in both DMs and groups

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(whatsapp): add text-based command menu with #menu, #help, #stop, #stopall, #reset

1 participant