원클릭으로
crm-import-csv
Walk the user through bulk-importing records from a CSV file — field mapping, normalization script, and erp_csv_import.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Walk the user through bulk-importing records from a CSV file — field mapping, normalization script, and erp_csv_import.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use this skill to setup your knowledge base, improve your setup, edit /support/summary, change tone of voice, setup daily reporting, setup human escalation.
Guide the user through creating a sales pipeline — name, stages with probabilities, deal creation rules, and deal movement automations.
Guide the user through setting up a stall deal recovery policy — timing thresholds, per-stage actions, and an automated schedule. Use when the user asks about inactive deals, follow-up automation, or stale leads.
Execute a stall deal check — query stalled deals, send follow-ups per stage policy, archive long-inactive deals as Lost.
Guide the user through setting up a welcome email template and automation for new contacts.
Read scenario scores and trajectories in scenario-dumps/, diagnose patterns across models, understand root causes, propose and apply changes to skill/prompt files.
| name | crm-import-csv |
| description | Walk the user through bulk-importing records from a CSV file — field mapping, normalization script, and erp_csv_import. |
When a user wants to import records (e.g., contacts) from a CSV, follow this process:
Ask the user to upload their CSV file. They can attach it to the chat, and you will access it via mongo_store.
Create an intelligent mapping from CSV to table fields:
Present the mapping to the user in a clear format:
CSV Column -> Target Field (Transformation)
-----------------------------------------
Email -> contact_email (lowercase, trim)
Full Name -> contact_first_name + contact_last_name (split on first space)
Phone -> contact_phone (format: remove non-digits)
Company -> contact_details.company (custom field)
Source -> contact_details.source (custom field)
Upsert key: contact_email (will update existing contacts with same email)
Ask the user to confirm or modify, field mappings, transformations, upsert behavior, validation rules
Use python_execute() only to transform the uploaded file into a clean CSV whose columns exactly match the ERP table. Read from the Mongo attachment and write a new CSV:
import pandas as pd
SOURCE_FILE = "attachments/solar_root/leads_rows.csv"
TARGET_TABLE = "crm_contact"
OUTPUT_FILE = f"{TARGET_TABLE}_import.csv"
df = pd.read_csv(SOURCE_FILE)
records = []
for _, row in df.iterrows():
full_name = str(row.get("Full Name", "")).strip()
parts = full_name.split(" ", 1)
first_name = parts[0] if parts else ""
last_name = parts[1] if len(parts) > 1 else ""
record = {
"contact_first_name": first_name,
"contact_last_name": last_name,
"contact_email": str(row.get("Email", "")).strip().lower(),
"contact_phone": str(row.get("Phone", "")).strip(),
"contact_details": {
"company": str(row.get("Company", "")).strip(),
"source": "csv_import"
}
}
records.append(record)
normalized = pd.DataFrame(records)
normalized.to_csv(OUTPUT_FILE, index=False)
print(f"Saved {OUTPUT_FILE} with {len(normalized)} rows")
python_execute automatically uploads generated files back to Mongo under their filenames (e.g., crm_contact_import.csv), so you can reference them with mongo_store or the new import tool.
mongo_store(op="cat", args={"path": "crm_contact_import.csv"}) to show the first rowserp_csv_importUse erp_csv_import() to import the cleaned CSV.
After import, offer to create follow-up tasks or automations for the new contacts.