01 · Question
The dock talks to your route.
The browser sends the message and the screen context to a route on your backend. It does not talk to NNumbers infrastructure.
POST /api/operator/turns
Imaginne Embed
Your customers talk to the AI inside your site and your product, with the catalog, the identity and the history you already have. Imaginne Embed comes in as a widget or an SDK.
1<script type="module"
2 src="https://ai.nnumbers.com.br/embed/imaginne-dock.js"></script>
3
4<imaginne-dock
5 turn-url="/api/operator/turns"
6 contexto="Orders"
7 titulo="Araçari"
8 exemplos='["Where is order 4821?",
9 "Which deliveries are late today?"]'>
10</imaginne-dock>
This is what appears on the page.The bubble opens the dock. The rest of the portal does not change.
Araçari Cargas, a fictional freight company, put the dock on its order portal. Pick an attribute to see what it changes. The bubble and the examples work.
abrir() · fechar() · perguntar(texto)
01 · Question
The browser sends the message and the screen context to a route on your backend. It does not talk to NNumbers infrastructure.
POST /api/operator/turns
02 · Identity
Your route authenticates, resolves the role, trims the catalog to what that role can do and signs the turn ticket. The product credential never reaches the browser.
customer role · 4 operations in the catalog
03 · Conversation
The turn goes to Imaginne and the answer comes back through the same route, as an event stream, piece by piece.
X-Imaginne-Conversation · the conversation id
04 · Tool
When the conversation needs a piece of data, Imaginne calls your product with the ticket. You check the ticket and the catalog, re-read the role and only then execute.
POST /internal/v1/operator/tool-invoke
The Capability Contract is the list of what Imaginne can call in your product. Every operation has a class and a decision. What is not declared does not exist for the conversation.
| Operation | Class | Exposed |
|---|---|---|
| consultar_pedido | read | yes |
| listar_entregas | read | yes |
| reagendar_entrega | write | yes |
| emitir_segunda_via | execute | yes |
| cancelar_pedido | destructive | no |
| estornar_fatura | not declared | no |
digest, recomputed by the serversha256:9f2c41d0…7be41a
The dock is an element on the page. What it asks from your side is written down and versioned.
On the page
Open, close and ask from code. Listen to the start and the end of every turn, and know whether there is an unread answer.
abrir() · fechar() · perguntar(texto)
CSS variables. The Imaginne identity stays in lilac; the controls follow your product.
--imn-*
Below 480 px wide, the dock becomes a bottom sheet, with a veil over the page.
bottom sheet · 85% of the height
On the server
Three server SDKs and the element with no build step. The stream reader is a single file, the same in the browser and on the server.
stream reader · 9 KB
The Operator Package teaches your product’s concepts, what each tool means and what “done” means.
Operator Package · active
Within v1, anything new is optional. The version comes in a response header and is available on the page.
X-Imaginne-Embed-Version
In the stack
It is the same conversation as WebChat and Desktop, in another wrapper.
the same conversation
Embed brings Imaginne inside your product. It is not a standalone product: activation is done by NNumbers.
Together
In short
Each product solves specific problems. Together, they expand what your company can do.
You show the product and what people ask in it. Together we design the catalog, the route and the first turn.
Talk to us about Embed in your product