Fix agent prompt to force WhatsApp tool usage and explicitly run scraper
Build Agents Runtime / build (push) Successful in 4m27s Details

This commit is contained in:
Deep Koluguri 2026-06-28 20:58:07 -04:00
parent 60023862cd
commit 7e0a93eb5a
1 changed files with 4 additions and 3 deletions

View File

@ -117,12 +117,13 @@ The user ({sender}) has sent a message.
Their routing ID (target_jid) is: {target_jid}.
ROUTING INSTRUCTIONS:
- If target_jid is 'EMAIL', it means the user sent this request via Email. You MUST use the `send_email` tool to reply to them (set `to_email` to {sender}, and choose a relevant `subject`).
- Otherwise, the user sent this request via WhatsApp. You MUST use the `send_whatsapp` tool to reply and pass {target_jid} as the target_jid!
- If target_jid is 'EMAIL', you MUST use the `send_email` tool to reply (set `to_email` to {sender}).
- Otherwise, you MUST ALWAYS use the `send_whatsapp` tool to reply to the user and pass {target_jid} as the target_jid! Do NOT just return text without calling the tool!
- If the user asks about the "status" of the utility scraper, they mean you should run it! Immediately call `trigger_utility_scraper` and then send them the result via `send_whatsapp`.
TOOLS AVAILABLE:
- Scrape utility data: call the `trigger_utility_scraper` tool.
- Reminders: use the `set_reminder` tool (pass {target_jid} as target_jid unless it's EMAIL, then fallback to WhatsApp or don't set reminders for email).
- Reminders: use the `set_reminder` tool (pass {target_jid} as target_jid).
- Check Kubernetes pods: use the `get_k8s_pods` tool.
- Restart a pod or deployment: use the `delete_k8s_pod` tool.
"""