How to Build Your First AI Agent From Scratch

November 25, 2026

Relevance AI is a no-code platform for building AI agents that call tools, run multi-step tasks and hand results back to a person. You assemble an agent from a prompt, a model choice and a set of tools, then test it against real inputs before publishing.

The build itself takes under an hour. What takes longer is deciding which tools the agent actually needs — agents with five tools are harder to debug than agents with two, and the failure mode of a confused agent looks like a slow agent.

What can a Relevance AI agent actually do?

An agent is a loop of: read the input, decide a step, call a tool, read the result, repeat. Tools are the interesting part. Relevance ships integrations for Google Sheets, Slack, HubSpot, Gmail, Airtable, web scrapers and plain HTTP requests, plus the ability to call your own API endpoints.

Text-only agents are cheap to build and easy to break. The agents that survive production do one narrow job: enrich a lead, triage a support ticket, pull numbers into a report. Broad “do anything” agents demo well and fail on real inputs.

How do you create a working agent step by step?

  1. Create a project and click New Agent. Give it a name that names the job, not the technology.
  2. Pick the reasoning model. A smaller model for classification-style tasks, a stronger one only if the agent must weigh conflicting information.
  3. Write the core prompt. State what the agent does, what it must not do, and the exact output format.
  4. Add tools one at a time. After adding each, run the test panel before adding the next.
  5. Set the step limit. Ten steps is generous; most useful agents finish in four.
  6. Publish to the team interface, an embed, or an API endpoint.

The order matters. Adding all tools first and testing once at the end produces a failure you cannot attribute to a single change.

How should the core prompt be written?

Short, explicit, and with a stopping rule. A prompt that works:

You enrich inbound leads. Given a company name and domain, find the industry, employee count and HQ country using the search and scrape tools. Write results to the Leads sheet. If two sources disagree on employee count, return both with sources. Never guess a number. Stop after five tool calls.

Three things are doing work there: one output destination, one explicit conflict rule, one hard limit. Remove any of them and the agent starts inventing values or looping.

What does testing look like before publishing?

Run ten real inputs, not invented ones. Read the step trace, not just the final answer. The trace tells you whether the agent got the right answer for the right reason.

Watch for three patterns:

  • Correct answer, wasted steps. The agent called four tools when one would do. Cost problem, not a quality problem, but fix it before it scales.
  • Tool call that returns empty and the agent continues anyway. This is how invented data gets into your CRM.
  • Repeated calls to the same tool with the same arguments. The step limit stops it eventually; a clearer prompt stops it immediately.

Who is Relevance AI a good fit for?

Operations, sales and support teams who need an agent that touches business tools and do not have engineers available. The no-code builder is genuinely usable, and the integration list covers the common SaaS stack.

It is a poor fit when you need fine control over retrieval, when your tools are internal APIs with unusual auth, or when you need the agent to run at high volume cheaply. In those cases a code framework gives you cost and debugging control the builder hides. Expect to spend real time on prompt iteration either way — the tool removes wiring, not judgement.

Quick Summary

  • Relevance AI builds no-code agents from a prompt, a model choice and a set of tools.
  • Add tools one at a time and test each before adding the next; five tools is the practical ceiling for debuggable agents.
  • Set a step limit of about ten and include an explicit conflict rule in the prompt.
  • Read the step trace, not just the answer — empty tool results that get ignored are the main source of fabricated data.
  • It fits ops and sales teams without engineers; it does not replace a code framework for high-volume or unusual integrations.