Skip to main content
POST
/
api
/
v1
/
workflow
/
create
/
template
Create Workflow From Template
curl --request POST \
  --url https://app.dograh.com/api/v1/workflow/create/template \
  --header 'Content-Type: application/json' \
  --data '
{
  "call_type": "inbound",
  "use_case": "<string>",
  "activity_description": "<string>"
}
'
{
  "id": 123,
  "name": "<string>",
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "workflow_definition": {},
  "current_definition_id": 123,
  "template_context_variables": {},
  "call_disposition_codes": {},
  "total_runs": 123,
  "workflow_configurations": {}
}
Dograh 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

authorization
string | null
X-API-Key
string | null

Body

application/json
call_type
enum<string>
required
Available options:
inbound,
outbound
use_case
string
required
activity_description
string
required

Response

Successful Response

id
integer
required
name
string
required
status
string
required
created_at
string<date-time>
required
workflow_definition
Workflow Definition · object
required
current_definition_id
integer | null
required
template_context_variables
Template Context Variables · object
call_disposition_codes
Call Disposition Codes · object
total_runs
integer | null
workflow_configurations
Workflow Configurations · object