launch_session_ui for a hosted preview or export_app to get a runnable Next.js project — the result is a small three-screen web app:
1
Landing page
The first thing your user sees. It’s a page you describe in plain language — its layout, copy, brand, and what (if anything) it should collect before the session. The AI agent turns that description into the page’s HTML.
2
The FaceSign session
Your user clicks Start (or whatever you named your button), and the FaceSign verification session loads in an iframe right inside your app. The user never leaves your page.
3
Recap page
Once the session finishes, the user is taken to a final page. This can be as simple as a short thank-you with a confirmation, or as rich as a full verification report — it’s up to you.
Describing the pages to the agent
You don’t build or wire these pages yourself. You describe them — the AI generating the app produces the HTML, handles passing the flow to the session, and polls for the session result when the recap needs it. Tell the agent things like:- What the landing page should say, and whether it should collect any information before the session starts (e.g., a pre-filled name, a scenario the user picks from a list).
- What brand to apply — your company name, a hex colour, a logo URL, or a reference website you’d like it to take visual cues from. See Session Customization › Auto-brand from your website.
- What the recap should show — a short confirmation message, or a fuller report (transcript, per-step outcomes, an overall result banner).
Landing vs. recap — what changes between them
Recap page: minimal vs. rich
The recap is where the most variation happens. Two shapes cover almost all real-world use cases: Minimal recap. A short thank-you page that confirms the session is complete and, if relevant, tells the user what happens next (“We’ll send you a confirmation email shortly.”). This is what you want in production — the detailed verification result should be consumed server-side through webhooks orGET /sessions/:id, not rendered in the browser.
Rich recap. A full verification report with an outcome banner, per-step timeline, behavioural analysis cards, session transcript, and so on. This is great for demos and internal stakeholder reviews, where you want to showcase what FaceSign saw. Ask the agent for a “demo-style recap” and it will build one out.
Next Steps
Session Customization
Brand the FaceSign permissions page and tell the agent which website to pull styles from.
Add Webhooks
Receive the authoritative session result server-side.