Skip to content

Elevenlabs agents push fails with 422 UnprocessableEntityError (without workflow) #57

@adiixs

Description

@adiixs

Description

The elevenlabs agents push command fails with a 422 UnprocessableEntityError.

Importantly, this specific agent's configuration doesn't even have a workflow, and the start node is in this configuration.

Reproduction steps

elevenlabs agents init
elevenlabs agents pull --agent <agent-id-without-workflow>
elevenlabs agents push

Important note: the agent configuration should not have workflow configured, as on example below.

Actual behavior

The push command fails with the following error:

UnprocessableEntityError
Status code: 422
Body:

{
  "detail": [
    {
      "type": "value_error",
      "loc": [
        "body",
        "workflow",
        "nodes"
      ],
      "msg": "Value error, Workflow must contain a start node.",
      "input": {
        "startNode": {
          "type": "start",
          "position": {
            "x": 544,
            "y": 64
          },
          "edge_order": []
        }
      },
      "ctx": {
        "error": {}
      }
    }
  ]
}

Agent configuration

   ...
   "workflow": {
        "edges": {},
        "nodes": {
            "start_node": {
                "type": "start",
                "position": {
                    "x": 128,
                    "y": 64
                },
                "edge_order": []
            }
        },
        "prevent_subagent_loops": false
    }
Image

Expected behavior

Agents push command should succeed even if workflow is not configured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions