Artifacts
Build and publish external forms and interactive calculators in Orbitype—without running separate frontend or backend projects.
TABLE_OF_CONTENTS
What Are Orbitype Artifacts?
Artifacts are interactive pages you create inside Orbitype. They are ideal for public forms, pricing calculators, internal tools, dashboards, and custom data experiences.
What an artifact includes
Title: clear name of your artifact
Description: context for teammates and users
HTML: the UI rendered in the live preview
Actions: backend functions called from the UI
Visibility:
privateorpublic
Why use artifacts
Fast delivery for custom pages and calculators
Built-in connection to Orbitype runtime
Easy share and embed workflow
No extra hosting setup for basic use cases
Build an External Form or Calculator
Step-by-step
- Open Artifacts in the sidebar.
- Click New artifact.
- Add title and description.
- Build your interface in the HTML editor.
- Use the live preview to test behavior.
- Save and iterate.
Typical examples
- Lead intake form with validation
- ROI or pricing calculator
- Campaign performance calculator
- Interactive onboarding checker
Editor tips
- Keep each artifact focused on one primary user task
- Use clear labels and empty states
- Design for mobile first if shared externally
Connect UI to Backend Actions
Use actions when your form or calculator needs secure server-side logic (database queries, APIs, AI calls, enrichment, etc.).
Call an action from your artifact
const result = await Orbi.action("load_kpis", { range: "30d" })
console.log(result)Action model
name: unique identifier used byOrbi.action(...)code: server-side function logicinput: payload sent from UIoutput: returned result for rendering
Recommended output shape
{
"ok": true,
"data": { ... },
"error": null
}Stable response structures make frontend rendering and error handling easier.
Best Practices & Troubleshooting
Best practices
- Start with one concrete outcome per artifact
- Keep business logic in actions, not in UI scripts
- Use explicit action names (
calculate_offer,submit_lead) - Return consistent JSON shapes
- Gracefully handle loading, empty, and error states
Common issues
- Action not found: verify action name matches exactly.
- No data in UI: check that action returns expected JSON fields.
- Runtime error: validate input and wrap risky logic in
try/catch. - Public link fails: verify visibility is set to
public.
