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:
Please resolve HR case HRC0000713, which is about an HR portal access issue.
First, retrieve the case details and check its current status.
Then search the knowledge base for any existing articles related to HR portal or portal access problems. If no relevant article exists, create a new knowledge article documenting the troubleshooting and resolution steps.
Create a Google Drive resolution document for this case that includes the problem description, the steps taken to restore access, and the reference to the knowledge article.
After the documentation is complete, update the HR case with the resolution notes and close it, and link the newly created knowledge article to the case as the official resolution.

Available tools:
update_hr_case
create_file
find_hr_case_by_number
create_knowledge_article
retrieve_knowledge_articles
link_knowledge_to_hr_case

Verification checks:
[{"verifier_type": "database_state", "name": "Verify HR Case Found", "description": "Checks that the HR case HRC0000713 was successfully retrieved", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_case WHERE number = 'HRC0000713' AND short_description LIKE '%Access issue%HR portal%';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Knowledge Article Created", "description": "Checks that a new knowledge article was created about HR portal access resolution", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM knowledge WHERE (title LIKE '%HR portal%' OR title LIKE '%portal access%' OR title LIKE '%Resolution%') AND (title LIKE '%access%' OR body LIKE '%access%') AND state = 'published';", "expected_value": 1, "comparison_type": "greater_than"}}, {"verifier_type": "database_state", "name": "Verify HRC0000713 exist", "description": "check if the HR case with name HRC0000713 exists", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM files WHERE name LIKE '%HRC0000713%';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Resolution Document Created", "description": "Checks that a resolution document was created in Google Drive", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM files WHERE (name LIKE '%HRC0000713%' OR name LIKE '%resolution%' OR name LIKE '%HRC0000713%') AND (name LIKE '%portal%' OR name LIKE '%access%') AND trashed = 0;", "expected_value": 1, "comparison_type": "greater_than"}}, {"verifier_type": "database_state", "name": "Verify HR Case Updated with Resolution", "description": "Checks that the HR case was updated with resolution notes and status", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM hr_case WHERE number = 'HRC0000713' AND (worknotes LIKE '%resolved%' OR worknotes LIKE '%resolution%' OR worknotes LIKE '%knowledge%') AND status IN ('resolved', 'closed_complete');", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Knowledge Articles Searched", "description": "Confirms that knowledge articles exist in the system for portal access topics", "gym_name": "sn-hr-internal", "validation_config": {"query": "SELECT COUNT(*) FROM knowledge WHERE (title LIKE '%portal%' OR title LIKE '%access%' OR body LIKE '%portal%' OR body LIKE '%access%') AND state = 'published';", "expected_value": 1, "comparison_type": "greater_than"}}]