Building AI Agents
Walk through creating an AI agent with Forge — from a one-line request to a tested, working agentflow.
Building an agent by hand means placing nodes, wiring tools, and writing prompts. With Forge, you describe who the agent is for — and review the result. This page walks through a real session end to end.
Start with the goal, not the graph
You: I need a support agent for our tour agency. Customers ask
about their bookings — status, dates, price.Forge doesn't build immediately. First it looks around your application — the database, existing flows, connected services — and asks about the things it can't decide for you:
Forge: I found a "bookings" table with 8 fields, including status
and dates. Two questions before I build:
1. Should the agent only read bookings, or also change them
(e.g. cancel a booking)?
2. How should customers identify themselves — booking number,
email?Answering these takes a moment and saves a rebuild later. If you don't know yet, say so — Forge will propose a sensible default and note the assumption.
Review the plan and the approvals
For a task like this, Forge posts its plan in the chat and a progress panel appears above it. Then the first approval card arrives:
Awaiting your approval — Create agentflow "Booking Support Agent" · Low risk
Creating and editing the agent are draft edits, so with the default approval mode you'll mostly confirm the first step and watch the progress: adding the agent node with its system prompt, giving it access to the bookings table, wiring the pieces together.
When it's done, the Changes made summary lists everything that was created — click the agentflow name to open it on the canvas and see the graph Forge built.
Forge tests the agent for you
Here's the part that's easy to miss: after building, Forge talks to the agent itself — it opens a test chat, asks realistic questions, and checks that the agent answers and its tools don't fail:
Forge: I ran a test conversation with the agent:
— "What's the status of booking #1042?" → it queried the
bookings table and answered correctly.
— "Cancel my booking" → it politely declined, as we agreed
it should be read-only.
The agent is working. Want me to adjust its tone or add
more capabilities?If something fails during the test — a tool errors out, the agent misunderstands its role — Forge fixes the draft and tests again, telling you what it changed.
Test conversations run in design-time against the draft. Nothing is published, and no real customers are involved.
Iterate in the same conversation
The first version is a starting point. Keep going in plain language:
You: Make the tone more formal, and add: if a customer asks about
a refund, collect their booking number and email, and save
the request to a "refund_requests" table.Forge will notice that refund_requests doesn't exist yet and offer to create it — that's a database change, so expect an approval card for it. This is how bigger agents grow: capability by capability, each one tested before you move on.
What Forge asks approval for
| Step | Risk level |
|---|---|
| Creating the agentflow, editing its prompt or graph | Low — draft edits |
| Creating a table the agent needs | Medium |
| Connecting an external service for the agent to use | Medium |
| Deleting an agentflow or a table | High |