- Updated cron job payload to require [headline](url) markdown format - Updated documentation to emphasize clickable links requirement - Posted new sample digest with proper link formatting - Every item now includes full URL to source article
89 lines
2.4 KiB
Markdown
89 lines
2.4 KiB
Markdown
# Daily Digest System
|
|
|
|
## Overview
|
|
Automated daily digest at 7:00 AM CST covering:
|
|
- iOS development news (especially AI-related)
|
|
- OpenClaw updates and community news
|
|
- Digital entrepreneurship and passive income opportunities
|
|
|
|
## How It Works
|
|
|
|
### 1. Research Phase
|
|
The agent searches for:
|
|
- **iOS + AI**: Latest developments in AI for iOS apps, CoreML, on-device ML
|
|
- **AI Coding Assistants**: Claude Code, Cursor, GitHub Copilot, Codeium, Windsurf for iOS dev
|
|
- **Coding Models**: Latest model releases (Claude, GPT, Gemini, LLaMA, DeepSeek) and rankings
|
|
- **OpenClaw**: GitHub updates, Discord discussions, new features
|
|
- **Digital Products**: SaaS ideas, indie hacking, app store success stories
|
|
|
|
### 2. Compilation
|
|
Creates a formatted digest with:
|
|
- Date and title
|
|
- Categorized sections
|
|
- **Full URLs for every article** (format: `[headline](url)`)
|
|
- Brief summaries
|
|
|
|
**Important:** Every item MUST include a clickable link to the source article.
|
|
|
|
### 3. Distribution
|
|
- **Primary**: Posts to blog-backup at http://localhost:3003
|
|
- **Notification**: Sends Telegram message with link to digest
|
|
|
|
## API Endpoints
|
|
|
|
### Blog Backup
|
|
```bash
|
|
POST http://localhost:3003/api/messages
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"date": "2026-02-18",
|
|
"content": "## Daily Digest - Feb 18, 2026\n\n### iOS + AI..."
|
|
}
|
|
```
|
|
|
|
### Telegram
|
|
Use the `message` tool with channel=telegram
|
|
|
|
## Running Manually
|
|
```bash
|
|
cd /Users/mattbruce/Documents/Projects/OpenClaw/Web/blog-backup
|
|
# Trigger digest generation via cron or manual run
|
|
```
|
|
|
|
## Schedule
|
|
- **Time**: 7:00 AM CST daily
|
|
- **Cron**: Set up via OpenClaw cron system
|
|
|
|
## Customizing Topics
|
|
|
|
**File:** `memory/digest-topics.json`
|
|
|
|
Edit this JSON file to customize what gets searched:
|
|
|
|
```json
|
|
{
|
|
"topics": [
|
|
{
|
|
"id": "ios-ai",
|
|
"name": "🤖 iOS + AI Development",
|
|
"enabled": true,
|
|
"searchQueries": ["iOS AI", "CoreML", "on-device ML"]
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
- **Add topic**: Copy an existing topic block, change ID/name/queries
|
|
- **Remove topic**: Set `"enabled": false` or delete the block
|
|
- **Modify queries**: Edit the `searchQueries` array
|
|
- **Changes take effect**: Next day at 7am (or restart the cron job)
|
|
|
|
## For Future AI Continuity
|
|
If this agent is replaced:
|
|
1. Read `memory/daily-digest-system.md` for context
|
|
2. Check `memory/digest-topics.json` for current topics
|
|
3. Check cron jobs: `openclaw cron list`
|
|
4. The job runs as isolated session with full context in payload
|
|
5. Blog data persists in `data/messages.json`
|