Skip to main content
POST
Update Pathway

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
The unique identifier of the conversational pathway you want to update.

Body

string
The name of the conversational pathway
string
A description of the pathway
object[]
An array of node objects representing the conversation flow points in your pathway. Each node contains:Common Node Structure:
Available Node Types: Default, End Call, Transfer Call, Webhook, Knowledge Base, SMS, Custom Code, Press Button, Wait for Response, Transfer Pathway, Scheduling, and more.Node Examples:
  • name — name of the node
  • isStart — whether the node is the start node. There can only be 1 start node in a pathway. Either true or false.
  • isGlobal — whether the node is a global node. Global nodes are nodes that can be used in multiple pathways. Either true or false.
  • globalLabel — the label of the global node. Should be present if isGlobal is true.
  • type — Type of the node. Can be Default, End Call, Transfer Node, Knowledge Base, or Webhook.
  • text — If static text is chosen, this is the text that will be said to the user.
  • prompt — If dynamic text is chosen, this is the prompt that will be shown to the user.
  • condition — The condition that needs to be met to proceed from this node.
  • transferNumber
    • If the node is a transfer node, this is the number to which the call will be transferred.
  • kb
    • If the node is a knowledge base node, this is the knowledge base that will be used.
  • pathwayExamples
    • The fine-tuning examples for the agent at this node for the pathways chosen
  • conditionExamples
    • The fine-tuning examples for the condition at this node for the condition chosen
  • dialogueExamples
    • The fine-tuning examples for the dialogue at this node for the dialogue chosen.
  • modelOptions
    • modelName — The name of the model to be used for this node.
    • interruptionThreshold — The sensitivity to interruptions at this node
    • resumption_speed — How quickly the AI starts speaking again after the caller finishes a turn while on this node: 1 fast, 2 medium (default), 3 slow. Supersedes interruptionThreshold when both are set. Useful per node: e.g. slow on a data-collection node so the caller can finish their digits.
    • interruptibility — How readily the AI stops speaking when the caller talks over it on this node: 0 block (the AI finishes speaking, same as block_interruptions: true), 1 difficult, 2 balanced (default), 3 easy. Useful per node: e.g. difficult on a legal-disclaimer node.
    • temperature — The temperature of the model.
  • extractVars
    • An array of array of strings. [[varName, varType, varDescription]] e.g [["name", "string", "The name of the user"], ["age", "integer", "The age of the user"]]
Update the pathway’s global prompt by adding an object to the array of nodes.
Global Prompt
object[]
An array of edge objects that define the connections and flow between nodes in your pathway. Each edge contains:Common Edge Structure:
  • id — unique id of the edge
  • source — id of the source node
  • target — id of the target node
  • label — Label for this edge. This is what the agent will use to decide which path to take.

Complete JSON Structure Example

For a comprehensive example of how pathways are structured with multiple nodes and edges in a realistic use case, download our example template: Download pathway example This example contains a complete car rental pathway with:
  • Multiple node types (Default, Transfer Call, Webhook, End Call, etc.)
  • Complex edge routing and conditions
  • Variable extraction and model configuration
  • Real-world conversation flow patterns

Response

string
Can be success or error.
string
A unique identifier for the pathway (present only if status is success).
array of objects
Data about all the nodes in the pathway.
array of objects
Data about all the edges in the pathway.

Docs for agents: llms.txt