Platform / Features

An AI agent in your app, set up in Grasshopper

The ShapeDiver Agent Framework adds an AI agent to the apps you build with App Builder. You set it up in your Grasshopper definition: what it should know, which parameters and actions it may use, and which results it should check. People using your app ask in plain language, and the agent works the model through the same controls they would, then tells them what changed.

New. Works in apps published on shapediver.com/app; apps embedded on your own website will follow soon.

The UrbanFrame app on shapediver.com: a 3D district of blocks and buildings with green parks, the key figures above it (floor area ratio, floor area, homes, residents, jobs, share of green), and a chat panel where the assistant reports that it raised the park share from 10% to 20%, increasing the green area from 14% to 19% of the site while the number of homes fell by 6.5%, within the 10% limit.
UrbanFrame, a district massing app we built as a demo. Asked for more green space without losing more than 10% of the homes, the agent raised the park share and reported the result.

Why an agent

Sliders for what sliders do well, language for the rest

A good app already hides most of a definition behind a few meaningful parameters, and for moving a value or picking an option, a slider or a dropdown is the right tool. Nobody wants to type “make the balcony 20 cm deeper”.

But engineering and planning apps often have many parameters that depend on each other, and a goal such as “more green space, at most 10% fewer homes” means trying, measuring, and trying again. Your definition already describes a space of valid designs and computes the numbers that matter. A language model is good at working through that kind of structured space for someone, provided it only gets the inputs and tools it needs. That’s the idea behind the Agent Framework: the people who know the model decide, in Grasshopper, what the agent may touch.

Mathieu Huard, co-founder and Head of Product

“Safe agents only get access to the design parameters and tools they need.”

An example

One request, a few tool calls, and the numbers to back it up

UrbanFrame turns a street plan into a district of buildings, parks, and offices, and reports its floor area ratio, homes, residents, jobs, and share of green as it changes. Asked to make the district greener without losing more than 10% of the homes, the agent read the current parameter values and the definition’s metrics, raised the park share from 10% to 20%, and answered with the figures: green area up from 14% to 19% of the site, homes down by 6.5%.

Each step shows in the chat as it happens, and the model in the viewer updates with it. The person asking can check the result, undo it, or carry on with the sliders.

UrbanFrame is part of our example models: the Grasshopper definition, agent setup included, to open, upload, and take apart.

Get UrbanFrame from the example models
Make the district greenerpark share 10% → 20%
Screen recording of the UrbanFrame app: a 3D district of blocks, buildings, and parks with its key figures above it. Someone looks through the app's panels (quick scenarios, the district's parameters, a chart of building heights), then types into the chat: make the district greener without losing more than 10% of the homes. The agent calls get_parameter_values, get_metric, and set_parameter_values, the parks grow, and it answers that the park share went from 10% to 20%, the green area from 14% to 19% of the site, and the number of homes fell by 6.5%, within the 10% limit.
The UrbanFrame recording: the request, the agent's tool calls, and its answer, as the district updates.

How it works

Your definition, your app, and the LLM you choose

The framework has three parts. In your Grasshopper definition, next to the App Builder interface, you set up the agent: its instructions, what it may reach, and the metrics it should check. In your app, published on the platform, the agent’s chat sits beside the model. ShapeDiver’s agent service runs the conversation and calls the language model you chose, with your own API key.

When the model decides to change something, the change runs in the app, in the user’s browser, through the same App Builder controls the user has. So the agent can’t do anything the app doesn’t allow, and every result is the real geometry from your definition, not an approximation.

See App Builder
Diagram: in Grasshopper you set up parameters, metrics, and the agent; your app on the platform shows the 3D viewer, the controls, and the agent chat; the chat talks to the ShapeDiver agent, which calls your own LLM provider with your API key

Step 1, in Grasshopper

Set up the agent in your definition

The agent belongs to an App Builder app, so you start from a definition with an App Builder interface, or add one. Then you describe the agent and decide what it can reach, in the same place you build the rest of the app. For a running start, open the AI agent setup example or UrbanFrame from our example models and see how they’re wired.

Diagram: the agent can use only what you give it in Grasshopper (the parameters you pick, the actions you list, the camera and screenshots, metric outputs, and tools you define); everything else is not exposed and stays out of its reach

01

Describe the agent

Give it a name and instructions: what the app is for, what people usually ask, and what to watch out for. These instructions are the agent’s system prompt, written by the person who knows the model best.

02

Choose what it can reach

Out of the box, the agent can read and set the model’s parameters (except those you’ve hidden), trigger the app’s actions, move the camera, take screenshots, and read outputs. You can narrow that to the parameters and actions you pick, and give each one a short description, so the agent knows what a parameter means and not only its name.

03

Add tools of your own

For a change that takes several steps or many values at once, define a tool: a name, a description, and the inputs it expects. Behind it you wire App Builder actions, such as setting several parameters in one go. The agent sees the tool, never the actions behind it.

04

Give it something to check

Add a data output named AgentMetric with the figures that matter for your model: floor area ratio, cost, weight, number of parts. The agent reads it after a change to see whether it met the goal, the way an engineer checks the numbers.

05

Upload as usual

Upload the definition to the platform, from the Grasshopper canvas or in the browser. The agent’s setup travels with the definition, and a new version of the model updates the agent with it.

Step 2, your API key

Connect the agent to your LLM with your own key

The agent uses a language model from a provider you choose, with your own API key. You pick the model, and your provider bills the usage to your account directly. A profile in the agent settings holds:

Provider
OpenAI, Anthropic, Azure AI Foundry, Amazon Bedrock, or OpenRouter
API key
Shown only as its last four characters once saved
Model
The provider’s default, or the one you name
Instructions
Optional, added to every agent that uses the profile
Outside tools
Optional MCP servers and A2A agents

02

Create a profile

Choose the provider, paste your API key, and pick the model. Optionally, add instructions that apply to all your agents and the example prompt a new conversation starts with.

03

Make it your default

Your default profile is the one your agents use. To use a different one in a particular app, name that profile in the agent’s setup in Grasshopper.

04

For a team, use the organization’s profile

Organization admins can create profiles for everyone in the organization and set its rules: which providers are allowed, which outside tools may be connected, and whether personal profiles may be used at all.

Step 3, on the platform

Publish the app, and people can start asking

Publish the app on shapediver.com/app like any other App Builder app: share it by link, keep it to your organization, or make it public. The agent’s chat sits beside the model. People type a question or a request, see each tool call as the agent makes it, and watch the model update as it goes. They can also just ask (“What is the current density, and how many people live here?”) without changing anything, and earlier conversations stay in the chat’s history.

Coming soon

Today the agent works in apps published on shapediver.com/app. Support for apps embedded on your own website is on its way.
The UrbanFrame app while the agent works: the chat panel lists its tool calls (get_parameter_values and get_metric done, set_parameter_values running) under the request to make the district greener, next to the 3D district.

Safe by design

The agent can only do what you let it

Only what you expose

The agent sees the parameters, actions, and outputs you give it, and nothing else. Your definition stays on the platform: what reaches the language model is the conversation, your instructions, the tools’ descriptions, and what the tools return.

The same limits as a slider

Every change goes through App Builder and is checked against the parameter’s definition, exactly like a change made by hand. A value outside its range is refused, not applied.

Your provider, your terms

Requests go to the LLM provider you chose, under your own account and its data terms. Organizations can limit which providers, outside tools, and agent tools may be used.

AI that helps you build

Building the app with a coding agent is a different thing

This page is about an agent inside your app, for the people who use it. If you’d rather have your own coding agent (Claude Code, Cursor, GitHub Copilot) build a custom ShapeDiver front end, our open-source Agent Skills give it expert knowledge of the Viewer API.

See agent-assisted build

Questions

Frequently asked

Does the agent replace the app’s interface?

No. The controls stay where they are, and for most changes they’re the faster way. The agent is for the requests that are easier to say than to do: goals with constraints, several changes at once, or questions about the current design.

Which language models can I use?

Models from OpenAI, Anthropic, Azure AI Foundry, Amazon Bedrock, and OpenRouter, with your own API key. You choose the model in your profile.

Who pays for the model’s usage?

Your LLM provider bills the account the API key belongs to. The computations the agent triggers in your model count like any others in your plan.

Can I use the agent on my own website?

Not yet. Today it works in apps published on shapediver.com/app; support for apps embedded on your own website is coming soon.

What does the agent send to the LLM provider?

The conversation, the agent’s instructions, the descriptions of the tools it may use, and what those tools return: parameter values, outputs, and screenshots when it takes one. Not your Grasshopper definition.

AI

Give your app an agent

Start a free trial, set up an agent in one of your definitions (or start from UrbanFrame in our example models), and add your API key. Or talk to us about where an agent fits in what you’re building.

Talk to our team

Your Business

How can we help?