Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

AI News Capture Pack

Bundle screenshots, metadata, and assets for each news story into organized packages.

CLI Quickstart

praisonai recipe run ai-news-capture-pack \
  --input '{"urls": ["https://example.com/article1"], "story_id": "story_001"}' \
  --json

Use in Your App (SDK)

import sys
sys.path.insert(0, 'agent_recipes/templates/ai-news-capture-pack')
from tools import capture_story_assets, create_bundle

# Capture assets for a story
assets = capture_story_assets(
    urls=["https://example.com/article1", "https://example.com/article2"],
    story_id="story_001"
)

# Create bundle
bundle = create_bundle(
    story_id="story_001",
    assets=assets["assets"],
    include_metadata=True
)

Input Schema

{
  "type": "object",
  "properties": {
    "urls": {"type": "array"},
    "story_id": {"type": "string"},
    "include_metadata": {"type": "boolean", "default": true}
  }
}

Output Schema

{
  "bundle_path": "/output/story_001.zip",
  "assets": [
    {"url": "...", "screenshot": "capture_0.png", "title": "..."}
  ],
  "total_captured": 2
}

Bundle Contents

FileDescription
capture_*.pngScreenshots
metadata.jsonStory metadata
manifest.jsonBundle manifest

Dependencies

pip install playwright
playwright install chromium