A weekly report from a local LLM
<a id="weekly-report"></a> ## A weekly report from a local LLM In Claude or ChatGPT, paste this: > Using Throughway, read my sessions from the last 7 days, with summaries. Write my weekly coaching report: one paragraph per client, the themes across clients, and anything I promised to follow up on. With an AI on your own computer (Ollama, LM Studio), where transcripts never leave your machine, you or a technical friend can run this script: ```python import requests, ollama from datetime import datetime, timedelta, timezone API = "https://staging.throughway.app/api/v1" H = {"Authorization": "Bearer trw_…"} since = (datetime.now(timezone.utc) - timedelta(days=7)).strftime("%Y-%m-%dT%H:%M:%SZ") rows, cursor = [], None while True: page = requests.get(f"{API}/sessions", headers=H, params={ "started_since": since, "include": "transcript", "cursor": cursor}).json() rows += page["data"] if not (cursor := page["next_cursor"]): break report = ollama.generate(model="llama3.1", prompt="Write my weekly coaching report:\n" + str(rows)) print(report["response"]) ``` Transcripts are long. If summaries are enough, leave `include` out and the run is much faster.In Claude or ChatGPT, paste this:
Using Throughway, read my sessions from the last 7 days, with summaries. Write my weekly coaching report: one paragraph per client, the themes across clients, and anything I promised to follow up on.
With an AI on your own computer (Ollama, LM Studio), where transcripts never leave your machine, you or a technical friend can run this script:
import requests, ollama
from datetime import datetime, timedelta, timezone
API = "https://staging.throughway.app/api/v1"
H = {"Authorization": "Bearer trw_…"}
since = (datetime.now(timezone.utc) - timedelta(days=7)).strftime("%Y-%m-%dT%H:%M:%SZ")
rows, cursor = [], None
while True:
page = requests.get(f"{API}/sessions", headers=H, params={
"started_since": since, "include": "transcript", "cursor": cursor}).json()
rows += page["data"]
if not (cursor := page["next_cursor"]): break
report = ollama.generate(model="llama3.1",
prompt="Write my weekly coaching report:\n" + str(rows))
print(report["response"])
Transcripts are long. If summaries are enough, leave
include
out and the run is much faster.