URL summarizer
User pastes a link. Fetch the page (web.fetch_url), summarize with GPT-4o-mini, return 3 bullets. Cheaper than browser.* when the page is static.
Prerequisites
- web.fetch_url + text_generation.generate enabled.
Walkthrough
1. Fetch
Returns `{title, text, html}`. The platform strips ads/nav so the LLM sees content, not noise.
bash# Readable-mode fetch with boilerplate stripped.
curl -X POST https://www.upivia.com/v1/service-requests \
-H "Authorization: Bearer $AGENT_KEY" \
-H "Content-Type: application/json" \
-d '{
"service":"web",
"operation":"fetch_url",
"payload":{"url":"https://example.com/article","mode":"readable"}
}'2. Summarize
Pipe `text` into GPT-4o-mini with 'Give me 3 bullets, max 20 words each.'
Next steps
Audit every call at /audit-logs, watch spend at /usage, and tune budgets per service on the agent's page.
Create an account →