latestOpenAPI 3.0.32026-08-19299284712.8 KB

67d9f45bb99b

Agents

Build Widget with AI

Build a widget definition using AI based on a natural language prompt. The widget is created in memory and returned without being saved to the database. The prompt and agent response are saved as ChatMessages in the specified session.

post/agents/widget-builder

Request body

promptstring required

The user prompt describing the widget to build

chat_session_idstring required

The chat session ID to use for conversation context

Response

Successfully built widget

widgetobject

The built widget definition (unsaved, id is null)

messageobject

The agent response ChatMessage