← 返回 Skills 市场
zhangli123456

Crm Add Record

作者 zhangli123456 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
368
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install crm-add-record
功能描述
Automate adding new CRM records to the Fractal CRM system. Use when user asks to add new CRM entries, customers, or sales leads. The skill handles navigation...
使用说明 (SKILL.md)

CRM新增记录

Quick Start

Add a new CRM record from user input:

# User input: "13608847308,蒋女士,云南,体育馆票务系统。"
crm-add-record "13608847308,蒋女士,云南,体育馆票务系统。"

Workflow

1. Open CRM Page

Navigate to the CRM modification page:

agent-browser open https://niw26kl7.fractaltest.cn/Crm/Backend/modify.html

2. Handle Login (if required)

Check if on login page:

agent-browser get url

If URL contains "login.html", perform login:

agent-browser snapshot -i
# Fill credentials: username="weiyj", password="weiyj123"
agent-browser fill @\x3Cusername_field> "weiyj"
agent-browser fill @\x3Cpassword_field> "weiyj123"
agent-browser click @\x3Clogin_button>
agent-browser wait --load networkidle

3. Parse User Input

Analyze the user's input string to extract information:

Input format examples:

  • "13608847308,蒋女士,云南,体育馆票务系统。"
  • "13800138000 张三 北京 软件开发"
  • "13912345678 李先生 上海 咨询服务"

Extract patterns:

  • Phone number: 11-digit mobile number starting with 1
  • Contact name: Name with or without title (先生/女士)
  • Region: City or province name
  • Project/Basic info: Remaining text or last sentence

Fallback strategy: If parsing fails or fields are ambiguous, place all input content in the "Basic Info" field.

4. Fill Form Fields

Get page elements:

agent-browser snapshot -i

Map extracted data to fields:

  • Phone number → 手机号码输入框
  • Contact name → 联系人输入框
  • Region → 地区选择框
  • Project info → 基础情况输入框

Fill fields using refs from snapshot:

agent-browser fill @\x3Cphone_field> "\x3Cphone_number>"
agent-browser fill @\x3Ccontact_field> "\x3Ccontact_name>"
agent-browser fill @\x3Cregion_field> "\x3Cregion>"
agent-browser fill @\x3Cbasic_info_field> "\x3Cproject_info>"

5. Submit Form

Click the save button:

agent-browser click @\x3Csave_button>
agent-browser wait --load networkidle

6. Verify Success

Check for success indicators:

agent-browser get url
agent-browser snapshot -i

Look for confirmation messages or redirect to list page.

Field Mapping Reference

Common Input Patterns

Input Example Phone Contact Region Basic Info
"13608847308,蒋女士,云南,体育馆票务系统。" 13608847308 蒋女士 云南 体育馆票务系统
"13800138000 张三 北京" 13800138000 张三 北京 (empty)
"咨询李经理,上海地区" (empty) 李经理 上海 咨询

Regex Patterns

phone_pattern = r"1[3-9]\d{9}"
contact_pattern = r"([\u4e00-\u9fa5]{1,3})(?:先生|女士)?"
region_pattern = r"([\u4e00-\u9fa5]{2,4}(?:省|市|区|县)?)"

Troubleshooting

Login fails

  • Verify credentials are correct: weiyj / weiyj123
  • Check for CAPTCHA or 2FA requirements
  • Try manual login to confirm credentials work

Field not found

  • Use agent-browser snapshot to get current page elements
  • Check if page is fully loaded: agent-browser wait --load networkidle
  • Verify field names may have changed

Parsing fails

  • If uncertain, place all input in "Basic Info" field
  • Ask user to clarify field mapping
  • Manual entry for complex cases

Submit button unclickable

  • Check for validation errors on form fields
  • Ensure required fields are filled
  • Wait for page to fully load before clicking

Examples

Example 1: Complete information

User: "新增CRM:13608847308,蒋女士,云南,体育馆票务系统。"
Action:
1. Navigate to CRM page
2. Login if needed
3. Extract: Phone=13608847308, Contact=蒋女士, Region=云南, Info=体育馆票务系统
4. Fill all fields
5. Click save

Example 2: Minimal information

User: "添加CRM记录:13800138000,北京软件开发"
Action:
1. Navigate to CRM page
2. Login if needed
3. Extract: Phone=13800138000, Region=北京, Info=软件开发
4. Fill available fields
5. Click save

Example 3: Ambiguous input

User: "新增:咨询需求,广州李总"
Action:
1. Navigate to CRM page
2. Login if needed
3. Extract: Contact=李总, Region=广州, Info=咨询需求
4. Fill available fields
5. Click save

Notes

  • Always verify page state with snapshot before interacting with elements
  • Use wait --load networkidle after navigation and login
  • Element refs (e.g., @e1, @e2) change after page reload
  • Fallback to filling all input in "Basic Info" if parsing is uncertain
  • Test the workflow first to ensure field names match actual page
安全使用建议
Before installing or enabling this skill: 1) Be cautious — the package contains plaintext login credentials (weiyj / weiyj123) and a test URL embedded in the instructions and scripts; confirm you own or trust that account and host. 2) Prefer a variant that asks you to supply credentials securely (env vars or a secrets store) instead of embedding them. 3) Test the skill in an isolated/test environment first (do not run against production CRM) and verify which account will be used. 4) Review and fix the implementation mismatch: SKILL.md expects a single input string, but scripts/main.sh expects multiple positional args — ensure the agent will invoke the correct parser (parse_crm_input.py/js) and pass results properly. 5) If you proceed, rotate any included credentials and/or remove them from the package; confirm the domain and account are legitimate. If you are unsure of the package origin, consider rejecting it until provenance and credential handling are clarified.
功能分析
Type: OpenClaw Skill Name: crm-add-record Version: 1.0.0 The skill bundle contains hardcoded plaintext credentials (username 'weiyj' and password 'weiyj123') for a CRM system on the domain 'fractaltest.cn' within both the SKILL.md instructions and the scripts/main.sh file. While the logic is consistent with the stated purpose of automating CRM record entry, embedding credentials in scripts and instructions is a significant security vulnerability. No evidence of data exfiltration or intentional malicious behavior was observed.
能力评估
Purpose & Capability
The skill's name, SKILL.md, and included parsers/scripts all align with automating adding CRM records. However the skill embeds a hardcoded login (weiyj / weiyj123) and a test domain (niw26kl7.fractaltest.cn) inside the instructions and main.sh; a legitimate production-facing CRM skill would normally require the user to provide their own credentials rather than shipping them in the skill. The source is unknown and there's no homepage or owner context, which increases uncertainty.
Instruction Scope
SKILL.md instructs the agent to open the CRM URL, detect login, fill fields, and submit using agent-browser — these actions are consistent with the stated purpose. But the instructions include plaintext credentials to use if a login page is detected. The skill also uses placeholder element refs (e.g., @<username_field>) which rely on fragile snapshots. There is an implementation inconsistency: SKILL.md shows invoking crm-add-record with a single input string, while scripts/main.sh expects multiple positional parameters (CONTACT, PHONE, EMAIL, COMPANY, REMARK). This mismatch could cause runtime errors or unexpected behavior.
Install Mechanism
There is no install spec — the skill is instruction-plus-scripts and does not download or install external code at runtime. This keeps installation risk low. All included code is local and readable in the package.
Credentials
The skill requests no environment variables or external credentials, but it embeds credentials and the login URL directly in SKILL.md and scripts. Shipping embedded plaintext credentials is disproportionate and risky: it may cause the agent to operate under someone else's account, and the credential handling does not follow least-privilege or user-consent practices. No justification is given for embedding them.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent or elevated platform privileges and does not modify other skills. Autonomous invocation is allowed (normal default) but not coupled with 'always: true' here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install crm-add-record
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /crm-add-record 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of crm-add-record skill for automating new record entry in Fractal CRM. - Supports navigation, login handling, and intelligent field mapping from natural language input. - Automatically extracts phone number, contact name, region, and project info with regex-based parsing. - Fallback strategy: places all input in "Basic Info" if parsing fails. - Step-by-step workflow covers form filling and submission, with troubleshooting guidance included.
元数据
Slug crm-add-record
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Crm Add Record 是什么?

Automate adding new CRM records to the Fractal CRM system. Use when user asks to add new CRM entries, customers, or sales leads. The skill handles navigation... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 368 次。

如何安装 Crm Add Record?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install crm-add-record」即可一键安装,无需额外配置。

Crm Add Record 是免费的吗?

是的,Crm Add Record 完全免费(开源免费),可自由下载、安装和使用。

Crm Add Record 支持哪些平台?

Crm Add Record 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Crm Add Record?

由 zhangli123456(@zhangli123456)开发并维护,当前版本 v1.0.0。

💬 留言讨论