π¦ 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...
π‘ 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
/root/.openclaw/workspaceCustom 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)
TERMINAL
clawhub install auto-file-sender