Skip to content

Imaginne Embed

One line of HTML. Imaginne inside your product.

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.

Talk to us about Embed in your product

portal/pedidos.htmlthe whole snippet
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.

The widget,
on a page of yours.

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)

Araçari Cargasportal.aracari.example/pedidosfictional example

Araçari Cargas

Orders

Metalúrgica Serra Azul · 5 orders in November

OrderDestinationStatusEta
4821Joinville, SCin transittoday, by 18:00
4819Londrina, PRdeliveredNov 12
4817Caxias do Sul, RSlateNov 14
4812Itajaí, SCawaiting pickupNov 15
4808Cascavel, PRdeliveredNov 10

Araçari

Where is order 4821?

consultar_pedido · read

It left Curitiba at 06:40 and is in transit. The estimate is today, by 18:00, in Joinville.

Orderscontext of this screen

Ask somethingSend

POST/api/operator/turns200 · event stream

32KBis the dock script. One element, no build step.
6attributes configure the dock. Only the turn route is required.
3server SDKs, with the same stream reader the browser uses.
3languages in the dock: Portuguese, English and Spanish.

The path
of a turn.

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

02 · Identity

Who the person is, you decide.

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

Imaginne holds the 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

The action happens on your side.

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 path of a turn in Imaginne Embed Three columns: the browser, your product and Imaginne. The dock sends the question to your product’s route. Your product authenticates the person, resolves the role, trims the catalog, computes the digest and signs the ticket. The turn goes to Imaginne and the answer returns to the browser through the same route. When it needs a piece of data, Imaginne calls your product, which checks the ticket, the catalog and the role before executing. Browser Your product Imaginne the person’s your server NNumbers dock “Where is order 4821?” Your route POST /api/operator/turns message · the question context · screen: Orders authenticates the person resolves the role in the database trims the catalog computes the digest signs the ticket Product credential stays here, out of the browser The conversation turn + ticket reads the domain manual “It left Curitiba at…” the answer appears piece by piece event stream, through your route Needs a piece of data consultar_pedido with the turn ticket tool-invoke checks the ticket checks the catalog re-reads the role in the database

You declare what stays exposed.

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.

4
Operation classesread · write · destructive · execute
no
Absent is falseAn operation with no declaration is not exposed.
Capability Contractportal-aracari4 of 6 exposed
OperationClassExposed
consultar_pedidoreadyes
listar_entregasreadyes
reagendar_entregawriteyes
emitir_segunda_viaexecuteyes
cancelar_pedidodestructiveno
estornar_faturanot declaredno

digest, recomputed by the serversha256:9f2c41d0…7be41a

Built to live
in your code.

The dock is an element on the page. What it asks from your side is written down and versioned.

On the page

Methods and events

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)

Theme

CSS variables. The Imaginne identity stays in lilac; the controls follow your product.

--imn-*

Narrow screen

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

SDKs

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

Domain manual

The Operator Package teaches your product’s concepts, what each tool means and what “done” means.

Operator Package · active

Version

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

Imaginne

It is the same conversation as WebChat and Desktop, in another wrapper.

the same conversation

Alone
or together.

Embed brings Imaginne inside your product. It is not a standalone product: activation is done by NNumbers.

Together

Imaginne

Embed + Imaginne: the conversation is the same as WebChat and Desktop, in another wrapper.

Zero

Embed inside Zero: the conversation in the console, when the installation turns the widget on.

Agents

Embed inside Agents: the Studio conversation dock, contracted separately.

In short

Each product solves specific problems. Together, they expand what your company can do.

Show us the screen.
We say where the conversation goes.

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