Widgets
How Oalo widgets work: hosted capture widgets with public and personal links, custom components, the template library, and the widgets a bot shows in chat.
A widget is a small interactive piece that captures input or shows something, without building a whole screen for it. There are two flavors:
- Hosted widgets: a public form or custom component with its own link, that writes submissions into your data and fires events. This is most of the doc.
- Inline chat widgets: controls a bot shows inside a conversation to collect a typed answer (a rating, a date, a choice). Covered at the end.
Hosted widgets
A hosted widget has an instant public page at its own link, /w/<token>, with no
app to deploy. You can drop that link into a WhatsApp, email, or SMS message, or
embed it on a site. When someone submits, the answer is validated against the
widget's fields and written into one of your data models, and events fire.
What you set: a name, the fields to collect, where submissions go (a data model, defaulting to a shared submissions model), whether to capture the person as a contact, and which events to fire. Field types are semantic: an email field captures the person as a contact, a rating field logs a review. Some types (heading, content, divider) are display-only.
Events. Every submission fires widget.submitted, plus any events you
declared, plus type-implied ones (a rating implies review.submitted), plus
lead.captured when a new contact is captured. Those events drive your
automations and reports. The event list is the widget's real output.
Every field shows. There is no hidden setting: a field in the list appears on the form. To stop showing one, remove it.
Submissions are private. They belong to your workspace: the dashboard and your automations read them, but no app user does, signed in or not.
Changing a widget with the assistant. The Widget Assistant (Widgets, Assistant
tab) knows which widget you have open and every widget's fields, so "my contact
form" or "the favorite color field" is enough. The workspace assistant reads a
widget with get_widget before changing it, because update_widget replaces the
whole field list.
Custom components
A widget can render your own custom component instead of a plain form. Provide the component's source (or a URL) and it renders as an interactive React piece on the same public page and submits to the same place. Plain field-based widgets render as HTML everywhere. Custom ones load your workspace's component bundle. You do not choose the render mode. Oalo picks it based on whether the widget has a custom component.
Personalized and shareable links
There are two kinds of link:
- Shareable (
/w/<token>): the same anonymous page for everyone. Good for a public form or a link you post. - Personalized (
/wl/<token>): a per-contact link. It prefills what you already know about the person, forces the submission to attribute to them (no re-asking who they are), and is single-use by default so a signing or payment link cannot be replayed. Mint it as reusable if you want it to keep working.
An automation can send a widget as a link with the send-widget-link step in a loop
(for example, send the review widget after an appointment completes). See
loop-nodes.md.
The template library
Rather than build common widgets from scratch, copy a built-in template. Each copy becomes an editable widget of your own, and copying also wires up the matching automation for you. The built-ins:
- Contact form and Website lead form (capture a contact, fire a nurture).
- Review / rating (routes low ratings to a make-it-right path, high ratings to a public review link).
- Booking request (books through the calendar).
- Signature / e-sign and Invoice (sign a document, or record an invoice's payment, through a personalized link).
You can also promote one of your own widgets to a reusable template, and mark a widget as the primary for its kind so kits and automations use it by default.
How widgets show up in a chat flow
A chat flow can present a widget mid-conversation with the widget step (see
chat-flows.md). It shows the widget inline and waits for the submission. On a
channel that cannot render a widget inline, like WhatsApp or SMS, it falls back to
sending a hosted link or to asking for the same fields in plain chat.
A collect step is the lightweight version of this: you list the fields to
gather and the flow renders them as an inline form on web automatically (and
collects them conversationally off-channel), with no separate widget to set up. Its
fields can even be built at runtime from an earlier step's output (see "Dynamic
collect fields" in chat-flows.md). When you want that same set of fields to become
a reusable, restylable widget, you can graduate the collect step's fields into a
catalog widget in one move: it creates a form widget from those exact fields and
switches the step to use it. Reach for that when the form needs a custom look or a
custom component; otherwise a plain collect step is enough.
Inline chat widgets
Separately, a bot can show a small control inside a conversation to collect one typed answer cleanly. These are the building blocks the bot uses in the moment, including a text input, a number, a slider, a single or multi select, a date picker, a file or image upload, a rating, a yes or no, a whole form, and a custom component. These appear during a conversation. You do not set them up in advance the way you do a hosted widget.
Your own Base, with every feature, from $99 a month.