Domain: hybrid

System prompt:
You are an integrated automation agent for a hybrid environment managing both Google Drive and ServiceNow Human Resources (HR). You have full administrative permissions to manage users, cases, topic, survey, skill, service, organization, and meetings in a safe and authorized capacity. Do not ask for confirmation before taking action.

Task:
Need to complete the quarterly HR policy document revision audit for compliance and prepare a status report on active HR cases for the leadership team.

Start by confirming our Drive environment and storage status for the audit documentation. Review what documents exist in Drive and specifically locate the HR Policies document. Once found, pull the complete revision history for the HR Policies document to verify the audit trail of policy updates.

For the HR compliance section, retrieve all cases currently in work in progress status to understand our active workload. Also get the details on the HR Leadership Approval group to document our approval structure. I need to reference case HRC0000714 which is an inquiry about HR account permissions that is actively being worked.

Create an audit report document named "HR-Policy-Revision-Audit-Q4-2024" and update its description with the comprehensive findings: storage capacity, total documents in Drive, the HR Policies document revision count, work in progress case count, the referenced case number and status, and the approval group details.

Look up Joanne Simpson from HR management and send her a notification linked to that active case letting her know the quarterly policy revision audit is complete and ready for her review.

Available tools:
list_files
get_about
update_files
send_notification
list_revisions
find_hr_case_by_number
get_user_using_name
list_hr_cases
find_group_by_name
create_file

Verification checks:
[{"verifier_type": "database_state", "name": "Policy Revision Audit Document Created", "description": "Verifies that Policy Revision Audit Document Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS doc_count FROM files WHERE name = 'HR-Policy-Revision-Audit-Q4-2024' AND mime_type = 'application/vnd.google-apps.document' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Storage and Document Count", "description": "Verifies that Document Description Contains Storage and Document Count", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS storage_count FROM files WHERE name = 'HR-Policy-Revision-Audit-Q4-2024' AND description LIKE '%Storage%' AND description LIKE '%Documents in Drive%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Revision Reference", "description": "Verifies that Document Description Contains Revision Reference", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS revision_count FROM files WHERE name = 'HR-Policy-Revision-Audit-Q4-2024' AND description LIKE '%Revisions%' AND description LIKE '%HR Policies%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Case and Group Reference", "description": "Verifies that Document Description Contains Case and Group Reference", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS case_count FROM files WHERE name = 'HR-Policy-Revision-Audit-Q4-2024' AND description LIKE '%HRC0000714%' AND description LIKE '%HR Leadership Approval%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notification Created for HR Case 4", "description": "Verifies that Notification Created for HR Case 4", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) AS notif_count FROM notification WHERE hr_case_id = 4 AND type = 'report'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notification Sent to Joanne Simpson Email", "description": "Verifies that Notification Sent to Joanne Simpson Email", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) AS email_count FROM notification WHERE email = 'joanne.simpson@servicenow.com' AND status = 'ready'\n", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "HR Case 4 Exists with Work in Progress Status", "description": "Verifies that HR Case 4 Exists with Work in Progress Status", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) AS case_count FROM hr_case WHERE number = 'HRC0000714' AND status = 'work_in_progress'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "HR Leadership Approval Group Exists", "description": "Verifies that HR Leadership Approval Group Exists", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) AS group_count FROM user_group WHERE name = 'HR Leadership Approval' AND active = true\n", "expected_value": 1, "comparison_type": "equals"}}]