# Daily news summary video

Generate a fresh summary video every day, entirely from a text prompt. No footage to source or edit — Tellers assembles stock clips and voiceover automatically.

## With the CLI

```
tellers "Create a 60-second daily news summary video for April 7 2026. \ 
Cover the top 3 stories of the day with short visual segments. \ 
Use stock footage. Add a calm, professional voiceover tone."
```

## With the API

```
import json, urllib.parse, datetime
import requests, sseclient

API_KEY = "sk_..."
BASE    = "https://api.tellers.ai"

today  = datetime.date.today().strftime("%B %-d %Y")
prompt = (
    f"Create a 60-second daily news summary video for {today}. "
    "Cover the top 3 stories of the day with short visual segments. "
    "Use stock footage. Add a calm, professional voiceover tone."
)

url      = f"{BASE}/create?prompt={urllib.parse.quote(prompt)}"
response = requests.get(url, headers={"x-api-key": API_KEY}, stream=True)
response.raise_for_status()

for event in sseclient.SSEClient(response).events():
    if event.event == "tellers.json_result":
        data = json.loads(event.data)
        print(data)
        if data.get("status") == "done":
            break
```

Install dependencies: `pip install requests sseclient-py`.

## Automate with cron

Schedule the script to run every weekday morning:

```
# crontab — run every weekday at 07:00
0 7 * * 1-5 /usr/bin/python3 /opt/news-summary/generate.py >> /var/log/news-summary.log 2>&1
```
