A popup is a small box that appears over the page while a visitor is browsing: a headline, some text, a button, and optionally an email field or a coupon code. Common uses are catching visitors as they're about to leave, or offering a discount partway through the page.
Where to find it
- Admin → Site → Popups (same location on mobile)
- Popups appear on your front-end pages — the admin pages (/admin) never show popups
- New popups are built by the AI (tool
upsert_popup) — the admin panel can view and edit existing popups
How to do it
- Tell your AI Agent, for example: "Show a popup when visitors are about to leave the homepage, offering a 10% discount code in exchange for their email, and tag anyone who leaves one as 'Coupon claimed.'" It will build the popup for you (saved as a draft first -- it only shows once you confirm and change the status to "Active")
- To change it: click "Edit" on a popup in the admin list to change the status, trigger type and threshold, display frequency, page scope, Chinese/English title, body, and button text, button link, email collection, and coupon code, then click "Save" -- or just keep asking the AI to change it
- It only shows once the status is set to "Active" -- draft and archived popups never show
- Popup text only comes in Chinese and English: simplified/traditional Chinese visitors see the Chinese version, visitors in any other language see the English one -- so make sure to fill in the English version too
The "Views / Submits" column in the list shows how many times it showed and how many times it was submitted.
Trigger types
| Option | When it fires | How to fill the threshold |
|---|---|---|
| Exit intent | Mouse moves above the top of the browser window (like they're about to close the tab) | No value needed |
| Scroll depth (%) | Page is scrolled down past a certain percentage | 0 to 100; 0 is treated as 50% |
| Time on page (seconds) | Visitor has stayed on the page for that many seconds | A number of seconds; 0 is treated as 10 seconds |
| CTA click | Not wired up on the front end yet — won't fire if selected | — |
Exit intent relies on the mouse, and there's no mouse on mobile, so mobile visitors never trigger it. Use scroll depth or time on page if you want mobile visitors to see it too.
Only one popup shows on a page at a time; if a page has several "exit intent" popups, only the first one is used.
Display frequency
- Once per session: shows once before the browser tab is closed
- Once a day, once a week: tracked by calendar date
- Every visit: can show on every page load
Frequency is tracked in the visitor's own browser. If they clear their browser data, switch devices, or open a private window, it starts counting again.
There's also a site-wide anti-annoyance limit the system checks before showing any popup — if that's been hit, it won't show this time either. So if a popup doesn't appear during testing, it's not necessarily a configuration mistake.
Which pages it appears on
Both fields take a JSON array of paths: square brackets on the outside, each path in double quotes, paths separated by commas. For example, to show it only on the home page and the shop, put / and /shop inside the brackets.
- A full path matches only that one page
- Add
*at the end to match every page starting with that prefix —/blog/*matches every blog post - An empty "Pages to include" field = show on every page
- Pages matched in "Pages to exclude" never show the popup — exclude takes priority
- If the JSON is malformed (say, a missing quote), the system treats it as empty, so the popup shows site-wide. Open a few pages to test after filling it in
After you collect an email
With "Collect email" checked, the popup gets an email field; after the visitor fills it in and clicks the button, they see "Confirmed!" If a coupon code was set, it's now displayed in large text, telling them to use it at checkout.
A few things worth knowing about how this actually works right now:
- Emails collected through a popup are recorded in that popup's submissions, but there's currently no admin page to view the list of those emails
- The system supports "tag on submit" and "send an email template on submit": tagging also turns this email into a customer, and the tag's downstream actions (entering a sequence, syncing to a community, triggering automations) run as usual. There's nowhere in the popup admin page to set either of these, but you can have the AI configure them with
upsert_popup's onSubmitTagSlug (tag) and onSubmitEmailTemplate (email template) - Without a tag set, this email won't become a customer, and won't be added to your mailing list
So the more reliable way to collect emails with a popup and actually follow up right now is: don't check "Collect email" — instead, point the button link at a form page (/forms/your-form, or any page with a form block). A form will create the customer, notify you, apply tags, send email, and trigger automations — see "Forms & Surveys" for details.
Coupon codes
The coupon code in a popup only displays that string to the visitor — it doesn't create the coupon for you. First go to Admin → Business → Coupons and create a coupon with the same code, then put it in the popup; otherwise the visitor won't be able to use it at checkout.
Let AI handle it
Just tell it what kind of popup you want (see the "How to do it" examples above), and it will use upsert_popup to create or update one. list_popups shows which popups exist and how many views/submits each got; get_popup reads back a popup's full settings so you can check the change. Don't want it anymore? delete_popup removes it — along with its view/submit records, which can't be recovered. If you just want to pause it, have the AI set its status to "archived" instead — no need to delete. None of these tools are in the default toolset; they're in the "Funnels - Webinars - Forms" group.
Watch out for / FAQ
- Q: I set it up but it never appears? A: Check, in order: is the status "Activate"; is the trigger "CTA click" (doesn't fire yet); are you testing exit intent on mobile; has this session / today already shown it (try a private window); does "Pages to include" leave out the current page.
- Q: I checked "Collect email" and also filled in a button link — does the button navigate away? A: No. When "Collect email" is checked, the button submits the email instead.
- Q: How do I stop a popup? A: Edit it and change the status to Draft or Archive, or just delete it.
Related articles
- "Forms & Surveys: building forms, what happens after submission, viewing submissions" (forms-and-surveys)
- "Page Editor: creating pages, editing blocks, publishing" (page-editor)