Skip to main content

Create from Template

Generate a voice agent from a natural language description
1 min read
post/api/v1/workflow/create/template
Request example
Response
post/api/v1/workflow/create/template

Menace Voice uses an LLM to generate the initial workflow definition from your description. The result is a fully editable agent — use Update to refine it after creation.

This is the fastest way to get a working agent, especially for common use cases like appointment booking, lead qualification, or customer support.

Headers

authorizationstring · null#
X-API-Keystring · null#

Body

application/json
call_typeenum<string>required#
Options:inboundoutbound
use_casestringrequired#
activity_descriptionstringrequired#
namestring · null#
Show child attributes
template_idstring · null#
Agent onboarding template id used to auto-provision recommended built-in tools and MCP servers.
Show child attributes
tool_uuidsstring[]#

Items: max 100

document_uuidsstring[]#

Items: max 100

workflow_configurationsobject · null#
Show child attributes
pre_call_fetch_urlstring · null#
Optional URL for Start Call pre-call data fetch. When set, the Start Call node posts caller and called numbers here before the first spoken turn.
Show child attributes
pre_call_fetch_credential_uuidstring · null#
Optional credential applied to the pre-call fetch request.
Show child attributes
post_call_webhook_urlstring · null#
Optional URL for a Webhook node that fires after the call ends.
Show child attributes
post_call_webhook_credential_uuidstring · null#
Optional credential applied to the post-call webhook.
Show child attributes
onboarding_contextobject · null#
Structured answers from agent onboarding. When present, the backend enforces the fixed three-stage layout and hardens every generated prompt.
Show child attributes

Responses

application/json
Successful Response
idintegerrequired#
namestringrequired#
statusstringrequired#
created_atstringrequired#
workflow_definitionobjectrequired#
current_definition_idinteger · nullrequired#
Show child attributes
template_context_variablesobject · null#
Show child attributes
call_disposition_codesobject · null#
Show child attributes
total_runsinteger · null#
Show child attributes
workflow_configurationsobject · null#
Show child attributes
version_numberinteger · null#
Show child attributes
version_statusstring · null#
Show child attributes
workflow_uuidstring · null#
Show child attributes