Skip to main content
POST
/
v1
/
node_test
/
invoke
{
  "new_prompt": "You are the best financial advisor...",
  "conversations": [
    {
      "type": "call",
      "id": "330d8a20-27bc-4d00-b67a-8474c9a6d4e1"
    },
    {
      "type": "call",
      "id": "906f16de-2719-4b7e-864b-a4b002586e7c"
    }
  ],
  "node_id": "a7bbd409-504b-4ba3-a9d1-12f6bc270f58",
  "pathway_id": "05f4b269-e79a-4825-b4cd-7778f782bfad",
  "n_permutations": 5
}
{
  "data": {
    "run_id": "727a85f1-1959-4ec1-95a4-248a2eecf1ae"
  },
  "errors": null
}

Headers

authorization
string
required
Your API key for authentication.

Body Parameters

new_prompt
string
required
The new prompt to test for this node. This will be used to simulate the agent’s responses against the provided and auto-selected conversations.
conversations
array
required
Array of conversation references to include in the test. The system may automatically add up to 4 additional recent completed calls for the same node and pathway.
conversations[].id
string
required
Unique identifier of a call to include in the test run.
conversations[].type
string
required
Type of the conversation. We only support “call” for now.
node_id
string
required
Identifier of the node to test within the specified pathway.
pathway_id
string
required
Identifier of the pathway that the node and conversations belong to.
n_permutations
number
Optional number of permutations to generate for each conversation. If omitted, this defaults to 5. The total generations per conversation will be n_permutations + 1 (one for the original user messages plus one per permutation).

Response

data.run_id
string
Identifier of the created node test run. Use this ID with GET /v1/node_test/run/:id to retrieve the full results.
{
  "new_prompt": "You are the best financial advisor...",
  "conversations": [
    {
      "type": "call",
      "id": "330d8a20-27bc-4d00-b67a-8474c9a6d4e1"
    },
    {
      "type": "call",
      "id": "906f16de-2719-4b7e-864b-a4b002586e7c"
    }
  ],
  "node_id": "a7bbd409-504b-4ba3-a9d1-12f6bc270f58",
  "pathway_id": "05f4b269-e79a-4825-b4cd-7778f782bfad",
  "n_permutations": 5
}
{
  "data": {
    "run_id": "727a85f1-1959-4ec1-95a4-248a2eecf1ae"
  },
  "errors": null
}