Skip to content
Docs

Quickstart: build an agent with AI

In this tutorial you’ll build an AI agent without touching the canvas. You describe what you want in a chat, approve the builder’s plan, watch it assemble and test a flow, then open that flow and run it yourself. By the end you’ll have a working sentiment agent and you’ll know how to steer the builder through any build.

The agent you describe calls no external services and needs no credentials of your own, so there is nothing to sign up for along the way.

  • An account on a Publicus workspace with permission to create flows.
  • An AI model available to your workspace. On hosted Publicus the platform’s models work out of the box. If sending a message reports “AI builder unavailable”, your administrator has not configured an AI provider yet.

Click the Build with AI button at the top of the sidebar, above the navigation groups. You land on a chat page: a few suggestions to start from, and a message composer at the bottom. Two icons sit under the composer: Conversations, where you start a new conversation or reopen an earlier one, and Settings, the builder’s settings.

The Build with AI page: suggestion cards to start from, the message composer with Send, and the Conversations, Settings, Attach and Dictate buttons under it
The Build with AI page: suggestion cards to start from, the message composer with Send, and the Conversations, Settings, Attach and Dictate buttons under it

A new conversation starts in Auto-write: routine edits run on their own and only consequential actions pause for you. For this tutorial, click Settings and, on its Mode tab, pick Ask first instead, so the builder asks before it changes anything and you see every step.

Builder settings on the Mode tab, listing Read-only, Ask first, Auto-write, marked In use, and Autopilot, each with what it does without asking and what it asks you first
Builder settings on the Mode tab, listing Read-only, Ask first, Auto-write, marked In use, and Autopilot, each with what it does without asking and what it asks you first

Type this into the composer and press Send:

Build a flow I can run by hand. Its input is a short customer message. An AI agent reads it and returns JSON with a sentiment (positive, neutral, or negative) and a one-sentence suggested reply. Do not use any external services.

The builder starts working. A phase strip appears above its reply showing where it is: Research, Plan, Set up, Build, Test, Done. Under it, a status line narrates the current step, such as “Consulting the documentation” while it searches the Publicus docs to pick real nodes and real settings.

The phase strip with Research, Plan, Set up and Build lit and Test and Done still grey, a status line under it, and the steps so far, starting with Consulting the documentation
The phase strip with Research, Plan, Set up and Build lit and Test and Done still grey, a status line under it, and the steps so far, starting with Consulting the documentation

Before anything is created, the builder posts a plan card describing the flow it intends to build, with a Build it button. Read it. It should name an agent step that classifies sentiment and drafts a reply.

A plan card for a customer message triage flow: its input, an agent step that answers with sentiment and suggestedReply, its output, and a Build it button
A plan card for a customer message triage flow: its input, an agent step that answers with sentiment and suggestedReply, its output, and a Build it button

Click Build it. Nothing is created until you do; if you’d rather change something first, type the change into the composer instead and the builder proposes a revised plan.

Because you switched the conversation to Ask first, each build step pauses on an approval card listing what the builder wants to do: create the flow, add the steps, wire them together. Routine changes are bundled into one card with an Approve all button, so a step is one decision, not five.

An approval card listing two changes, creating the flow and assembling it, each with skip this one, an Approve all (2) button, and when the card expires
An approval card listing two changes, creating the flow and assembling it, each with skip this one, an Approve all (2) button, and when the card expires

Click Approve all on each card as it appears (a card holding a single change labels the button Approve), and submit the dialog that opens. The dialog offers a checkbox to stop asking for routine changes for the rest of this conversation; leave it unchecked this time so you see every step.

The Approve these changes dialog with an unticked checkbox to allow routine changes for the rest of the conversation, and Submit and Cancel
The Approve these changes dialog with an unticked checkbox to allow routine changes for the rest of the conversation, and Submit and Cancel

Some actions are never bundled into Approve all: running a flow, sending messages to anyone but you, and deleting things are listed separately on the card, each with its own Approve and Deny buttons. When the builder asks to test-run your new flow, click Approve and let it.

While the builder works, a panel beside the chat shows the flow under construction, read-only, with an Open link to the full canvas. Every flow, table, or page the conversation touches gets a tab of its own there. In a narrow window the preview sits in the chat instead, with an Open on canvas link and a count of the flow’s nodes and edges. From the keyboard, Tab skips over that preview: Open on canvas is the way into the flow. When the builder test-runs the flow, the run itself appears in the chat with a status per step, so you watch the agent step turn green instead of taking the builder’s word for it.

The flow preview beside the chat: the new flow's Start wired to its Classify and draft agent node, with an Open link
The flow preview beside the chat: the new flow's Start wired to its Classify and draft agent node, with an Open link
The composer while the builder works: a hint that a note steers the build, the note field, and Stop and Send note in place of Send
The composer while the builder works: a hint that a note steers the build, the note field, and Stop and Send note in place of Send

When the turn finishes you get three things under the builder’s reply:

  • Flows touched, with the new flow as a clickable chip.

  • A View the full run link showing exactly what the builder did this turn.

  • A readiness card. For this build it should read ”…” is ready to run on a green card. If it reads waiting on you instead, the card lists what only you can provide, which for this credential-free agent should not happen.

    A green readiness card saying the flow is ready to run, with Open the flow
    A green readiness card saying the flow is ready to run, with Open the flow
    A yellow readiness card saying the flow is waiting on you, listing a secret that still has no value, with Open the flow
    A yellow readiness card saying the flow is waiting on you, listing a secret that still has no value, with Open the flow
A finished builder turn: the reply saying the flow is built and tested, Flows changed with the flow's chip, View the full run, and the ready to run card, with the flow preview beside the chat
A finished builder turn: the reply saying the flow is built and tested, Flows changed with the flow's chip, View the full run, and the ready to run card, with the flow preview beside the chat
  1. Click the flow’s chip under Flows touched (or Open the flow on the readiness card). The canvas opens, showing the graph the builder made: a Start node where every run begins, and the agent node it described in the plan.
  2. Click Run by hand in the page header.
  3. The Run flow dialog asks for the flow’s start data. The builder defined the input from your description, so fill the message field with a line like The package arrived two weeks late and nobody answered my emails. and click Run.
  4. The Runs panel opens at the right edge of the canvas and the new run’s status updates live until it reads Completed.
  5. Click the run’s row to open its run report. The final output holds the JSON your agent produced: a sentiment of negative and a suggested reply.

Run it again with a friendlier message and watch the sentiment flip.

You described an agent in two sentences and got a real flow: planned, scaffolded, wired, and test-run by the builder, with you approving each step. Nothing about it is special or locked. It is a normal draft flow in your workspace that you can edit on the canvas, extend with more steps, or publish so triggers can run it.

  • Learn everything the builder can and cannot do, its autonomy modes, and its limits: Build with AI.
  • Build an agent by hand on the canvas and understand the agent node’s settings: Build an agent.
  • Understand the approval modes you saw on the Mode tab: Add human approval.
  • Publish the flow so a webhook or schedule can trigger it: Draft, publish & versions.
  • Dig deeper into run reports: Runs.