WhatsApp: add group and direct system prompt support (#59553)

Merged via squash.

Prepared head SHA: 63e2b50e01
Co-authored-by: Bluetegu <1525690+Bluetegu@users.noreply.github.com>
Co-authored-by: omarshahine <10343873+omarshahine@users.noreply.github.com>
Reviewed-by: @omarshahine
This commit is contained in:
Ron Cohen
2026-04-22 02:40:32 +03:00
committed by GitHub
parent 06a6dd5a6b
commit 08bc16853e
12 changed files with 319 additions and 1 deletions

View File

@@ -408,6 +408,10 @@ The agent system prompt includes a group intro on the first turn of a new group
- List chats: `imsg chats --limit 20`.
- Group replies always go back to the same `chat_id`.
## WhatsApp system prompts
See [WhatsApp](/channels/whatsapp#system-prompts) for the canonical WhatsApp system prompt rules, including group and direct prompt resolution, wildcard behavior, and account override semantics.
## WhatsApp specifics
See [Group messages](/channels/group-messages) for WhatsApp-only behavior (history injection, mention handling details).