Embedding Examples

AI chat history

Embedded dashboards can persist per-user state, currently AI chat history, by passing an external_user_id in the iframe request. If external_user_id is omitted, the embed has no persistent state and each new iframe starts fresh.

In this example, two users have distinct external_user_id values. Switch between them to see how each user's AI chat history is preserved independently.

Select user

Iframe request

POST https://api.rilldata.com/v1/orgs/demo/projects/rill-embedding/iframe

Authorization: Bearer <RILL_SERVICE_TOKEN>
Content-Type: application/json

{
  "type": "explore",
  "resource": "auctions_explore",
  "external_user_id": "user-alice-123"
}

Source: embedding/web/src/app/security/ai-chat-history/page.tsx

Loading...