Agent Design Foundations
Structuring agents using instructions and tools for consistent logic and behavior.
Overview
Latenode AI Agents are powered by a built-in LLM and driven by two key components you control:
- Instructions โ define the agentโs behavior, logic, and decisions.
- Tools โ connected nodes that the agent can call to perform actions or retrieve data.
This page explains how to design those components effectively to build reliable, task-oriented agents.

How It Works
Each time the AI Agent node receives a message, it:
- Reads the instructions.
- Analyzes the input.
- Decides whether to call a tool or generate a direct reply.
- Executes the logic based on your setup.
The quality of this process depends on how clearly you structure the agentโs instructions and tools.

Instructions
Instructions define how the agent should behave. They are written in plain language and describe what the agent is allowed to do, how it should react to user inputs, and how to use the available tools.

Recommendations
- Be explicit about allowed and disallowed actions.
- Include fallback logic for missing data.
- Keep instructions focused on one scenario.
- Use simple, direct language.
- Clearly describe each toolโs purpose โ the agent relies on these descriptions to decide which tool to call.
- Avoid vague tool labels or descriptions โ instead of โget infoโ, say โfetch current weather dataโ or โretrieve currency exchange rateโ.
๐ง The more accurately you define what each tool does, the better the agent can reason and choose the right one for the task.
Tools
Tools are the external actions the agent can take. In Latenode, these are the connected nodes โ such as HTTP requests, Notion, or Google Sheets.

Best Practices
- Use descriptive names:
create_invoice
,send_email
- Avoid connecting too many tools per agent
- Design each tool to do one task well
- Test tools separately before connecting

{{fromAIAgent("email"; "Customer email address")}}