Back to the journal

AI agents need tools, memory and boundaries

A useful agent needs more than a good prompt. Start with the work it can do, the context it needs and the decisions it should leave to people.

Krishna Mishra··5 min read

Begin with one clear responsibility

An AI agent becomes easier to evaluate when its job is specific. A customer-support assistant might answer questions from approved information, collect a requirement and prepare a handoff. That is a clearer starting point than asking it to manage an entire business. Define a successful outcome before choosing a model or connecting applications.

Consider an appointment assistant as a design example. It needs to understand the request, check an available time and propose a booking. It should not invent availability or promise that a payment has cleared. The workflow needs a reliable source for each fact and a clear rule for what happens when that source cannot be reached.

Tools connect language to real work

A language model can propose an action; the surrounding application decides whether and how that action runs. A tool might look up a customer record, search approved information or create a draft email. Give each tool a narrow purpose, validate its inputs and return structured results that the workflow can check.

Access should follow the task. An assistant that answers order questions does not need permission to refund every order. Separate read operations from changes, handle failed calls and require confirmation where an action has a meaningful consequence. A confident sentence is not evidence that an action succeeded.

Memory is a design choice

Conversation history can make an assistant more useful, but keeping everything forever is rarely the right default. Decide which context matters for the current conversation and which information belongs in a reliable business record. A customer preference and an unverified statement should not silently become equally trusted facts.

Keep identity, access and retention in mind when storing context. The next person in a shared browser must not inherit another customer’s information. Retrieval should be scoped to the right user or organisation, and deletion or correction should be possible where the system stores personal data.

Make the boundaries visible

Human review is part of good automation design. Unclear requests, conflicting information and sensitive actions should have an intentional route to a person. Record useful outcomes and errors without collecting unnecessary private content. Test with ambiguous messages as well as the straightforward examples used while building.

My approach through AI Automation Nepal is to begin with a real workflow and build around its constraints. The aim is useful assistance that can be checked and improved. Tools, memory and boundaries make that possible; adding more autonomy without a clear need can make a system harder to trust.

Sources & further reading

OpenAI: Function calling n8n: Advanced AI documentation

Krishna Mishra

Founder & AI Automation Architect at AI Automation Nepal. Building AI agents, connected workflows and useful software in Nepal.

View LinkedIn profile