diff --git a/src/agent.py b/src/agent.py index 4e26be2..eff5e2c 100644 --- a/src/agent.py +++ b/src/agent.py @@ -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. """