Demos / Plain HTML · Ferrier & Sons
Plain HTML counter
Put an agent on your page with a script tag, one element and a few lines of JavaScript. A hardware store with a hand-made website shows that snippet and runs it to mount its counter.
What it shows
- Put an agent on your page: the whole integration is one snippet, the served
<script src>, a<mindset-agent>tag and an inline script that callsconfigure({ getSession }) - The snippet on the page is the code that ran: the page loads its script, places its tag and runs its inline script, then marks each line as it happens, including the session request’s status
getSessionreturning the session route’s body unchanged, so the SDK keeps the credential and the switched-on features- A function over twelve hinges, screws and locks as literal data, with sizes and prices in dollars
- The parts it finds tagged Pulled for you on the shelf, drawn by the page from the run’s
tool_endevent, and every call in the under-the-hood pane
Files
- src/demos/ferrier/snippet.ts
- src/demos/ferrier/index.tsx
- src/demos/ferrier/parts.ts
- demos/ferrier/demo.json
- demos/ferrier/functions/ferrier-parts.json