Calls
Intelligence
Conversational Pathways
- GETGet All Pathways Information
- GETGet Single Pathway Information
- POSTCreate Pathway
- POSTUpdate Pathway
- DELDelete Pathway
- Pathway Chat
- Pathway Versions
- Pathway Folders
Vector Knowledge Bases
Blocked Numbers
Voices
Custom Tools
Web Agents
Custom Twilio Accounts
Account
Organizations
- POSTCreate Organization
- DELDelete Organization
- GETGet Organization
- GETGet Organization Members
- GETGet Organization's Current Service Version
- GETList Organization's Service Versions
- PATCHUpdate Organization's Service Version
- PATCHUpdate Organization Members
- PATCHUpdate Organization Member Permissions
- PATCHUpdate Organization Properties
- GETGet User Organization Memberships
- DELLeave Organization
- GETGet Organization Billing Information
- GETGet Organization Billing Refill Information
SMS
Conversational Pathways
Update Pathway
Update a conversational pathway’s fields - including name, description, nodes and edges.
POST
/
v1
/
pathway
/
{pathway_id}
Copy
Ask AI
curl --request POST \
--url https://api.bland.ai/v1/pathway/{pathway_id} \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"name": "<string>",
"description": "<string>",
"nodes": {},
"edges": {}
}'
Copy
Ask AI
{
"status": "success",
"message": "Pathway updated successfully",
"pathway_data": {
"pathway_id": "9d404c1b-6a23-4426-953a-a52c392ff8f1",
"name": "Updated Demo Pathway",
"description": "This is an updated description",
"nodes": [
{
"id": "1",
"data": {
"name": "Start",
"text": "Hey there, how are you doing today?",
"isStart": true,
},
"type": "Default"
},
{
"id": "randomnode_1710288752186",
"data": {
"name": "End call",
"prompt": "Click 'Add New Node' on the right to add a new node",
},
"type": "End Call"
},
{
"id": "randomnode_1710288871721",
"data": {
"name": "New Node",
"prompt": "Click 'Add New Node' on the right to add a new node",
},
"type": "Default"
}
],
"edges": [
{
"id": "1",
"source": "1",
"target": "randomnode_1710288752186",
"data": {
"name": "End call",
"prompt": "Click 'Add New Node' on the right to add a new node",
}
},
{
"id": "2",
"source": "1",
"target": "randomnode_1710288871721",
"data": {
"name": "New Node",
"prompt": "Click 'Add New Node' on the right to add a new node",
}
}
]
}
}
Headers
Your API key for authentication.
Path Parameters
The unique identifier of the conversational pathway you want to update.
Body
The name of the conversational pathway
A description of the pathway
Data about all the nodes in the pathway.
Example of a node object:
Copy
Ask AI
{
"id": "1",
"type": "Default"
"data": {
"name": "Start",
"text": "Hey there, how are you doing today?",
"isStart": true,
},
name
— name of the nodeisStart
— whether the node is the start node. There can only be 1 start node in a pathway. Eithertrue
orfalse
.isGlobal
— whether the node is a global node. Global nodes are nodes that can be used in multiple pathways. Eithertrue
orfalse
.globalLabel
— the label of the global node. Should be present ifisGlobal
is true.type
— Type of the node. Can beDefault
,End Call
,Transfer Node
,Knowledge Base
, orWebhook
.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 nodetemperature
— 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"]]
- An array of array of strings. [[
Data about all the edges in the pathway.
id
— unique id of the edgesource
— id of the source nodetarget
— id of the target nodelabel
— Label for this edge. This is what the agent will use to decide which path to take.
Response
Can be success
or error
.
A unique identifier for the pathway (present only if status is success
).
Data about all the nodes in the pathway.
Data about all the edges in the pathway.
Copy
Ask AI
{
"status": "success",
"message": "Pathway updated successfully",
"pathway_data": {
"pathway_id": "9d404c1b-6a23-4426-953a-a52c392ff8f1",
"name": "Updated Demo Pathway",
"description": "This is an updated description",
"nodes": [
{
"id": "1",
"data": {
"name": "Start",
"text": "Hey there, how are you doing today?",
"isStart": true,
},
"type": "Default"
},
{
"id": "randomnode_1710288752186",
"data": {
"name": "End call",
"prompt": "Click 'Add New Node' on the right to add a new node",
},
"type": "End Call"
},
{
"id": "randomnode_1710288871721",
"data": {
"name": "New Node",
"prompt": "Click 'Add New Node' on the right to add a new node",
},
"type": "Default"
}
],
"edges": [
{
"id": "1",
"source": "1",
"target": "randomnode_1710288752186",
"data": {
"name": "End call",
"prompt": "Click 'Add New Node' on the right to add a new node",
}
},
{
"id": "2",
"source": "1",
"target": "randomnode_1710288871721",
"data": {
"name": "New Node",
"prompt": "Click 'Add New Node' on the right to add a new node",
}
}
]
}
}
Copy
Ask AI
curl --request POST \
--url https://api.bland.ai/v1/pathway/{pathway_id} \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"name": "<string>",
"description": "<string>",
"nodes": {},
"edges": {}
}'
Copy
Ask AI
{
"status": "success",
"message": "Pathway updated successfully",
"pathway_data": {
"pathway_id": "9d404c1b-6a23-4426-953a-a52c392ff8f1",
"name": "Updated Demo Pathway",
"description": "This is an updated description",
"nodes": [
{
"id": "1",
"data": {
"name": "Start",
"text": "Hey there, how are you doing today?",
"isStart": true,
},
"type": "Default"
},
{
"id": "randomnode_1710288752186",
"data": {
"name": "End call",
"prompt": "Click 'Add New Node' on the right to add a new node",
},
"type": "End Call"
},
{
"id": "randomnode_1710288871721",
"data": {
"name": "New Node",
"prompt": "Click 'Add New Node' on the right to add a new node",
},
"type": "Default"
}
],
"edges": [
{
"id": "1",
"source": "1",
"target": "randomnode_1710288752186",
"data": {
"name": "End call",
"prompt": "Click 'Add New Node' on the right to add a new node",
}
},
{
"id": "2",
"source": "1",
"target": "randomnode_1710288871721",
"data": {
"name": "New Node",
"prompt": "Click 'Add New Node' on the right to add a new node",
}
}
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.