Polykomos for AI Agents
Give your agents memory, state, and structured data — in plain English.
What is natural language querying?
Most databases expect you to write SQL. Polykomos doesn't. You send a plain English sentence describing what you want — "create a table for user preferences" or "show me all orders from the last week" — and the API translates it into SQL, executes it, and returns structured JSON results.
This matters because AI agents don't think in SQL. They think in intent. An agent that needs to remember a user's last five messages shouldn't have to construct a SELECT statement — it should just ask for what it needs.
No schema memorization. No query building. Your agent describes what it needs, and Polykomos handles the rest.
Why agents need databases
Without persistent storage, every agent conversation starts from zero. The agent forgets what it learned, loses context about users, and can't coordinate with other agents. A database changes that:
- Memory — Store conversation history, user preferences, and learned facts that persist across sessions.
- State — Track what the agent is doing, what it has already tried, and where it left off.
- User data — Keep profiles, settings, and interaction history so the agent can personalize responses.
- Coordination — Multiple agents can read and write to the same database, sharing context without custom message passing.
- Audit trail — Every action the agent takes can be logged and queried later for debugging or compliance.
You could wire all of this up yourself — set up PostgreSQL, write migrations, build an ORM layer, handle connection pooling. Or you could give your agent an API key and let it talk to a database in English.
How it works
Three steps from zero to a working agent database:
/query endpoint. Polykomos translates them to SQL, runs them, and returns JSON. Tables are created on the fly when needed.
That's it. No migrations, no ORM configuration, no connection pooling setup. The database adapts to what the agent asks for.
OpenClaw: agent memory
OpenClaw is an open-source AI agent framework that connects through Telegram, Discord, Slack, and other channels. If you're building on something like OpenClaw, Polykomos can serve as the agent's long-term memory — storing conversation history, user preferences, and learned facts across sessions.
Imagine a user asks the agent something it discussed three weeks ago. The agent queries its memory database in plain English:
The agent didn't need to know the table schema or write SQL. It described what it wanted, got back JSON, and used those results to form a contextual reply.
Customer support agent
A support agent that can't remember previous tickets is just a fancy FAQ. With a Polykomos database, your agent maintains full context:
Over time, the database builds up a knowledge base of common issues, resolution patterns, and per-user history that the agent can draw from to improve its responses.
Data collection agents
Agents that collect data over time — scraping prices, monitoring APIs, tracking social metrics — need somewhere reliable to put it. Polykomos gives them a database without any setup overhead.
This pattern works for any kind of periodic data collection: weather stations, stock prices, social media metrics, IoT sensor readings, API health checks.
Getting started
Four steps to give your agent a working database:
Blueprints for agents
Blueprints are pre-built database schemas you can apply in one click. Instead of letting your agent create tables from scratch, start with a tested schema designed for common agent patterns:
- Agent Memory — Conversations, facts, user profiles, and learned preferences. Designed for chatbots and personal assistants.
- Task Tracking — Projects, tasks, assignments, and status history. Built for agents that manage workflows.
- Data Collection — Time-series records, sources, and collection metadata. Ideal for scraping and monitoring agents.
- Multi-Agent Coordination — Shared state, agent logs, task queues, and handoff records. For systems where multiple agents collaborate.
Browse available blueprints in the blueprint catalog, or apply them via the Blueprints API.
API reference
Ready to integrate? The full API reference covers every endpoint, parameter, and response format.