How Developers Built a Minimal One-Shot Notion Agent Using Cheap AI Models
A development team built a lightweight, disposable HTTP worker that connects to Notion via the Model Context Protocol (MCP), designed to execute a single task per request and then shut down. Unlike persistent chatbots or always-on agents, this 'one-shot agent' accepts a system prompt, user prompt, and tool list via a POST request, runs a model-tool loop, and returns a JSON result. The project was motivated by a recurring internal task — pulling skill write-ups from Notion and appending summaries to a digest page — without requiring a new script for every job variation. The team deliberately chose a cheap model routed through an OpenRouter-style gateway, keeping costs near zero when idle and only a few cents per million tokens when active. Key lessons included separating the tool surface, model, and prompt as distinct problems, and avoiding the common mistake of shrinking a full coding agent into a request-response worker.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in