Course menuForge Cloud

Level 2 · Lesson 7

Compare with a Studio agent

Goal of this lesson

Build an agent in Rovo Studio in the browser, with no code, let it work a repair sent to the expert, and compare it with the diagnosis expert your app brings.

About 30 min6 steps

This lesson has no code. You build a second agent in the browser and give it the same kind of work as the diagnosis expert, so you can see what an app-defined agent gives you that a Studio agent cannot.

Step 1: Pick a repair sent to the expert

Open the battery repair task from lesson 5, or any repair task labelled needs-expert with the This repair is ready for the expert comment. Keep its key at hand.

Stuck?One common problem, and its fix
  • Moving a repair task to “Approved for expert” does nothing

    The handoff checks four things before it sends a repair on: the repair task is in your Workshop space, it has the needs-expert label, its status is exactly the one named by HANDOFF_STATUS in src/lib/config.js (by default “Approved for expert”), and it was not sent on before. The log says which check stopped it.

    Open in the FAQ

Step 2: Create an agent in Studio

Atlassian’s own products

Studio agent

Rovo Studio builds agents in the browser: instructions, knowledge and built-in tools, with no app and no code. A Studio agent is quick to make and easy to change, but it can only use what Studio offers. It has no access to your app’s functions, your API Ninjas key or your egress list.

  1. Open Rovo Chat, open the agent menu at the top, and choose Create agent. Studio opens.
  2. Studio asks what your agent should do and offers suggestions. Choose to start from blank instead; the link for that is small, near the top right of that box.
  3. Name it Repair researcher. The name is the title at the top of the agent’s settings, shown as Untitled Agent at first; select it to edit it.
Stuck?One common problem, and its fix
  • The diagnosis expert does not appear in Rovo

    Rovo has to be active on the site, and the installation has to be on the version that added the agent. Deploy, approve and upgrade, then open Rovo Chat and browse agents.

    Open in the FAQ

Step 3: Write its instructions

Paste these instructions, or write your own with the same limits:

CodeInstructions
You research repair tasks for a car workshop that tracks its work in Jira.
Work only on the repair task you are given. Read it first, including its comments.
Write one comment with: likely causes, the checks that would confirm them, and any risks.
Mark anything you could not check as unchecked. Never invent a part number or a source.
Never change the repair task's status, assignee or summary, and never create new repair tasks.

The last three lines are the limits: say what is unchecked, invent nothing, and change nothing but the comment.

Step 4: Give it Jira, and only Jira

  1. Add tools to the agent: search the tools for work item and add the one that reads a work item (for example Get work item) and the one that comments on it (for example Comment on work item).
  2. If Studio lets you limit them to a space, choose Workshop; if it doesn’t offer that, skip it.
  3. Studio also gives a new agent Knowledge: All site knowledge by default, which lets it search every Confluence page and space you can see. Select Knowledge and turn it off, or limit it, so the agent works only from the work item it reads. Either way it can never read more than you can.
  4. Leave everything else off, then publish the agent.
Stuck?One common problem, and its fix
  • The diagnosis expert does not appear in Rovo

    Rovo has to be active on the site, and the installation has to be on the version that added the agent. Deploy, approve and upgrade, then open Rovo Chat and browse agents.

    Open in the FAQ

Step 5: Let it work the repair task

On the repair task, start the agent from its Agents area, for example with Start work, and choose your Repair researcher. Assigning the repair task to an agent only changes who owns it; starting it is what makes it work.

The agent may first show a draft of its comment, visible only to you, and wait with a message that it is waiting for input. That is a safety check: select Confirm to let it post the comment. When it finishes, reload the repair task and read its comment.

Stuck?One common problem, and its fix
  • The diagnosis expert does not appear in Rovo

    Rovo has to be active on the site, and the installation has to be on the version that added the agent. Deploy, approve and upgrade, then open Rovo Chat and browse agents.

    Open in the FAQ

Step 6: Compare the two agents

Ask both agents about the same repair task: the diagnosis expert in Ask Rovo, the Repair researcher on the repair task. Then give both the same question that needs outside data: “Which fuel types and gearboxes does this car model come in?” The diagnosis expert can answer from API Ninjas, through your app’s tool. The Repair researcher can only guess from general knowledge, or say it cannot check.

  • The diagnosis expert calls your app’s actions: it can look up the car with your API Ninjas key, and publish notes once per repair task because your code remembers.
  • The Repair researcher from Studio works only with Studio’s tools: quick to change and no code, but no API Ninjas key, so it cannot look up the car, and nothing that remembers what it already published.
Diagnosis expert (your app)the agentyour actionsAPI Ninjasremembers whatit publishedRepair researcher (Studio)the agentJira readJira commentoutside datayour code and key,outside servicesno code, quick tochange, Jira only

Use Studio for agents that read and write what Atlassian already offers. Build one into a Forge app when it needs your code, your data or an outside service.

What you built

The same app from Level 1 now runs a whole check-in:

  • A page in Jira where the person at the front desk names the car and pastes the notes.
  • A queue and a consumer that answer at once and work afterwards.
  • Forge LLM to split the notes into one repair task per fault.
  • A Confluence repair report.
  • A handoff to the expert.
  • A Rovo agent of your own.

Every piece reuses something from before: the car details card shows on every repair task the app writes, and the expert calls the same car data file.

The optional last lesson takes online bookings, so other systems can check cars in too.

Check what you know

Eight questions on Level 2. Each answer explains itself.

  1. Question 1 of 8

    From lesson 2, why does the desk answer before any repair task exists?

  2. Question 2 of 8

    Who is the reporter of a repair task that the queue’s function (the consumer) writes?

  3. Question 3 of 8

    What does the check-in desk put in the queue?

  4. Question 4 of 8

    Why does the desk save the check-in before it puts the check-in number in the queue?

  5. Question 5 of 8

    In lesson 3, who decides which repair tasks get written?

  6. Question 6 of 8

    The consumer crashes after writing two repair tasks, and Forge runs it again for the same check-in. Because it saved its progress (checkpoints), what happens?

  7. Question 7 of 8

    Why does the handoff read the repair task’s labels from Jira instead of from the event?

  8. Question 8 of 8

    What can the diagnosis expert do that the Studio agent from lesson 7 cannot?

Type at least two letters.