create_share
Create a share / integration entry point for an agent — this is how end users actually reach it.
**`published=True` only means "visible", not "reachable"**: for end users to talk to the agent
you must create a share. The response carries a directly openable chat link
(`{public_base}/s/<token>`) and the website embed URL (`{public_base}/embed/<token>`).
For a website widget, paste one line before </body>:
`<script src="{public_base}/embed.js" data-token="<token>"></script>`.
label names this entry point ("website widget", "support link"). Telegram/WhatsApp and other
channels are connected separately on the agent's Integration page in the console.
**No website?** Hand the returned `chat_url` or `qr_url` (QR code) straight to the tenant:
print it on business cards / flyers / in-store; scanning opens a full-page chat, no login,
returning visitors are remembered per browser.
**For links you give to humans, prefer `pretty_url`** (when present in the response):
`{public_base}/t/<tenant alias>/<agent alias>` — memorable, printable, survives token rotation.
No pretty_url = aliases not fully set — **fix that proactively**: agent alias via
`create_agent`'s alias param or `PUT /agents/{name}/alias`; tenant alias in console → Settings.
The `/s/<token>` link still works, but it is the machine/embed form, not one to read out to a
person.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| agent_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |