Templates and models API
List extraction models
Models an agent may use for post-call analysis, with an estimated cost.
Returns
200 with the fields below.
The model used when an agent does not choose one.
Models you can use for post-call analysis.
4 properties
The model id. Put it in an agent's `post_call_analysis_model`.
Who runs the model, such as `anthropic` or `openai`.
Display name.
Estimated cost in US dollars of one typical post-call analysis. A guide for comparing models, not a charge.
curl "https://api.dialgem.com/v1/models/extraction" \
-H "X-API-Key: $DIALGEM_API_KEY"{
"default": "string",
"models": [
{
"id": "string",
"provider": "string",
"label": "string",
"est_cost_per_session": 0
}
]
}List flow templates
Every built-in template, as summaries.
Query parameters
Returns
200.
curl "https://api.dialgem.com/v1/flow-templates" \
-H "X-API-Key: $DIALGEM_API_KEY"[
{
"id": "string",
"name": "Example",
"description": "string",
"setup_note": "string",
"category": "string",
"tags": [
"string"
],
"use_case": "string",
"icon": "string",
"source": "string",
"node_count": 0,
"node_types": [
"string"
],
"unsupported_node_types": [
"string"
]
}
]Get flow template
One template, with its wire blob.
Path parameters
Returns
200 with the fields below.
The template's id. Pass it to the detail endpoint to get the full flow.
Display name.
What the template does.
What you need to fill in or change before the template works for your business.
Group the template belongs to, for filtering.
Short labels describing the template.
The kind of call the template is built for.
Name of the icon to show next to the template.
Where the template comes from.
How many nodes the flow has.
Show 7 more parameters
The node types the flow uses, in the order they appear.
Node types in the flow that are not executed yet on this platform. They are skipped during a call.
How many nodes are on each kind of path, keyed by path name.
True if an agent built from this template can take or place calls.
The individual nodes in the flow that are not executed yet.
4 properties
The node's type.
How far this node type is supported, such as `deferred`.
Id of the node in the flow.
The node's name, if it has one.
Why an agent built from this template cannot take calls. Empty when `runnable` is true.
3 properties
Machine-readable reason the flow cannot run on a call.
Ids of the nodes that cause it.
Plain-language explanation.
The flow itself. Pass it as `flow_config` when you create an agent to start from this template.
curl "https://api.dialgem.com/v1/flow-templates/TEMPLATE_ID" \
-H "X-API-Key: $DIALGEM_API_KEY"{
"id": "string",
"name": "Example",
"description": "string",
"setup_note": "string",
"category": "string",
"tags": [
"string"
],
"use_case": "string",
"icon": "string",
"source": "string",
"node_count": 0,
"node_types": [
"string"
],
"unsupported_node_types": [
"string"
]
}List prompt templates
Every built-in prompt template, as summaries.
Query parameters
Returns
200.
curl "https://api.dialgem.com/v1/prompt-templates" \
-H "X-API-Key: $DIALGEM_API_KEY"[
{
"id": "string",
"name": "Example",
"description": "string",
"setup_note": "string",
"category": "string",
"tags": [
"string"
],
"use_case": "string",
"icon": "string",
"source": "string",
"agent_type": "llm",
"variable_names": [
"string"
],
"base": "string"
}
]Get prompt template
One template, with the prompt and first message to create an agent from.
Path parameters
Returns
200 with the fields below.
The template's id. Pass it to the detail endpoint to get the full prompt.
Display name.
What the template does.
What you need to fill in or change before the template works for your business.
Group the template belongs to, for filtering.
Short labels describing the template.
The kind of call the template is built for.
Name of the icon to show next to the template.
Where the template comes from.
Names of the variables you fill in to make the template yours.
Show 6 more parameters
Length of the system prompt in characters, so you can tell a full prompt from a stub without fetching it.
The agent's system prompt. Pass it as `system_prompt` when you create an agent.
What the agent says first. Pass it as `first_message` when you create an agent.
The kind of agent the template creates. Always `llm` for prompt templates.
Default "llm"
The template this one inherits its prompt from. Null if it stands alone.
Default values for the template's variables.
curl "https://api.dialgem.com/v1/prompt-templates/TEMPLATE_ID" \
-H "X-API-Key: $DIALGEM_API_KEY"{
"id": "string",
"name": "Example",
"description": "string",
"setup_note": "string",
"category": "string",
"tags": [
"string"
],
"use_case": "string",
"icon": "string",
"source": "string",
"agent_type": "llm",
"variable_names": [
"string"
],
"base": "string"
}