Skip to main content
POST
Import Agent Template

Import from Template

Convert Existing Agent to Node-Based

Use fromAgentId to convert a legacy agent to the node-based architecture:
This will:
  • Create a new node-based agent
  • Migrate vg_systemPrompt and vg_initPrompt to the start node’s instructions
  • Copy all tools and variables with new IDs
  • Migrate knowledge base documents

Example Response

Notes

  • New unique IDs are generated for the agent, tools, and variables
  • Tool and variable references in instructions are automatically updated
  • Agent limits are enforced based on your plan

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agentTemplate
object
agentName
string
fromAgentId
string

Response

Successful response