Domain: hybrid

System prompt:
You are a highly capable and intelligent AI assistant designed to help users by executing tasks. You have access to a variety of tools and are expected to use them to answer questions and fulfill requests.

**Your Thought Process:**
1. **Analyze the Request:** Carefully analyze the user's latest message to understand their intent.
2. **Plan Your Actions:** If the request requires information or action that you cannot perform directly, identify the appropriate tool(s) from the provided list.
3. **Execute Tools:** Make one or more tool calls in a structured format. You can call multiple tools in parallel if needed.
4. **Observe the Results:** After I execute the tools for you, I will provide the results in a structured format.
5. **Formulate the Final Answer:** Use the tool results to construct a comprehensive, accurate, and helpful final answer to the user. If a tool fails, inform the user and ask for clarification if necessary.

**Constraints:**
- **Respond Only to the Latest Message:** The conversation history is for context only. Focus on resolving the user's most recent request.
- **Use Tools When Necessary:** Do not try to guess information that a tool can provide. If you need to know something, use a tool.
- **Stick to Available Tools:** Only use the tools provided to you in the tool list. Do not invent tools.
- **Final Response:** Once all necessary tool calls are complete and you have the information you need, provide a final, user-facing response without any further tool calls.

Task:
We have a critical HR case in draft status related to Workforce Administration that needs immediate attention. Find the case related to HR policies and see who it's assigned to. Reach out to that person in Teams to notify them about this urgent case in one-on-one chat . Send them a message in chat letting them know this HR case requires their immediate attention and needs to be reviewed. Make sure the message stays pinned so they don't miss it. After notifying them, move the case forward in the workflow and make it ready so it can be processed. Verify that the message was successfully delivered.

Available tools:
create_chat
get_user
list_chat_messages
pin_chat_message
find_hr_case_by_number
list_hr_cases
update_hr_case
send_chat_message

Verification checks:
[{"verifier_type": "database_state", "name": "Verify HR Case Status Updated", "description": "Confirms HR case HRC0000711 status changed from draft to ready", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_case WHERE hr_case_id = 1 AND status = 'ready'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Teams Chat Created", "description": "Confirms one-on-one chat created between Joanne and Travis", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Teams Message Sent", "description": "Confirms urgent message sent in chat about HR case HRC0000711", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM chat_messages WHERE chat_id IN (SELECT chat_id FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')) AND body_json LIKE '%HRC0000711%' AND body_json LIKE '%urgent%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Message Pinned", "description": "Confirms urgent message was pinned in the chat", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM pinned_chat_messages WHERE chat_id IN (SELECT chat_id FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')) AND message_id IN (SELECT message_id FROM chat_messages WHERE body_json LIKE '%HRC0000711%' AND body_json LIKE '%urgent%')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify HR Case Status Updated", "description": "Confirms HR case HRC0000711 status changed from draft to ready", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_case WHERE hr_case_id = 1 AND status = 'ready'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Teams Chat Created", "description": "Confirms one-on-one chat created between Joanne and Travis", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Teams Message Sent", "description": "Confirms urgent message sent in chat about HR case HRC0000711", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM chat_messages WHERE chat_id IN (SELECT chat_id FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')) AND body_json LIKE '%HRC0000711%' AND body_json LIKE '%urgent%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Message Pinned", "description": "Confirms urgent message was pinned in the chat", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM pinned_chat_messages WHERE chat_id IN (SELECT chat_id FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')) AND message_id IN (SELECT message_id FROM chat_messages WHERE body_json LIKE '%HRC0000711%' AND body_json LIKE '%urgent%')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify HR Case Status Updated", "description": "Confirms HR case HRC0000711 status changed from draft to ready", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_case WHERE hr_case_id = 1 AND status = 'ready'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Teams Chat Created", "description": "Confirms one-on-one chat created between Joanne and Travis", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Teams Message Sent", "description": "Confirms urgent message sent in chat about HR case HRC0000711", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM chat_messages WHERE chat_id IN (SELECT chat_id FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')) AND body_json LIKE '%HRC0000711%' AND body_json LIKE '%urgent%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Message Pinned", "description": "Confirms urgent message was pinned in the chat", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM pinned_chat_messages WHERE chat_id IN (SELECT chat_id FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')) AND message_id IN (SELECT message_id FROM chat_messages WHERE body_json LIKE '%HRC0000711%' AND body_json LIKE '%urgent%')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify HR Case Status Updated", "description": "Confirms HR case HRC0000711 status changed from draft to ready", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_case WHERE hr_case_id = 1 AND status = 'ready'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Teams Chat Created", "description": "Confirms one-on-one chat created between Joanne and Travis", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Teams Message Sent", "description": "Confirms urgent message sent in chat about HR case HRC0000711", "gym_name": "gym-teams-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM chat_messages WHERE chat_id IN (SELECT chat_id FROM chats WHERE chat_type = 'oneOnOne' AND org_id = 'servicenow' AND EXISTS (SELECT 1 FROM chat_members cm1 WHERE cm1.chat_id = chats.chat_id AND cm1.user_id = 'joanne.simpson') AND EXISTS (SELECT 1 FROM chat_members cm2 WHERE cm2.chat_id = chats.chat_id AND cm2.user_id = 'travis.wood')) AND body_json LIKE '%HRC0000711%' AND body_json LIKE '%urgent%'", "expected_value": 1, "comparison_type": "equals"}}]