ADK Agent
The Memory ADK Agent is a chat agent built on Google ADK that remembers each user. You can extend it with skills, MCP tools and other agents by connecting datasets.

Quick start
- Go to Workflows, create a workflow and open the Designer.
- Drag the memory-adk-agent service (category Agent) onto the canvas.
- Click the service and edit
AGENT_INSTRUCTIONto give the agent its role. The other defaults use the platform's LLM gateway. - Save and Run the workflow. Wait for the status
RUNNING. - Open the service's exposed URL and add
/dev-ui/, including the final slash.
Check it works: in the web UI, send "My name is Alice", then "What is my name?".
To use the agent from the platform, add it to the chat with the OpenAI protocol.
Memory is lost by default
The default SQLite database is lost when the workflow stops. To keep memory across runs, set DATABASE_URL to PostgreSQL: postgresql+psycopg://USER:PASSWORD@HOST:5432/DB.
Endpoints
All paths are relative to the service's exposed URL.
| Path | Use |
|---|---|
/dev-ui/ | Web UI to chat with the agent and inspect tool calls. |
/v1 | OpenAI-compatible API. The model name is the agent name. |
/mcp/ | MCP server with one tool, call_NAME_agent. |
/a2a/NAME | A2A endpoint for other ADK agents. |
/health | Health check. |
Call the API
Set AGENT_URL to the exposed URL, without /v1, and use the name from AGENT_INSTRUCTION as model.
curl -X POST "$AGENT_URL/v1/chat/completions" \
-H "Content-Type: application/json" \
-d '{
"model": "memory_agent",
"messages": [{"role": "user", "content": "What is my name?"}],
"user": "alice",
"session_id": "session-001"
}'Send the same user and session_id to continue a conversation. Without them, each request gets a new generated identity and the agent does not remember it. Add "stream": true to receive the answer as Server-Sent Events.
Parameters
| Parameter | Required | What to set |
|---|---|---|
AGENT_INSTRUCTION | Yes | JSON with prompt, name and description. name must contain only letters, digits and underscores, and cannot start with a digit. Write {user:username?} in the prompt to insert the user's stored name. |
MODEL | Yes | Model name. Default: qwen3:0.6b. |
BASE_URL | Yes | OpenAI-compatible LLM endpoint. The default is the platform's gateway. |
API_KEY | Yes | Key for BASE_URL. |
TEMPERATURE | Yes | From 0 (focused) to 1 (creative). Default: 0.7. |
MAX_TOKENS | No | Maximum answer length. |
DATABASE_URL | Yes | Where conversations are stored. |
ALIDA_ENABLED_CATEGORIES | No | Default: skills. An empty value disables skill imports. Do not set tools or data. |
portsToExpose | No | Leave the default, port 9000. |
Connect datasets
The service has six optional inputs: input-dataset-1 to 3 for URLs, and input-dataset-4 to 6 for files. To create these datasets and choose their category, see Extend an agent with datasets.
| Dataset | Input | What happens |
|---|---|---|
Files, category Skill or Skills | 4–6 | Imports skills/NAME/.... Each skill must contain SKILL.md. |
Files, category Prompt | 4–6 | Appends the root AGENTS.md to the agent's instruction and imports its skills/. Other files are ignored. |
Files, category Tool, Data or none | 4–6 | Logged and skipped. |
URL ending in /.well-known/agent-card.json | 1–3 | Adds a remote A2A agent the agent can delegate to. |
| Any other URL | 1–3 | Adds an MCP server whose tools the agent can call. |
Unreachable datasets, MCP servers and agent cards are logged and skipped. Unknown categories and missing required files stop startup.
A skill is a folder containing a SKILL.md that says when to use it:
---
name: domain-workflow
description: Apply domain-specific steps to a task.
---
Follow the steps in references/guide.md for this task.Use it from another agent
Connect the agent's output port to an input of another service in the same workflow, for example an MCP input of the OpenCode Agent. The other service sees this agent as the MCP tool call_NAME_agent.
Troubleshooting
Open the workflow logs with the show-logs button on the workflow page.
| Symptom | Check |
|---|---|
AGENT_INSTRUCTION.name must be a valid Python identifier | The name contains spaces or hyphens, or starts with a digit. Use, for example, my_agent. |
| The skills do not load | The dataset category must be Skill: a dataset without category is treated as data and skipped. The dataset must be connected to inputs 4–6. |
| The agent cannot use a tool | The MCP or agent card warning in the logs, and that the URL is reachable from the cluster. |
| The agent forgets everything after a restart | DATABASE_URL is still the default SQLite file. |
| The model returns errors | BASE_URL, API_KEY, and that MODEL exists on that endpoint. |
| The web UI does not load correctly | The URL must end with /dev-ui/, including the final slash. |