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.
Platform / Features
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.

Why an agent
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
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
How it works
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 BuilderStep 1, in Grasshopper
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.
01
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
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
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
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 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
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:
01
Go to agent.shapediver.com/settings and sign in with your ShapeDiver account.
02
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
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
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 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.
Safe by design
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.
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.
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
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 buildQuestions
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.
Models from OpenAI, Anthropic, Azure AI Foundry, Amazon Bedrock, and OpenRouter, with your own API key. You choose the model in your profile.
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.
Not yet. Today it works in apps published on shapediver.com/app; support for apps embedded on your own website is coming soon.
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
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.