Configuration Sections
Basic Info
Basic Info
The Basic Info section sets your agent’s identity within the Layest workspace. These fields are visible to your teammates and help everyone understand what the agent does at a glance.
Model
Model
The Model section controls which AI model powers your agent and how that model generates responses. This is one of the most impactful configuration choices you will make.
Choosing a Model
Layest supports models from multiple providers. Use the dropdown to select from available options:Model Parameters
After selecting a model, you can fine-tune its generation behavior:Temperature (0.0 – 2.0)
Controls how creative or deterministic the model’s responses are. Lower values (e.g., 0.2) produce consistent, predictable outputs — ideal for data extraction or structured tasks. Higher values (e.g., 0.9) produce more varied, creative responses — useful for brainstorming or content generation.Max Tokens
Sets the maximum length of the model’s response in tokens (roughly 0.75 words per token). Set this high enough to accommodate your expected output length, but not so high that it wastes credits on padding.Top P (Advanced)
An alternative to temperature for controlling output diversity. Most users should leave this at the default value (1.0) unless they have specific needs.Instructions
Instructions
The Instructions field contains the system prompt — the foundational message your agent receives before every conversation or task. This is where you define the agent’s role, persona, rules, and constraints.
Writing Effective Instructions
A well-written system prompt is specific, structured, and honest about what the agent can and cannot do. Include:- Role definition — who the agent is and what it is responsible for
- Task list — explicit steps or behaviors you expect
- Tone and style — how the agent should communicate
- Constraints — what the agent should never do
- Escalation rules — when and how to hand off to a human
Example System Prompt
You can use template variables in your instructions (e.g.,
{{user.name}}, {{current_date}}). Layest substitutes these at runtime with live values from the session context. Click the Variables button above the instructions field to see all available variables.Versioning
Every time you save updated instructions, Layest stores the previous version automatically. Open the Version History tab to compare versions or roll back to an earlier instruction set.Tools & Integrations
Tools & Integrations
The Tools & Integrations section lets you attach capabilities to your agent — giving it the ability to search the web, read files, call APIs, query databases, send messages, and more.
Adding a Tool
- Click Add Tool in the Tools & Integrations panel.
- Browse the tool catalog or search by name.
- Select a tool and configure any required settings (e.g., which Slack channel to post to, which database to query).
- Click Save to attach the tool.
Tool Categories
Tools that require OAuth authentication will prompt you to connect your account the first time you add them. Credentials are stored securely in your workspace and can be managed from the Integrations page.
Controlling Tool Use
You can instruct the agent when and how to use each tool through your system prompt. For example:Memory
Memory
The Memory section controls whether your agent retains information across conversations and how it retrieves relevant context during a run.
Memory Types
Conversation Memory When enabled, the agent remembers previous messages within an ongoing session. This allows multi-turn conversations where the agent can reference what was said earlier without the user repeating themselves.- Session Memory — retained only for the duration of a single run or conversation session. Cleared when the session ends.
- Persistent Memory — facts and preferences the agent learns are stored beyond the session and recalled in future conversations with the same user.
- Top K Results — how many document chunks to retrieve per query (default:
5) - Similarity Threshold — minimum relevance score for a chunk to be included (default:
0.75) - Retrieval Strategy —
Semantic(meaning-based),Keyword, orHybrid
Enabling persistent memory means the agent stores data about your users. Review your organization’s data retention and privacy policies before turning this on for production agents.
Disabling Memory
If your agent handles stateless tasks (e.g., single-turn data extraction, document formatting), disable conversation memory entirely to reduce token usage and keep runs fast and predictable.Behavior Settings
Behavior Settings
The Behavior Settings section handles edge cases — what the agent does when it is uncertain, when a user asks something out of scope, or when a run needs to be handed off to a human.
Fallback Response
The fallback response is what your agent says when it cannot answer confidently or when an error occurs. Define a clear, helpful message rather than leaving it to the model’s default behavior.Escalation Rules
Define conditions under which the agent should escalate to a human or trigger an external workflow:Escalation actions can include sending a notification, creating a record in a connected integration (e.g., Zendesk ticket, Jira issue), or triggering a separate Layest workflow.
Content Moderation
Toggle Input Moderation to automatically screen user messages for policy violations before they reach the model. Toggle Output Moderation to screen the agent’s responses before they are delivered. These settings use Layest’s built-in safety filters.Response Timeout
Set a maximum time (in seconds) the agent is allowed to spend generating a response. If the timeout is exceeded, the agent returns the fallback message and logs a timeout error. The default is30 seconds.Saving and Versioning
Every time you click Save, Layest creates a new configuration version and records who made the change and when. You can view, compare, and restore any past version from the Version History tab on the agent detail page.Next Steps
Run Workflows
Learn how to run your configured agent manually, via triggers, or on a schedule.
Observability
Monitor every agent run, inspect detailed logs, and track performance metrics.