> For the complete documentation index, see [llms.txt](https://docs.amply.tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.amply.tools/mini-apps/building-with-ai.md).

# Building with an AI assistant

Let an AI assistant connected to Amply's MCP server draft a mini-app, then finish it in the Builder.

An AI assistant connected to [Amply's MCP server](https://docs.amply.tools/reference/mcp-tools.md), such as Claude or Cursor, can build a [mini-app](https://docs.amply.tools/mini-apps/overview.md) from a plain description: the screens, the texts in several languages, the colours, simple illustrations, and the actions behind every button. It saves the result as a draft in your project and gives you a link that opens it in the Builder. From there you and the assistant work on the same mini-app: you adjust it by hand, and it makes the next round of changes on top of yours.

## Before you start

[Connect your assistant to Amply](https://docs.amply.tools/getting-started/ai-assisted-integration.md#set-it-up). On the consent screen, **Create draft campaigns** covers building, editing and publishing mini-apps, and **View your projects and campaigns** covers reading them and making test links. Starting a campaign is a separate permission, **Start and stop campaigns**. If your assistant doesn't ask for it, it takes the work as far as a draft campaign and a person starts it in the dashboard.

## How a round trip goes

1. **Describe what you want.** Name the kind of screen (sheet, card, story or full screen), what it says, what each button does, your brand colour and the languages.
2. **The assistant builds a draft** and returns the Builder link and any warnings. Warnings point at things a person would notice on a phone: an image with no height, a missing translation, a button not pinned to the bottom, low contrast, a label that will be cut off.
3. **Open the link and look.** The assistant can't see the screens it builds, so the Builder is where you check them. Use **Preview** with both themes and every language.
4. **Fix what you like by hand.** Your edits save as usual.
5. **Ask for the next change.** The assistant reads the current mini-app, including your edits, before it changes anything. If the mini-app was saved in the Builder after the assistant read it, Amply refuses its change and the assistant reads the latest draft before trying again.
6. **Publish and attach.** The assistant can publish the mini-app and create a draft **Mini-app** campaign that uses it, with the audience and trigger you describe.
7. **Check on a phone, then start.** Ask for a test link (the same as **Test on device**), open it on your phone, and start the campaign in the dashboard when you're happy.

## What to ask for

Examples that work as written, with your own names:

* *"In my Seabook project, make a bottom sheet offering 30% off Premium. See plans opens `seabook://paywall` and closes the sheet; keep the ✕. Brand colour #0E7490 with a lighter version for dark mode. English and German. Send me the Builder link."*
* *"Build a three-slide what's-new story about the offline logbook, with simple illustrations. Swiping up opens `seabook://logbook`. Publish it and create a draft Mini-app campaign that fires on `AppOpened`, once per user."*
* *"Open the onboarding I made in the Builder, add Spanish to every text, and tell me which warnings are left."*
* *"Here's `hero.png`. Put it at the top of a full-screen paywall with a Start trial button at the bottom. Publish it, point my Paywall campaign at the new version, give me a test link for my phone, and don't start anything."*

## What the assistant does differently from the Builder

* **It can bring images.** It can upload a picture from its own computer, for example one it just generated, or copy one from a public web address. It can also draw simple illustrations directly.
* **It edits in bulk.** Adding a language and translating every text, or recolouring every button, is one request. It can also set a dark-mode colour of its own instead of the generated one, and build up to 30 screens in one mini-app.
* **It can't delete or duplicate a mini-app.** Do that from the Builder list.
* **It can't see the result.** Look at every draft in the Builder before you publish it.

Mini-apps built by an assistant have the same [limits](https://docs.amply.tools/mini-apps/overview.md#what-a-mini-app-cant-do) as ones built by hand.

## Related

* [MCP tools](https://docs.amply.tools/reference/mcp-tools.md#mini-apps) — the mini-app tools, one by one
* [AI-assisted integration](https://docs.amply.tools/getting-started/ai-assisted-integration.md) — connecting the MCP server and the integration skill
* [Publishing and versions](https://docs.amply.tools/mini-apps/publishing-and-versions.md)
