Manage Agent Links
gnosari_manage_linkCreate and manage shareable links for an agent.
Each link gets a unique URL (joina.chat/l/{slug}) and a downloadable QR code, and renders the agent either as a classic chat or as an immersive conversation page. Multiple links can point to the same agent with different greetings, topics, themes, and expiry -- one link per channel (poster, email campaign, personal invitation) so each is tracked separately.
Returns the link with ready-to-use URLs -- urls.public (share this),
urls.embed (iframe src), urls.qr_image (printable QR).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Internal display name (e.g. 'VIP dinner invitations'). Required for create. Never shown to visitors. | |
| skip | No | Pagination offset for list. | |
| slug | No | Custom URL slug -> joina.chat/l/{slug}. Leave unset on create to auto-generate an unguessable token (recommended for personal invitations). | |
| limit | No | Pagination limit for list. | |
| topic | No | Headline of the conversation page (e.g. 'A conversation about your stay'). Ignored when presentation='chat'. | |
| action | Yes | What to do. `create` needs `agent_id` + `name`; `get`/`update`/`delete` need `link_id`; `check_slug` tests slug availability. | |
| caption | No | Subtitle shown under the conversation headline before the visitor starts (e.g. 'No forms — just tell us what you need'). Ignored when presentation='chat'. Unset = no subtitle. | |
| link_id | No | Link ID. Required for get, update, delete. | |
| agent_id | No | Agent this link opens. Required for create; pass on update to point the link at a different agent. | |
| greeting | No | First message the visitor sees, for this link only. Unset = the agent's own greeting. | |
| expires_at | No | When the link stops working (visitors then see 'link expired'). Unset = never expires. | |
| clear_fields | No | Update only: field names to reset to unset/inherit (e.g. ['greeting'] falls back to the agent's greeting, ['caption'] removes the subtitle). Cannot clear and set the same field in one call. To re-point the link at a different agent, pass a new agent_id value (a link always needs an agent). | |
| presentation | No | How the agent renders when opened: 'chat' = classic chat widget, 'conversation' = immersive full-page conversation with an editorial headline. Default 'chat'. | |
| chat_theme_id | No | Theme override for this link only. Unset = the agent's theme (or account default). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |