# Your first App

Build a working App containing a Process and an AI Agent that calls it, in about twenty minutes.

Type: tutorial · Mode: develop · Since: 2.0 · Requires: Develop mode, permission to create Apps · Status: unverified

---
This is a lesson rather than a recipe. You will build something small that genuinely
works, and by the end you will have touched every object the SimplyAsk Platform is built from: an App,
two Resources inside it, an Agent that calls one from the other, and the logs that record
what happened.

Nothing here depends on your own systems, so it works the same in any platform
environment.

:::note[About the screens]
The click paths below follow Develop mode in the 2.0 test environment. Menus can move
between builds, so if a label differs from what you see, look for the nearest match.
:::

## What you will build

An App called Weather Briefing containing two Resources:

- A Process that calls a public weather API and returns what it finds.
- An AI Agent that has that Process in its Tool Pool, so it can run the Process when
  someone asks it about the weather and explain the result in plain language.

It is deliberately trivial. The point is not the weather. The point is that you will have
built the structure every real platform solution uses, and you will know where to look when
something misbehaves.

Expect about twenty minutes.

## What you need

- Access to Develop mode, and permission to create Apps.
- Nothing else. No external accounts, no credentials, no data.

:::note[If your platform cannot reach the public internet]
This tutorial calls a public API. If you are running self-hosted, air-gapped, or behind
a restrictive egress policy, that call will fail through no fault of yours. Substitute any
internal endpoint that returns JSON, and the rest of the tutorial works unchanged.
:::

## Step 1: Create the App

An App is the container. Everything else you build here goes inside it, which is what lets
you version it, export it, and measure it later as one thing.

1. Switch to Develop mode and select Apps under Build.
2. Select Create App.
3. On the General tab, enter the name Weather Briefing. Add a Summary, which real
   Apps use to describe themselves in the directory. It is worth doing even on a toy.
4. Select Deploy to save the App.

You can skip the Analytics and Variables tabs for this tutorial; a toy App with one weather
call has nothing worth measuring or sharing across Resources. See
[Create an App](/build/create-an-app/) for what they are for on a real one.

**You should now see:** an empty App named Weather Briefing, with no Resources in it.

## Step 2: Build the Process

Your Process has one job: fetch weather data and hand it back.

1. Select Resources under Build, then Create Resource, and choose Process.
2. Name it Get Weather and continue. The Process Editor opens. Nothing is saved until
   your first successful Deploy.
3. Add an [Invoke REST API](/reference/steps/invoke-rest-api-general/) step. Set the method
   to `GET` and the URL to a public weather endpoint that needs no key. This one returns the
   current conditions for Vancouver as JSON:

   ```text
   https://api.open-meteo.com/v1/forecast?latitude=49.28&longitude=-123.12&current_weather=true
   ```

4. Return the response body as the Process output, then Deploy.
5. Open the Weather Briefing App from Apps, select Edit App, and on the
   Resources tab add the Get Weather Process to the App. Deploy the App.

Run it once from the editor to confirm it works on its own. A Process that is broken before
an Agent touches it is much harder to diagnose afterwards.

**You should now see:** a saved Process that returns weather JSON when you run it.

## Step 3: Build the Agent

1. Select Resources, then Create Resource, and choose Agent. Name it
   Weather Assistant and continue.
2. The Agent editor opens as one scrolling page, with a list of sections down the side. In
   Setup, find Identity & Purpose.

In the Purpose field, which is new in 2.0 and required, write what the Agent is for:

```text
You answer questions about current weather conditions for an operations team.

When someone asks about the weather, use your weather tool to get current data, then
reply with two plain sentences: the first describing conditions, the second noting
anything an outdoor work crew should be aware of.
```

Then go to the Resources section, open the Tool Pool and add the Process you built
in step 2. Flow Processes appear
in the Tool Pool alongside built-in tools and Skills, which is what lets an Agent run one.

Leave everything else at its default. Agents have a great deal of configuration and none of
it matters yet. Deploy the Agent, then add it to the Weather Briefing App on its
Resources tab, as you did with the Process.

**You should now see:** an AI Agent listed as a Resource in your App, with one tool in its
Tool Pool.

## Step 4: Talk to it

1. Under Test, open Agent Tester.
2. Pick Weather Assistant and the Default Widget, then select Apply. The tester
   uses the latest deployed version of the Agent, so deploy first if you changed anything.
3. Ask it something like "what's the weather doing?"

**You should now see:** the Agent decide to call your Process, wait for the result, and
answer in two sentences.

That decision is the thing worth noticing. You did not tell the Agent when to run the
Process. You gave it a purpose and a tool, and it worked out the rest. That is the
difference between an Agent and a Process.

If it failed, that is useful too. Go to step 5 anyway, because working out why something
failed is most of what Develop mode is for.

## Step 5: Read what happened

Open the App's activity. Every Resource in the App writes its Activities to one unified view,
so the Agent session and the Process run appear together rather than in two separate places.

1. Under Build, select Apps and open Weather Briefing.
2. On the General tab, find the recent activity list and select View Full Activity.
3. Open the entries for the Agent session and the Process run.

You can see what the Agent was asked, that it chose to call your Process, what the Process
returned, and what the Agent did with it. On a real solution this is where you go when an
Agent does something surprising, and it is the reason everything lives in one platform.

**You should now see:** one Agent session containing one Process run, with the input and
output of each.

## What you built

A complete platform solution in miniature:

- An App, which is the unit you version, export, control access to, and measure.
- Two Resources inside it that know about each other because they share an App.
- A Tool Pool, where an Agent is given the things it is allowed to do.
- Unified logs, where both Resources show up together.

Everything larger is this, repeated. A real Field Service App is dozens of Resources rather
than two, wired to real systems rather than a public API, but the structure is identical.

## Where to go next

- [Core concepts](/concepts/core-concepts/) now has something concrete to attach to.
- [Configure an AI Agent](/build/configure-agents/) covers the settings you skipped.
- [Browse the step library](/reference/steps/) to see what else a Process can do.
- [Export and import an App](/build/export-import/) to move what you built somewhere else.