Create Gnosari
gnosari_createCreate a fully-configured, data-collecting AI agent in one call.
Welcome screen (empty_state_title + empty_state_description) and a data_collection template are REQUIRED — this produces a live-ready intake agent, not a bare shell. Optionally set a greeting, suggested prompts, and publish=True to go live immediately.
ALL inputs are validated before any write; on failure every error is reported at once and nothing is created. The agent, welcome config, data-collection template + assignment, and optional publish all commit atomically.
Raises: ValueError: If any input is invalid (all errors reported at once), or if publish=True and the URI is already taken (the message suggests an available alternative).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Public URL slug for joina.chat/{uri} when publish=True. Defaults to a slug derived from the agent name | |
| name | Yes | Display name for the agent, shown in chat and dashboard | |
| publish | No | Publish the agent live on joina.chat in the same call. Default False (PRIVATE) | |
| greeting | No | Optional opening message. When set, the conversation starts immediately with this message — empty_state_title, empty_state_description, and suggested_prompts will NOT be shown. | |
| description | No | Agent purpose description for the dashboard | |
| instructions | Yes | System prompt defining the agent's behavior and goals | |
| data_collection | Yes | Structured data this agent extracts from conversations (required — it's the product). Define the template name, fields, and collection mode | |
| empty_state_title | Yes | Welcome-screen title (required). Shown prominently before the user types, e.g. 'Apply to speak at DevConf' | |
| suggested_prompts | No | Optional clickable prompt buttons for the welcome screen. Max 8 | |
| empty_state_description | Yes | Welcome-screen supporting text (required). Below the title, e.g. 'Tell us about your talk and we'll be in touch' | |
| interactive_buttons_enabled | No | Enable interactive buttons: the agent may render tappable choice buttons in chat (fenced ```buttons blocks). Default False (off). | |
| interactive_buttons_behavior | No | Optional guidance on WHEN to show buttons (e.g. 'only for yes/no confirmations'). Leave None for the canonical default behavior. Max 1500 characters. Has no effect unless interactive_buttons_enabled is True. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Advisory note, e.g. greeting hides the welcome screen | |
| agent | Yes | The created agent | |
| readiness | Yes | Configuration completeness with missing keys and next steps | |
| published_url | No | Public URL when published in the same call |