Build a personal AI assistant
Build an assistant that knows how you like to work, can check the weather, and sends you a plan for the day every morning.
About this tutorial
Build an assistant of your own from start to finish in the kagent UI. You give it a personality, a weather tool so that it can do more than talk, and a morning routine that runs without you asking.
By the end, you have one agent, personal-assistant, that answers in your style, looks up the weather, and leaves a plan for your day in a conversation every morning. Under the hood, that agent is an inline AgentTemplate (its model, prompt, and tools) paired with the kagent-default Harness (where it runs). For how these pieces fit, see About agents and Core concepts.
Time: about 15 minutes.
Before you begin
If kagent already runs in your cluster, skip these steps.
Create a local kind cluster. To use a Kubernetes cluster that you already run, at version 1.37 or later, skip this step.
kind create cluster --name kagent --image kindest/node:v1.37.0Set the API key of your model provider, then install the kagent CLI and run it.
kagent installsets up the CRDs, Agent Substrate, a development PostgreSQL database, and kagent, and takes a few minutes.export OPENAI_API_KEY="your-api-key-here" curl -sL https://kagent.dev/install | bash && kagent installCheck that the kagent pods run. Every pod reports
Running.kubectl get pods -n kagent
The weather tool is a public server, so your cluster must be able to reach the internet.
Build the assistant
Build the agent step by step in the kagent UI, or apply the same resources as YAML and talk to the agent with the kagent CLI.
Open the kagent UI
kagent dashboardThe command forwards the UI to http://localhost:8082 and opens it in your browser. Leave it running while you work.
Create the assistant
Start with who the assistant is. Its system prompt is where you describe how it should behave.

In the sidebar, click Agents, and then click New Agent.
In the Name field, enter
personal-assistant. Leave the Namespace askagent, and leave Shared harness set tokagent-default.In the Template section, select Inline, and fill in the template.
Field Value Model configuration kagent/default-model-configDescription My personal assistantSystem prompt You are my personal assistant. Be friendly and concise. Help me plan my day, draft messages, and answer questions.Make the prompt your own. Tell the assistant what you do, how long its answers should be, and anything that it should always or never do.
Click Create agent, and then click Refresh until the status changes from Preparing to Ready.
Click the agent name to open its chat page, and say hello. Ask it to draft a message or to plan a task.
Give it the weather
An assistant that can only talk cannot tell you whether to take an umbrella. Tools come from Model Context Protocol (MCP) servers, so register a weather server, and then hand its tool to the assistant.
Note
The weather server is a public demonstration server that the kagent project does not run. It can change or go away. When it has been idle, its first answer can take close to a minute, so these steps give it a 60-second connection timeout.

In the sidebar, click MCP Servers, and then click New Server.
Fill in the form, and then click Create server.
Field Value Name weatherServer URL mcp-weather-1cyg.onrender.com/mcpTLS HTTPS Connection timeout 60sClick Refresh until the
weatherserver shows1in the Tools column. Expand the row to see the tool,get_weather.In the sidebar, click Agents. In the row of the
personal-assistantagent, click the edit icon.Under Tools from MCP servers, click Add an MCP server, and choose
kagent/weather.Click Save agent, and wait until the agent returns to Ready.
Open a New chat with the assistant, and ask
What is the weather in Toronto right now?
Give it a morning routine
The assistant now answers when you ask. A schedule makes it start the conversation: every morning, it writes a plan for your day.

In the sidebar, click Schedules, and then click New Schedule.
From the Agent list, choose
kagent/personal-assistant, and entermorning-briefin the Name field.Set Time zone to your own, leave Repeat set to Daily, and set At time to when you start your day.
In the Prompt field, enter what you want every morning, such as the following.
Give me a short plan for today: three priorities and one reminder to take a break. Include the weather in Toronto.Leave Enable Schedule on, and click Create schedule.
To see a brief now, click Run on the page of the schedule. Each run appears in the Execution history table, with a link to its conversation.
Verify the assistant
Check that the agent is ready.
kubectl get agent personal-assistant -n kagentExample output:
NAME READY AGE personal-assistant True 5mCheck that kagent accepted the weather server.
kubectl get remotemcpserver weather -n kagentThe
ACCEPTEDcolumn showsTrue.In the kagent UI, click Schedules, open
morning-brief, and check that the Execution history lists the run that you started, with a link to its conversation.
What you built
One agent with a prompt, a tool, and a schedule. Along the way, you used these features:
| Feature | What you did | Read more |
|---|---|---|
| Agents and inline templates | Gave the agent its model and personality in one form | About agents, System prompts |
| MCP tools | Registered a remote MCP server and handed its tool to the agent | About tools |
| Scheduled runs | Had the agent start a conversation every morning | Scheduled runs |
To take the assistant further:
| Idea | How |
|---|---|
| Give it more tools | Register another MCP server, as in Add an MCP server, and add it to the assistant. |
| Make it ask before it acts | Turn on approval for a tool, as in Human in the loop. |
| Share its voice with other agents | Keep its tone and rules in a prompt library. |
| Run it on another model | Add a model, and choose it in the assistant’s edit form. |
Clean up
Delete what this tutorial created.
In the kagent UI, click Schedules, and delete
morning-brief. If you created it with grpcurl, see Scheduled runs for theDeleteScheduledRuncall.Delete the agent and the weather server.
kubectl delete agent personal-assistant -n kagent kubectl delete remotemcpserver weather -n kagent