AgentSkillsCN

account-create

当账户尚不存在时,可创建全新账户。在查询未果且用户确认希望新建账户时,可选用此功能。

SKILL.md
--- frontmatter
name: account-create
description: Create a new account when one doesn't exist. Use after lookup fails and user confirms they want to create a new account.

Account Create

When to use this skill

  • Lookup returned no matching accounts
  • User confirmed creation of new account
  • Have minimum required information (company name)

Required information

FieldRequiredExample
Company NameYes"ABC Contractors LLC"
StageNo (defaults to "New Lead")"Intake"
Primary EmailNo"owner@abc.com"
Primary PhoneNo"(555) 123-4567"
Insurance TypesNo["General Liability"]

Creation process

  1. Generate unique account ID
  2. Create directory structure:
    code
    mem/accounts/{account_id}/
    ├── state.md
    ├── history.md
    └── sources/
        ├── emails/
        ├── calls/
        └── sms/
    
  3. Write initial state.md with provided fields
  4. Write initial history.md with creation entry
  5. Index in Qdrant (name + description)

State.md template

markdown
# {Company Name} (Account {ID})

## Status
- **Stage**: {Stage or "New Lead"}
- **Insurance Types**: {Types or "None"}

## Contacts
- **Primary Email**: {Email or "Not provided"}
- **Primary Phone**: {Phone or "Not provided"}

## Next Steps
- Initial outreach needed

## Pending Actions
- Gather business details

## Last Contact
- **Date**: {Creation date}
- **Type**: account created

After creation

  • Return the new account ID and path
  • Continue with any pending update request