Agent-First creation
Website in, built and tested agent out: draft, build in several languages, 10 test calls, automatic fixes.
Website in, built and tested agent out: draft, build in several languages, 10 test calls, automatic fixes. 3 tools.
trillet_draft_agent_from_website
Draft an agent from a website
Read a business website (or a few lines about the business) and draft a phone agent: business facts (hours, services, prices, FAQs, location), opening hours, suggested caller languages (English, Spanish, German, French, Italian), abilities, the details this kind of business needs from callers, business-specific rules, urgent-call meaning and timezone. Pass the business's own call script as script to have the agent follow it. Writes nothing. Pass the returned draft to trillet_create_agent_first. Usually takes under a minute. Needs Agent-First on the workspace's plan (Business, the new Agency and its client workspaces, or switched on for an Enterprise account; Business can start 5 builds and an Agency 10 in any 24 hours, and DAILY_LIMIT says when the next one frees up); otherwise the call is refused with PLAN_REQUIRED, and trillet_create_agent / trillet_create_call_flow are the way to build.
Flags: read-only open-world
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
website | string | no | The business website, e.g. acme.com.au |
notes | string | no | Extra facts or a description when there is no website (up to 4,000 characters) |
script | string | no | The business's own call script or staff training notes (up to 20,000 characters). The agent is built to follow it: its order of questions, required wording, what it must offer and what it must never do. It outranks anything inferred from the website, and the test callers check it is followed |
workspace_id | string | no | Run this call in another workspace: its id or its name (see trillet_list_workspaces). Omit to use the default (TRILLET_WORKSPACE_ID, the workspace picked when the connector was approved, or the one set with trillet_switch_workspace). |
trillet_create_agent_first
Build and test an agent (Agent-First)
Build a production phone agent from a draft and prove it works. Several languages become one agent per language (native voice, pinned speech recognition) with agent-to-agent transfers, the first language answering. After-call workflows (urgent alert, call-back requests) are created and switched on. Then 10 generated test callers ring the agent over TEXT test calls (real runtime, real call records; these automatic test calls are not billed to the customer), failures are fixed (rules added to the prompt; facts added only when the website states them) and failed callers are re-tested. Returns a build_id immediately; poll trillet_get_agent_first_build every ~30s while its status is running (a build usually takes 5-7 minutes, longer with several languages or two rounds of fixes). If a build is already running in the workspace, its build_id is returned with already_running instead of starting a second one. Nothing is bound to a phone number: the agent takes real calls only once the user binds one. Needs Agent-First on the workspace's plan (Business, the new Agency and its client workspaces, or switched on for an Enterprise account; Business can start 5 builds and an Agency 10 in any 24 hours, and DAILY_LIMIT says when the next one frees up); otherwise the call is refused with PLAN_REQUIRED, and trillet_create_agent / trillet_create_call_flow are the way to build.
Flags: writes open-world
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
draft | object (map) | yes | The draft from trillet_draft_agent_from_website, passed back whole and unchanged apart from deliberate edits (facts or rules the user corrects). Do not shorten or drop fields |
script | string | no | The business's call script, replacing the draft's. Pass it here when the draft's script was long, so it reaches the build word for word |
languages | "en" | "es" | "de" | "fr" | "it"[] | no | Caller languages, first answers. Default: the draft's suggestedLanguages |
voices | object (map) | no | Voice id per language code. Only ids from the draft's defaultVoices are accepted; any other id is ignored and the language's default native voice is used. The build result names the voice each agent got |
book | boolean | no | Takes appointment requests. Default: the draft's abilities.book |
transfer_number | string | no | Human transfer destination (a line the agent does not answer). Omit to take messages instead |
booking_link_url | string | no | https booking link to text callers |
owner_email | string | no | Where summaries, urgent alerts and call-back requests go. Default: the API key owner's email |
email_summary | boolean | no | Default: true. |
urgent_alert | boolean | no | Default: true. |
callback_requests | boolean | no | Default: true. |
skip_tests | boolean | no | Build only, no test calls Default: false. |
workspace_id | string | no | Run this call in another workspace: its id or its name (see trillet_list_workspaces). Omit to use the default (TRILLET_WORKSPACE_ID, the workspace picked when the connector was approved, or the one set with trillet_switch_workspace). |
trillet_get_agent_first_build
Check an Agent-First build
Progress and result of trillet_create_agent_first: the language team (agent and flow ids, greetings), workflows, each test caller's first result and re-test, the fixes applied, what only the owner can answer, and the before/after pass count. Status running means keep polling; done and failed are final. Live progress is kept for 2 hours; after that a finished build's test report is returned instead.
Flags: read-only
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
build_id | string | yes | |
workspace_id | string | no | Run this call in another workspace: its id or its name (see trillet_list_workspaces). Omit to use the default (TRILLET_WORKSPACE_ID, the workspace picked when the connector was approved, or the one set with trillet_switch_workspace). |
Last updated on