<Spacefront>. For every visitor message, AMS streams back text and blocks. Blocks land on the canvas, where hydrators turn their entity IDs into full records and your components render them. Everything around the canvas is the shell.
Blocks
A block is a piece of UI the agent can place on the canvas. You write all three parts, in your repository:.describe() is read by the agent. resolved(Schema, hydrator, { min, max }) marks a prop that holds entity IDs; max: 1 makes it a single record.
Register them
Hand both maps to<Spacefront>, the page’s root:
route.tsx
catalogmaps each block type to its declaration;renderersmaps the same types to components.renderersalso needsagentTextandturn: they draw the agent’s text and the visitor’s message.forty publishsends the declarations and manifests (the paths inforty.config.json) so the agent can use them. Components never leave your codebase.
Hydrators
A prop declared withresolved() arrives as entity IDs. The hydrator for that entity type, provided by your data source’s connector, fetches the current record in the page before your component renders. Components always receive full, fresh data.
Canvas and shell
The canvas (<SpacefrontCanvas>) renders the blocks. The shell is everything else: the message input, the conversation and agent activity. Build it from the SDK hooks, or use the UI Components.