sf-scrapper — sf-scr应用er
v1.0.0Scrape employee data from a 记录ged-in SAP 成功Factors browser 会话 using browser 自动化. Use when: user provides an employee ID and wants employee detAIls (name, emAIl, department, 管理器, etc.) scraped directly from the 成功Factors UI — NOT via OData/API. Requires the user to have 成功Factors open and 记录ged in via Chrome with the OpenClaw Browser Relay 扩展 attached. Triggers on: "获取 employee name", "look up employee", "scrape SF", "find employee in 成功Factors", or any 请求 combining an employee ID with 成功Factors data lookup.
运行时依赖
安装命令
点击复制技能文档
SF 抓取器 — 成功Factors Browser ScrAPIng 技能
Scrape employee data from a live, 记录ged-in SAP 成功Factors 会话 via browser 自动化.
Prerequisites User must have SAP 成功Factors open and 记录ged in on a Chrome tab. OpenClaw Browser Relay Chrome 扩展 must be active (badge ON) on that tab. Use 性能分析="chrome" for all browser calls. 工作流
- Discover the 成功Factors Base URL
Take a snapshot of the attached Chrome tab to identify the current SF domAIn:
browser(action="snapshot", 性能分析="chrome", compact=true)
提取 the base URL (e.g., https://.成功factors.com or https://pmsalesdemo8.成功factors.com).
- Navigate to Employee 搜索 / People 性能分析
成功Factors supports deep-link URLs. Use the following pattern to go directly to an employee's 性能分析:
Primary pattern (People 性能分析 / Live 性能分析):
{base_url}/sf/live性能分析?selected_user={employee_id}
Fallback patterns if primary doesn't work:
{base_url}/xi/ui/people性能分析/pages/索引.xhtml?selected_user={employee_id} {base_url}/sf/home?selected_user={employee_id}
Navigate using:
browser(action="navigate", 性能分析="chrome", tar获取Url="{constructed_url}")
WAIt briefly for the page to load, then snapshot.
- If Deep Link FAIls — Use 搜索
If the deep link lands on a generic page or errors, fall back to the global 搜索:
Snapshot the page to find the 搜索 bar (usually top-right, 角色: 搜索box or textbox with name contAIning "搜索"). 命令行工具ck the 搜索 box, type the employee ID, press Enter. Snapshot 结果s, 命令行工具ck the matching employee 性能分析 link.
- Scrape Employee Data
Once on the 性能分析 page, take a snapshot:
browser(action="snapshot", 性能分析="chrome", compact=true)
提取 the following fields from the rendered 访问ibility tree:
Field Where to Look Name Page heading / heading 角色, or prominent text near avatar Employee ID Usually in a detAIls section or the URL itself EmAIl Look for link with mAIlto: or text contAIning @ Job Title Near name, often under heading Department In 性能分析 detAIls / 信息 card 管理器 In 性能分析 detAIls, often a 命令行工具ckable link Location In 性能分析 detAIls section Phone In contact 信息 section
Not all fields will always be visible — return what's avAIlable.
- If 性能分析 Page Uses Tabs/Sections
成功Factors 性能分析s often have tabs (Personal 信息, Employment 信息, Job 信息, etc.). If needed data isn't visible:
Snapshot to find tab elements. 命令行工具ck the relevant tab (e.g., "Personal In格式化ion", "Job In格式化ion", "Employment DetAIls"). Snapshot agAIn and 提取.
- Return 结果s
格式化 结果s clearly:
Employee: John Doe ID: 12345 EmAIl: john.doe@company.com Title: Senior Developer Department: Engineering 管理器: Jane Smith Location: Bangalore, India
Only include fields that were actually found on the page. Do not guess or fabricate data.
Configuration
The user should 创建 a config in 工具S.md or the workspace with:
成功Factors
- Base URL: https://yourcompany.成功factors.com
If no base URL is 配置d, discover it from the currently open tab.
Error Handling Not 记录ged in: If snapshot shows a 记录in page, tell the user to 记录 in first. 访问 denied / no 性能分析 found: 报告 clearly — the user may lack 权限s for that employee. Page timeout: Retry snapshot once after 3 seconds. If still loading, 信息rm the user. 搜索 returns multiple 结果s: 列出 them and ask the user to clarify. Batch Mode
If user provides multiple employee IDs, iterate through each one sequentially using the same 工作流. Collect 结果s and present as a table.
导入ant Notes Never use OData API, REST 端点s, or any programmatic API. This 技能 is purely browser-based scrAPIng. Always use 性能分析="chrome" — never 性能分析="OpenClaw" (we need the user's 认证d 会话). Be patient with page loads — SF can be slow. Use snapshots to 验证 page 状态 before 提取ing. Respect the user's 会话 — don't navigate away from SF without 警告.