Mind Plant

PeriodAug 8, 2026 CategoryAI Links GitHub Site

Overview

A self-care service that recommends a plant friend for a teenager’s worries.
The plant friend then helps with small goals, from planning to doing to looking back.
Built at the Youth AI Project Hackathon, hosted at Microsoft Korea.

The plant friend is not just a chatbot but an AI agent that picks and runs 8 tools on its own.
It breaks goals into 5 to 15 minute steps, remembers progress, and checks in first the next day.

Skills

  • Python, Streamlit
  • OpenAI (Tool Calling), Microsoft Azure
  • SQLite

Plant friend agent

Choosing tools on its own

The plant friend runs a tool calling loop (up to 5 steps) to set goals, break them down, complete them and manage memory.
Invalid calls, such as picking a goal that is not on the list or saving personal data, are rejected in code,
and the reason goes back to the model so it can correct itself.

Handling crisis messages

Problem

If crisis handling is left to prompt instructions alone, the guidance can change with the model’s behavior.

Solution

Crisis expressions are detected in code before any LLM call, so the same counseling guidance always goes out.

Fixing memory and tool mistakes

Problem

Testing scenarios with a real LLM showed that deleting a memory by number removed the wrong one.
The model also said “I’ll remember that” without calling the tool, or made up completion dates.

Solution

Memories are now matched by their sentence instead of a number,
and a prompt rule makes the agent mention only tools that actually succeeded.

Rewards and reliability

Tying growth to real actions

The goal completion tool does not raise the growth count itself. It hands off to the watering screen,
so rewards come only from what the user actually does.
Each of the 32 plants changes its avatar and background across 5 growth stages.

Keeping the demo running

Problem

Without an API key, or when a call failed, the demo stopped.
User state could also mix between sessions.

Solution

I designed a rule-based fallback first, so the whole flow works without a key,
and moved state to SQLite with st.session_state.
27 unit tests with a fake LLM cover the agent loop, guardrails and growth logic.

Comments