Chat

Combine messages, a followable stream, and a prompt composer.

Example

Project assistant

You

What should I check before the release?

Assistant

Start with the accessibility review and confirm the release owner.

    Setup

    Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

    Usage

    UsageSend a prompt to stream a local sample response. Scroll away from the bottom to read earlier messages, then use Jump to latest to resume following.
    IntegrationListen for ilui:ai-prompt and call detail.respondWith during the event with text, a promise, or an async iterable of text chunks. Send detail.prompt and detail.files to your endpoint. Pass detail.signal to fetch so Stop can abort the request. Without a handler, the demo plays a sample reply.