Skip to main content

Your First Agent

A deeper walkthrough of creating a single agent from scratch. You will learn how to craft an effective system prompt, choose the right model, assign tools, and test the result -- all from the Dashboard.

Before You Start​

Make sure you have:

  • A workspace and team created (see the Quickstart)
  • At least one provider key saved in Models → Providers & keys

Step 1: Plan the Agent​

Before opening the Dashboard, think through what this agent should do:

QuestionYour decision
What is its purpose?Example: Answer IT support questions
What personality should it have?Example: Helpful, patient, technically accurate
What should it NOT do?Example: Never access production systems directly
When should it escalate?Example: When the issue requires physical access or admin credentials

Writing this down first makes the system prompt much easier to write.

Step 2: Create the Agent​

  1. Click Agents in the sidebar, then Create Agent
  2. On Purpose, describe what the agent should do, who will use it, and the result you expect — your answers from Step 1 — then click Draft my agent
  3. On Review, MeetLoyd proposes:
FieldWhat to checkTips
Agent nameA clear, recognizable nameUse a role-based name like "IT Helpdesk Assistant" rather than a generic one
DescriptionA sentence about what the agent doesHelps colleagues find the right agent quickly
InstructionsThe system promptRefine it with the structure in Step 3

Step 3: Write the System Prompt​

The system prompt is the most important part of your agent. It defines personality, knowledge, capabilities, and boundaries. A well-structured prompt has four sections:

Section 1 -- Identity and Role​

Tell the agent who it is and what it does in plain language.

You are the IT Helpdesk Assistant for Acme Corporation. You help
employees resolve technical issues and answer IT-related questions.

Section 2 -- Capabilities and Boundaries​

Be explicit about what the agent can and cannot do. This prevents the agent from overstepping.

Your capabilities:
- Answer questions about company software and systems
- Guide users through troubleshooting steps
- Create support tickets for complex issues
- Look up IT policies and procedures

Your boundaries:
- You cannot directly access production systems
- You cannot make changes to user accounts without approval
- You cannot access confidential employee data
- For security-sensitive requests, always verify identity first

Section 3 -- Domain Knowledge​

Give the agent the information it needs to do its job well.

Company IT environment:
- Email: Google Workspace (Gmail, Calendar, Drive)
- Communication: Slack
- VPN: Cisco AnyConnect
- SSO: Okta (all apps use single sign-on)
- Ticketing: your IT service desk

Section 4 -- Communication Style​

Define how the agent should talk to people.

Communication guidelines:
- Be friendly but professional
- Use clear, step-by-step instructions
- Avoid jargon unless the user uses it first
- Confirm understanding before proceeding
- Always ask if the issue is resolved before closing
Keep it focused

A system prompt does not need to be long. Aim for clarity over length. An agent with a concise, well-structured prompt will outperform one with pages of instructions.

Paste your complete prompt into the Instructions field.

Step 4: Give It Skills and Access​

On Skills & access, the draft lists the skills and access it thinks the agent needs. Keep what fits the role, and nothing more:

CapabilityExamplesWhen to use
SkillsPre-built expertise (methodologies, playbooks)When you want expert behavior without writing it all into the prompt
IntegrationsGoogle Workspace, Microsoft 365, Slack, your CRMWhen the agent must read or write data in other systems (connect them first in Tools → Connections)
Custom tools (MCP)Your internal systemsWhen the agent must use your own tools
MemoryPreferences, past issuesWhen the agent needs context across conversations
Start with fewer tools

Agents perform better with a focused set of tools. If the agent later needs something it doesn't have, it asks — and you approve the exact access in one click.

Step 5: Choose Where It Runs and Its Model​

On Where it runs, pick the workspace and team, then the model. Your choice depends on the task:

Kind of modelBest for
A top reasoning model (for example Claude Opus)Ambiguous, high-stakes or complex work
A balanced model (for example Claude Sonnet)Most agents — a great default
A fast, low-cost model (for example Claude Haiku)Triage and high volume — agents that route rather than solve

You only see models your keys can reach. Models → Adequacy shows how well each model fits a kind of work, and Loyd can recommend one.

BYOK means flexibility

You can mix models and providers across agents — a fast model for triage and a powerful one for complex resolution, in the same team.

Click Create.

Step 6: Test Your Agent​

  1. Save the agent and go back to your team page
  2. If the team is not yet running, start it using the Team Starting Wizard
  3. Open the agent (Agents → your agent) and click Chat
  4. Test with realistic scenarios:

Simple question -- Does the agent answer correctly based on its domain knowledge?

Boundary test -- Ask it to do something outside its boundaries. Does it refuse appropriately?

Escalation test -- Present a complex issue. Does it offer to escalate or create a ticket?

Memory test (if Memory tool is assigned) -- Tell it something, then in a later message, reference what you said. Does it remember?

Step 7: Refine​

Based on your testing, go back and adjust:

What to changeWhere to change it
Agent is too verbose or too terseEdit the communication style section of the system prompt
Agent oversteps its boundariesMake the boundaries section more explicit
Agent lacks domain knowledgeAdd more context to the domain knowledge section
Agent is too slowSwitch to a faster model
Agent cannot perform needed actionsAdd the appropriate tools

You can edit the agent at any time (Agents → your agent → Edit) without restarting the team. Every change is kept in the agent's Change history, so you can restore an earlier version.

What You Have Built​

You now have a properly configured agent with:

  • A clear identity and role
  • Defined capabilities and boundaries
  • Domain knowledge relevant to its job
  • The right model for the task
  • Tools to interact with external systems

Next Steps​