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:
Setting up delta sync baseline for HR case documentation repository and need comprehensive configuration with HR analytics integration for quarterly audit.

Start by capturing the changes start page token to establish the synchronization baseline for future delta operations on HR documentation. Verify the Drive environment including storage quota utilization and authenticated user context. Then inventory all shared drives to define the synchronization scope boundaries for HR case files.

On the HR side, search for all active HR services to document the service catalog coverage. Get the details for HR case number HRC0000715 which was a recently closed HR Portal support case we want to reference as a sample case in our sync configuration. Also retrieve the knowledge base articles to identify documentation resources linked to HR processes.

Create a sync configuration document named "HR-Case-Analytics-Sync-Configuration-Q4-2024" and enrich its metadata with the comprehensive findings: the captured start page token for delta sync, authenticated user performing the setup, current storage usage, total shared drives count, active HR services count from the catalog, the sample case number and status, and knowledge article count for reference coverage.

Look up Randy Martinez who manages the HR Leadership team and send him a notification about the sync configuration completion linked to the sample HR case so the HR team can begin using the synchronized documentation repository.

Available tools:
get_about
update_files
get_changes_start_page_token
get_user_using_name
find_hr_case_by_number
retrieve_knowledge_articles
list_drives
create_file
send_notification
find_hr_services

Verification checks:
[{"verifier_type": "database_state", "name": "Sync Configuration Document Created", "description": "Verifies that Sync Configuration Document Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS doc_count FROM files WHERE name = 'HR-Case-Analytics-Sync-Configuration-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 Token Reference", "description": "Verifies that  Document Description Contains Token Reference", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS token_count FROM files WHERE name = 'HR-Case-Analytics-Sync-Configuration-Q4-2024' AND description LIKE '%Start Page Token%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains HR Services Reference", "description": "Verifies that Document Description Contains HR Services Reference", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS services_count FROM files WHERE name = 'HR-Case-Analytics-Sync-Configuration-Q4-2024' AND description LIKE '%HR Services%' AND description LIKE '%Shared Drives%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Case Reference and Timestamp", "description": "Verifies that Document Description Contains Case Reference and Timestamp", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS case_count FROM files WHERE name = 'HR-Case-Analytics-Sync-Configuration-Q4-2024' AND description LIKE '%HRC0000715%' AND description LIKE '%December 2024%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": " Notification Created for HR Case", "description": "Verifies that  Notification Created for HR Case", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) AS notif_count FROM notification WHERE hr_case_id = 5 AND type = 'update'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notification Sent to Randy Martinez Email", "description": "Verifies that Notification Sent to Randy Martinez Email", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) AS email_count FROM notification WHERE email = 'randy.martinez94@servicenow.com' AND status = 'ready'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "HR Case 5 Exists and Is Closed Complete", "description": "Verifies that HR Case 5 Exists and Is Closed Complete", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) AS case_count FROM hr_case WHERE number = 'HRC0000715' AND status = 'closed_complete'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Knowledge Articles Available for Reference", "description": "Verifies that Knowledge Articles Available for Reference", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) AS kb_count FROM knowledge WHERE state = 'published' AND org_id = 1\n", "expected_value": 6, "comparison_type": "equals"}}]