Trillet AI logo

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

NameTypeRequiredDescription
websitestringnoThe business website, e.g. acme.com.au
notesstringnoExtra facts or a description when there is no website (up to 4,000 characters)
scriptstringnoThe 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_idstringnoRun 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

NameTypeRequiredDescription
draftobject (map)yesThe 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
scriptstringnoThe 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"[]noCaller languages, first answers. Default: the draft's suggestedLanguages
voicesobject (map)noVoice 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
bookbooleannoTakes appointment requests. Default: the draft's abilities.book
transfer_numberstringnoHuman transfer destination (a line the agent does not answer). Omit to take messages instead
booking_link_urlstringnohttps booking link to text callers
owner_emailstringnoWhere summaries, urgent alerts and call-back requests go. Default: the API key owner's email
email_summarybooleannoDefault: true.
urgent_alertbooleannoDefault: true.
callback_requestsbooleannoDefault: true.
skip_testsbooleannoBuild only, no test calls Default: false.
workspace_idstringnoRun 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

NameTypeRequiredDescription
build_idstringyes
workspace_idstringnoRun 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