When the user needs to retrieve and manage employee contact information and organizational hierarchy for notification purposes. This skill queries employee databases to extract contact details, manager relationships, and department information, enabling automated notifications to employees and their managers. Triggers include employee lookup, manager identification, contact information retrieval, organizational hierarchy queries, or when preparing notifications for expense claim reviews.
Retrieve and organize employee contact information, manager relationships, and department details from enterprise databases to facilitate automated notifications and workflow approvals.
First, identify available databases containing employee information:
snowflake-list_databases() to list all databasesFor identified databases:
snowflake-list_schemas() to explore available schemas (typically "PUBLIC" or "HR")snowflake-list_tables() to find relevant tables (e.g., "EMPLOYEE_CONTACTS", "ENTERPRISE_CONTACTS", "EMPLOYEES")Examine the structure of identified contact tables:
snowflake-describe_table() to understand column structureEMPLOYEE_ID, IDEMAIL, NAME, PHONEDEPARTMENT, EMPLOYEE_LEVEL, TITLEMANAGER_EMAIL, MANAGER_ID, REPORTS_TOQuery the contact table to extract needed information:
snowflake-read_query() with appropriate SELECT statementsSELECT * FROM <database>.<schema>.<table>SELECT * FROM ... WHERE EMPLOYEE_ID = '...'SELECT * FROM ... WHERE DEPARTMENT = '...'SELECT MANAGER_EMAIL FROM ... WHERE EMPLOYEE_ID = '...'Structure retrieved data for notification purposes:
Use organized contact data to:
When processing expense claims:
For issues requiring managerial attention:
For group notifications:
This skill typically works alongside:
Organized contact data should be structured as: