#Whatsapp random reply
1 messages ยท Page 1 of 1 (latest)
Based on the session history, I can see this Discord thread only contains your current question โ the original trigger event isn't logged in this session. Let me help you trace why the agent responded.
Common Reasons for "Unexpected" Agent Responses
Here are the most likely causes for an agent responding when you didn't expect a trigger:
1. "Always-On" Mode
Some WhatsApp groups are configured with mode: "always" or similar settings that make the agent respond to all messages. Check if your group config has:
{
"mode": "always" // or missing trigger config entirely
}
2. Keyword/Pattern Match
The message might have contained specific keywords that trigger responses. Check your agent's trigger patterns:
clawdbot config get agents.defaults.triggers # or similar
3. @Mention Trigger
Even in WhatsApp, mentioning the bot (via @BotName or certain patterns) can trigger responses.
4. Reply Context
If the message was a reply to one of the agent's own messages, it might have triggered a follow-up response.
Diagnostic Steps to Trace the Issue
Check the gateway logs for the exact trigger:
clawdbot gateway logs --follow --filter "whatsapp"
Look for lines like:
trigger matched:- shows which trigger firedkeyword:- shows what keyword matchedmode: always- confirms always-on mode
Check your group configuration:
clawdbot config get channels.whatsapp # or wherever your WhatsApp groups are configured
Check agent configuration:
clawdbot config get agents.defaults.triggers
Can you share:
- What the original message was?