---
name: landing-pages
description: Build and change landing pages on the team's Zerply Foundry site as React and Tailwind code, including interactive tools such as calculators and checkers, lead forms and CTAs. Covers reading the Foundry page rules, building with desktop and mobile screenshots, saving versions, restoring old versions, SEO metadata, slug changes with redirects, and publishing. Use when the user wants a new landing page, a calculator or tool page, changes to an existing Zerply landing page, or to publish or take one down.
---
# Landing pages
Use the Zerply connector. Run read operations inside its `execute` tool with `await call_tool(name, params)`. Call each operation that changes data as its own connector tool. If you do not know the team yet, call `get_my_teams` and confirm the domain with the user. The `zerply` skill has the full connector rules.
A Foundry landing page is a small React and Tailwind project. Foundry checks it against safety rules, bundles it and serves it on the team's domain. Saving creates a new version and does not change the live page. Publishing puts the latest version live.
## 1. Read the rules first
Call `get_landing_page_rules` once per conversation, before you write or change a page, and follow it. It explains the project layout, the safety rules the build enforces, the styling tokens and the Foundry slots for lead forms, CTAs, maps and gated results.
```python
res = await call_tool("get_landing_page_rules", {})
return res["result"]
```
The rules were written for the builder inside Zerply. Their first section maps those tool names to the connector's operations. Things the rules mention that do not exist here, such as `/workspace`, `load_skill` and `review_code_page`, do not apply.
## 2. Get the brief
Before you write code, you need:
- The one action the visitor must take, and where the call to action links
- Whether the page captures leads, with a form on the page or a result that unlocks after a form
- The primary keyword, the audience and the country
- For an interactive tool: what it calculates, its inputs, and the source of the formula and constants
Ask for what is missing in one message. If the request is vague, propose a concrete page with its sections, the interactive part and the call to action, and confirm it before you build. Do not invent prices, statistics, testimonials or claims about the user's company.
For lead forms and CTAs, call `get_foundry_slots` and use the IDs it returns. Check `get_landing_pages` for pages to link to.
## 3. Build until it is clean
Keep a complete copy of every project file. In Claude Code, keep them in a local folder. Send all files on every call, keyed by path, for example `{"page.tsx": "...", "islands/Calculator.tsx": "..."}`.
Call the `build_landing_page` tool with `team_id` and `files`. It builds the page without saving it, and returns `ok`, `errors`, `warnings` and desktop and mobile `screenshots`.
<!-- ‹guest · 2026-12-01› -->
- Fix every item in `errors` and build again. Fix warnings when you can.
- Look at the desktop and mobile `screenshots` if you can view images. Check layout, contrast, spacing and the mobile view. If you cannot view them, give the URLs to the user and ask them to check.
## 4. Save a version
Call the `save_landing_page` tool. Example arguments:
```json
{
"team_id": 123,
"files": {"page.tsx": "..."},
"title": "ROI calculator for agencies",
"message": "First version with calculator and lead form"
}
```
Leave `landing_page_id` out and pass `title` to create a page. Pass `landing_page_id` to save a new version of an existing page. `message` is one short line for the version history. Foundry builds the files again before it saves.
Tell the user the version is saved and that they can review it in Zerply. The live page does not change.
## Change an existing page
1. `get_landing_pages`, then `get_landing_page` with `landing_page_id`. It returns the source files of the latest version.
2. Edit the files, then build and save as in steps 3 and 4. Always send every file, not only the changed ones.
To go back to an older version, call `get_landing_page_versions` and then `restore_landing_page_version` with the `version_id`. This makes it the latest version. The live page still does not change until it is published.
## SEO metadata and slug
`update_landing_page_meta` sets `slug`, `meta_title`, `meta_description`, `og_image_url`, `og_image_alt` and `visibility`. A live page changes right away.
Before you change the slug of a live page:
1. Call `get_landing_page_search_traffic`. If `connected` is false, Search Console is not connected. Tell the user.
2. Tell the user the clicks and impressions of the old URL in the last 90 days, and ask whether to redirect it.
3. Pass `redirect_old_slug: true` only if the user agreed.
## Publish, unpublish, delete
<!-- ‹guest · 2026-12-01› -->
- `publish_landing_page` puts the latest saved version live. Call it only when the user asks to publish.
- `unpublish_landing_page` takes the page off the website. Confirm first.
- `delete_landing_page` removes the page for good. Use it only when the user asks to delete. Name the page and get a clear yes.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.