Deploy a Wiro agent
deploy_agentDeploy a new AI agent from a template or custom skills after returning a priced quote; confirm the charge to create it and start it automatically.
Instructions
Deploy a new agent from a template or as a custom build from chosen skills. In a team workspace only a team admin can deploy; anyone else is refused before anything is created or charged. This costs money: the first 30 days are paid from the Wiro wallet of the connected project's workspace (a team project pays from the team wallet), and the plan renews from that wallet every 30 days until it is cancelled. Without confirm: true the tool only returns the exact quote. Show it to the user, get their approval, then repeat the call with confirm: true and confirm_charge_usd set to the quoted price; if the price changed in between, nothing is charged and a new quote comes back. Never repeat a confirmed deploy that timed out or whose outcome is unknown without checking list_my_agents first. A refusal that says nothing was created or charged, such as one for balance, can be confirmed again once its cause is fixed and the user says yes. The agent starts on its own after deployment. Credentials can be added later with set_agent_credentials or connect_agent_oauth, but skills that need them do not work until then. A custom build also gets the scheduled tasks its skills come with, or a starter task on Mondays at 10:00. To change a template's skills, deploy it first and then use apply_agent_skills. get_playbook describes the whole flow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | Plan tier. Pro has a larger monthly credit pool and is the only tier that can buy extra credit packs. | |
| cover | No | Optional https image URL for the agent cover. A template deploy shows the template cover when it is left out. | |
| title | No | Name of the new agent. Required for a custom build. A template deploy defaults to the template title. | |
| custom | No | true for a custom build from `skills` instead of a template. | |
| skills | No | Custom build only: skill names from list_agent_skills. Skills they depend on are added and priced automatically. An empty list deploys an agent with no extra skills at the minimum price. | |
| confirm | No | false returns only the quote. true deploys the agent and charges the wallet. Set it only after the user approved the quoted price. | |
| template | No | Template slug or guid from list_agent_templates. Leave it out for a custom build. | |
| credentials | No | Optional credential values stored at deployment, keyed by credential key and then field key, for example {"telegram": {"bottoken": "...", "allowedusers": ["123456789"]}}. A chat channel group must contain every required field. Values are never shown back. Other credentials are better set after deployment with set_agent_credentials, which reports field errors. | |
| description | No | Optional description of the agent. | |
| custom_skills | No | Optional custom instructions or scheduled tasks added at deployment, or changes to the ones the template comes with. They are checked before the quote. | |
| confirm_charge_usd | No | With confirm: true, the price the user approved, from the quote's nextAction (quote.priceUsd). Required to deploy. If a fresh quote no longer matches it, nothing is charged and the new quote is returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | ||
| quote | Yes | ||
| stage | Yes | ||
| message | Yes | ||
| chargedUsd | No | ||
| nextAction | No | ||
| customSkills | No | ||
| priceChanged | No | ||
| existingAgentGuid | No |