Skip to content
TriedDocs
Voice agents

Get agent template

One agent template with the agent, conversation flow and single prompt it builds.

GEThttps://api.tried.com.au/get-agent-template/:id

Returns one template and what it builds before any business details are added: the agent settings, the conversation flow and the equivalent single prompt. Templates are kept up to date on the server, so this is always the current version. To build one with your business name, facts, calendar and transfer number, use Create agent from template.

Request#

Path#

Field Type Required Description
id string Yes Template id from List agent templates.

Example request#

curl "https://api.tried.com.au/get-agent-template/dental" \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/get-agent-template/dental", {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const template = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/get-agent-template/dental",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
template = res.json()

Response#

200 OK with the template fields from List agent templates plus built:

Field Type Description
built.agent object agent_name, voice_id, language and post_call_analysis_data.
built.flow object A conversation flow body, as for Create conversation flow.
built.llm object The same agent as one prompt, as for Create LLM.
{
  "id": "dental",
  "name": "Dental clinic",
  "built": {
    "agent": { "agent_name": "Dental Reception", "voice_id": "11labs-Kate", "language": "en-AU" },
    "flow": { "start_node_id": "node_welcome", "nodes": [] },
    "llm": { "begin_message": "Thanks for calling ...", "general_prompt": "## Role and objective ..." }
  }
}

Errors#

Status When
404 No template with that id.
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the agents scope.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.