Skip to main content

On a Neural Draft hosted site

Deploy the folder with deploy_site (see Hosted sites). Mark texts and pictures, add blocks:
index.html
Values are filled on the server; the client edits them in the admin or by chat. No key in the page.

On a site hosted elsewhere

Load nd.js from the workspace address and allow your site’s origin (Embeds and CORS):
Editable texts on an external site: render them server-side from GET /v1/content/bulk (below), or let nd.js fill data-translate / <nd-text> blocks in the browser.

The JS API

Also ND.submitForm(id, fields), ND.subscribe(email), ND.book({...}), ND.getShop(), ND.applyContent(root).

A server-side call (Node script, cron)

fetch-content.mjs
Never ship the API key to the browser.

Hand this to your AI

Build this page as plain HTML. Mark every visible text with data-translate="section.field" and every image with data-image-key. Load /_nd/nd.js and use <nd-booking>, <nd-form> and <nd-newsletter> for the booking, contact and sign-up parts. Then deploy the folder to Neural Draft with deploy_site.