Agent Builder

Stream Agent Build

Streams build progress as newline-delimited JSON and returns the generated draft configuration without saving or publishing an agent.

post/v1/agent-builder/run/stream

Request

  • Base URL: https://api.dialnexa.com
  • URL: https://api.dialnexa.com/v1/agent-builder/run/stream
  • Auth: HTTP bearer

Request body

build_attemptinteger

Build attempt number (1-2). Validation runs only on attempt 1; attempt 2 skips re-validation.

pipeline'cascaded' | 's2s'

Engine for the generated agent. "s2s" builds the realtime pipeline on the same single-prompt agent; anything else builds the cascaded pipeline.

target_shape'spa' | 'cfa' | 'ivr'

Kind of agent to build. "cfa" writes a conversation-flow document (a step graph), "ivr" writes a touch-tone menu; anything else builds a single-prompt agent.

Example request

{
  "structured_input": {
    "company_and_offering": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    },
    "target_customer": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    },
    "primary_goal": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    },
    "success_criteria": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    },
    "information_to_collect": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    },
    "objections_and_faqs": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    },
    "agent_tone": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    },
    "additional_context": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    },
    "validation_clarifications": {
      "description": "Share your company name and a short description of your product, service, or industry.",
      "value": "Acme Corp: we sell B2B payroll software for mid-market HR teams."
    }
  }
}

Response

NDJSON stream of thinking updates and final result

Changes

No recorded changes to this operation across all 1 revision of this API.