Provision App (B2B)
ethora-b2b-app-provisionOne-call B2B orchestrator: create an app, mint one or more app tokens, provision default chat rooms, then configure and enable its AI bot. Later-step failures don't undo earlier steps. Returns a per-step log including appId and the created tokens (returned once — capture them).
Auth: B2B mode (ethora-auth-use-b2b + a configured b2bToken). Errors: aborts with the partial step log if app creation fails; previous auth mode restored best-effort. Related: ethora-b2b-app-bootstrap-ai does sources+bot but not tokens/rooms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rooms | No | Default chat rooms to create in the new app. Up to 20. | |
| llmModel | No | LLM model id for the bot, e.g. `gpt-4o-mini`. Must be available for the chosen provider. | |
| botPrompt | No | System prompt for the new app's bot. | |
| enableBot | No | If true, enable the new app's bot using the first minted app token. | |
| botTrigger | No | Bot trigger: `any_message` (every message) or `/bot` (only /bot-prefixed messages). | |
| displayName | Yes | Display name for the new app. | |
| llmProvider | No | LLM provider for the bot, e.g. `openai` or `openai-compatible`. Must be enabled in your Ethora backend. | |
| tokenLabels | No | Labels for the app tokens to mint, one token per label. Default: ['default']. 1–5 tokens. | |
| savedAgentId | No | Optional id of an existing saved agent to bind as the new app's active bot, instead of setting prompt fields by hand. | |
| botGreetingMessage | No | Greeting message the bot posts when a conversation starts. |