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 got a request for employee offboarding. Tabitha Bullock from the 'Security Operations' department needs to be offboarded Today (2025-12-25). Find Tabitha in Teams to get her contact information. Then look her up in our HR system to retrieve her employee profile details. Create a new HR case for this offboarding request using the appropriate service for general inquiries. Assign the case to the service desk team that handles HR requests. Since this is time-sensitive and related to employee lifecycle management, make sure it gets the appropriate attention. Once the case is created, move it forward to begin processing. Check if we already have a one-on-one chat with Tabitha in Teams. If no chat exists, create a new one-on-one chat between us. Send her a message in chat explaining that we've started her offboarding process and will work together to ensure everything goes smoothly. Finally, update Tabitha's employee profile to mark today as her employment end date since she's entering the offboarding process.

Available tools:
send_chat_message
get_user
list_chats
create_new_hr_case
get_user_using_name
find_group_by_name
create_chat
get_hr_service_by_name
update_hr_profile
list_users
update_hr_case

Verification checks:
[{"verifier_type": "database_state", "name": "Verify HR Case Created", "description": "Confirms HR offboarding case was created with correct assignment", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_case WHERE opened_for = 3 AND assignment_group = 4 AND priority = 'high' AND coe_type = 'Workforce Administration' AND short_description LIKE '%offboarding%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify HR Case Status Updated", "description": "Confirms HR case status changed to work_in_progress", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_case WHERE opened_for = 3 AND assignment_group = 4 AND priority = 'high' AND status = 'work_in_progress'", "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 employee", "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 = 'tabitha.bullock')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Message Sent", "description": "Confirms message sent in offboarding chat", "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 = 'tabitha.bullock')) AND body_json LIKE '%offboarding%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Employee End Date Updated", "description": "Confirms employee HR profile employment end date set to today", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_profile WHERE hr_profile_id = 3 AND employment_end_date IS NOT NULL AND (employment_end_date LIKE '2025-12-25%' OR DATE(employment_end_date) = DATE('2025-12-25'))", "expected_value": 1, "comparison_type": "equals"}}]