dograh/docs/api-reference/agents/create-from-definition.mdx
Sabiha Khan f075bcb623
docs: add developer and api reference tabs (#190)
* docs: add developer and api reference tabs

* fix: remove duplicate image
2026-03-14 16:30:02 +05:30

9 lines
543 B
Text

---
title: "Create from Definition"
description: "Create a voice agent from an explicit workflow definition"
openapi: "POST /api/v1/workflow/create/definition"
---
Creates an agent from a node and edge graph you provide directly. Use this when you want full control over the workflow structure, or when programmatically generating agents.
The `workflow_definition` object contains `nodes` (the steps in the conversation) and `edges` (transitions between steps). See [Editing a Workflow](/voice-agent/editing-a-workflow) for the full schema.