🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

auto-file-sender

by @timyljob2011-sudo

Automatically send files from workspace to Feishu/Lark when files are generated or updated. Use when: (1) User creates new documents and wants them delivered...

Versionv1.0.1
πŸ’‘ Examples

Example 1: Send Generated Document

User: "Generate a report and send it to me"

// After generating the report
{
  "action": "send",
  "filePath": "/root/.openclaw/workspace/report_2024.docx",
  "filename": "Annual_Report_2024.docx",
  "message": "Here's your annual report!"
}

Example 2: Send Multiple Files

User: "Send all the PDFs in my workspace"

# Find and send all PDFs
find /root/.openclaw/workspace -name "*.pdf" -exec \
  python3 -c "import sys; print(sys.argv[1])" {} \;

Then send each file using the message tool.

Example 3: Auto-Send on Completion

After a long-running task generates output:

// Task completed, auto-send result
{
  "action": "send",
  "filePath": "/root/.openclaw/workspace/output.pdf",
  "message": "Task completed! Here's your file."
}

βš™οΈ Configuration

Default Settings

  • Source directory: /root/.openclaw/workspace
  • Max file size: 30MB (Feishu limit)
  • Auto-recipient: Current conversation user
  • Custom Recipient

    To send to a specific user:

    {
      "action": "send",
      "target": "ou_a65105519c863f8544fb22b40c468063",  // User's open_id
      "filePath": "/path/to/file"
    }
    

    πŸ“‹ Tips & Best Practices

    1. Always verify files exist before sending 2. Use descriptive filenames for better organization 3. Batch similar files to reduce API calls 4. Clean up sent files periodically to save space 5. Log sent files for tracking (optional)

    View on ClawHub
    TERMINAL
    clawhub install auto-file-sender

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’