Create an AI agent
create_agentUse this when the user wants information from the conversation turned into an AI agent that answers people's questions: making an FAQ, menu, policy, price list, or document into a chatbot or assistant, creating an AI assistant for their business, event, product, class, or listing, or making a chat assistant for their website. Creates a new private agent in the user's Agent One account. The result includes a link where the owner previews the agent and can publish it in Agent One, which gives it a hosted page with its own link and an embed snippet for an existing website. Optionally adds a contact form that collects visitors' names and emails. Each call creates a new agent. Not for building full websites with custom layouts, email or SMS campaigns, or hosting files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The agent's name, such as 'Sunrise Bakery Assistant'. | |
| greeting | Yes | The first message visitors see. | |
| knowledge | No | The information the agent answers from, as titled sources (up to 200,000 characters in total). | |
| description | No | One line shown on the agent's page about who it helps. | |
| instructions | Yes | The agent's role, audience, tone, and scope, and what to do when it doesn't know an answer (for example, offer the contact details). | |
| collectContactInfo | No | Show visitors a contact form that collects their name and email. Defaults to false. | |
| suggestedQuestions | No | Starter questions shown to visitors that the knowledge answers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | ||
| status | Yes | ||
| agentId | Yes | ||
| greeting | Yes | ||
| agentName | Yes | ||
| publishUrl | Yes | ||
| setupIssue | Yes | ||
| description | Yes | ||
| dashboardUrl | Yes | ||
| knowledgeSources | Yes | ||
| suggestedQuestions | Yes | ||
| collectsContactInfo | Yes |