BeniBrain sends customers links in a few places — most visibly the optional "You may also be interested in" line in booking confirmation emails, and the recommendationLinks on the public service contract. By default those links go to the BeniBrain-hosted storefront. If the business has its own website, register it once and BeniBrain will link to your pages instead.
Registration requires an authenticated BeniBrain business session (owner role). In the dashboard it's Settings → Developers → Connected website. It is integration configuration: a business owner never edits it inside their email settings.
Registering route templates
{
"origin": "https://www.example.com",
"productPath": "/shop/{id}",
"collectionPath": "/shop?collection={slug}",
"servicePath": "/services/{id}"
}| Field | Rules |
|---|---|
origin | An https:// origin with no path, query or credentials. Every generated link stays under it. |
productPath | Root-relative template for a product page. Optional. |
collectionPath | Where customers go when BeniBrain links to a product collection. Optional. A Product Collection is a merchandising/filter concept, not necessarily a standalone page — the destination can be a dedicated page (/collections/{slug}) or your normal shop with the collection pre-selected via a query parameter (/shop?collection={slug}). Both are equally valid. |
servicePath | Root-relative template for a service page. Optional. |
orderPath | Root-relative template for your own order-status page, using {token} (the order's private access token, never its id), e.g. /orders/{token}. Optional. |
Templates may contain {id} (the BeniBrain identifier — available for every product, collection and service) and {slug} (where your site keys pages by slug). Collections have slugs; products and services currently do not, so a {slug} template for those kinds produces no link rather than a broken one. At least one placeholder is required so each item gets its own page. For productPath and servicePath it must appear in a path segment, e.g. /shop/{id}. Only collectionPath may instead put it inside a ?key=value query parameter's value — e.g. /shop?collection={slug} or /collections/{slug} are both valid, since a collection is a merchandising/filter concept rather than always a standalone page. Query keys must be plain text (a placeholder can only appear in the value). No scheme, host, fragment or dot-segments are accepted, and a template may contain at most one ?. Every route is optional: the origin can be registered on its own and routes added later, and a blank route means BeniBrain makes no link for that kind of page.
How links are resolved
- If the business has a connected website and a template for that kind of page, the link is built from it using the target's stable id/slug.
- If a website is connected but declares no template for that kind, no link is produced. BeniBrain never sends a connected business's customers to the hosted storefront behind its back.
- With no connected website, products link to their BeniBrain-hosted page; collections and services have no hosted page and are omitted.
- Inactive, deleted or empty targets are always omitted, and a target is never resolved outside its own business. If nothing resolves, the whole recommendations section is left out.
Because the same resolver serves emails, the public service contract and (in future) booking success pages, a customer sees identical destinations everywhere.
Reading and removing
GET /integrations/website returns { website, usable } — website is null when nothing is registered and usable reports whether the stored registration still passes validation. DELETE /integrations/website disconnects it; links fall back to the hosted storefront where one exists.