Ask AI

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.

Notion image

How It Works

Each time the AI Agent node receives a message, it:

  1. Reads the instructions.
  1. Analyzes the input.
  1. Decides whether to call a tool or generate a direct reply.
  1. Executes the logic based on your setup.

The quality of this process depends on how clearly you structure the agentโ€™s instructions and tools.

Notion image

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.

Notion image

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.

Notion image

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
Notion image
{{fromAIAgent("email"; "Customer email address")}}

Did this answer your question?
๐Ÿ˜ž
๐Ÿ˜
๐Ÿคฉ