Skip to main content
Template Pathway Video Tutorial

Introduction

Conversational pathways are our new way of prompting Bland that has led to major breakthroughs in realism.

Greater dialogue control

Give your agent instructions on how it should respond at specific points of the conversation. Choose between prompting or fixed sentences.

Webhooks

Execute webhooks at any point during the conversation, and send speech during/after the webhook.

End call

Control when your agent ends the call

Knowledge Base

Connect your agent to a knowledge base, to answer any questions the user has.

Terminologies

To understand how pathways work, let’s first understand the terminologies.

Pathways

Each of these dotted lines is called a Pathway. Their start end end points are the Purple Circles on the top and bottom of the nodes. In order to create a pathway from a node, you would click on the purple circle at the bottom of the node and drag your mouse to connect to the top purple circle another node. Upon doing so, you will now have a new dotted line connecting the two nodes, with a ‘New Pathway’ button in the middle of the line. Two nodes on the pathway canvas joined by a dotted line. The node 'Good time to talk?' asks 'Is it a good time to talk?' and connects down to an End call node that says 'Ok, I will be hanging up now. Goodbye'. A 'New Pathway' button with an edit icon sits on the line. In order to instruct the agent when to take this pathway, you would click on the Edit icon on the ‘New Pathway’ button, and input the conditions for when the agent should take this pathway. In the above example, the agent would take this pathway if the user is not available to talk, so I labelled the pathway as ‘not a good time to talk’. The same two nodes after the pathway is labeled. The button on the line between 'Good time to talk?' and End call now reads 'not a good time to talk'. And there you have it! You have now created a pathway from one node to another, and instructed the agent when to take this pathway. You can connect as many nodes as you want in this manner, and create as many pathways as you want. In order to create a new Node, press the ‘Add new Node’ button at the top-left of the screen. See the Pathways API reference to create and manage pathways programmatically.

Pathway Versions

A pathway is the container your phone numbers and API calls point at. Its ID stays the same for its whole life. The flow itself (the nodes and edges) lives in versions: snapshots of the pathway at a point in time. When you edit a pathway, you are working on a draft. Live calls are not affected. They keep using the published production version. When you are happy with your changes, publish the draft. This saves it as a new version and promotes it to production, and new calls pick it up immediately. You can also promote a version to staging to test it before it goes live, or send an individual call against a specific version by passing its version number. By default, calls use the production version. See the Pathway Versions API reference to manage versions programmatically.

Nodes

These blocks you see here are called Nodes. A single node named 'Greet' that says 'Hey there, how are you doing today?', with an edit icon and a connection point at the top and bottom.

How the Pathways Agent Works

The agent starts at the first node, and then moves to the next node based on the pathway that the agent decides to take. The agent will then execute the instructions in the node as dialogue, and then move on to the next node based on the pathway that the agent decides to take. This process will continue until the agent decides to end the call. The agent will make decisions based on the labels you put in the pathways, when connecting one node to another, and the dialogue generated will be based on the instructions you set in the nodes. The node 'Ask for reservation info', which asks for the date, time and number of guests, branches into two labeled pathways. 'number of guests less than 8' leads to the webhook node 'Reservation Booking', and 'number of guests more than 8' leads to the 'Transfer Call' node. For Example, In this example, at the node named ‘Ask for reservation info’, the node asks for the user’s reservation information. Based on the user’s response, the agent will then move on to the next node based on the labels you put in the pathways. For the current node, it will check if the user has provided reservation information where the number of guests is either less than 8 or more than 8. If the user has provided reservation information where the number of guests is less than 8, the agent will move on to the node named ‘Reservation booking’. If the user has provided reservation information where the number of guests is more than 8, the agent will move on to the node named ‘Transfer Call’. The agent will then execute the instructions in the node as dialogue, and then move on to the next node based on the pathway that the agent decides to take. And the process repeats!

Conditions

Conditions are a way to provide the agent with a condition that must be met in order for the agent to move on to the next node. If the condition is not met, the agent will stay on the same node and ensure the condition is met until the condition is fulfilled. Using the same example above, I set the condition for the ‘Ask for reservation info’ node as follows - “You must get the date, time, and number of guests for this reservation”. This means that the agent will stay on the ‘Ask for reservation info’ node until the user provides the date, time, and number of guests for the reservation. If the user says something else or deviates from the conversation, the agent will stay on the ‘Ask for reservation info’ node and prompt the user to provide the date, time, and number of guests for the reservation. This helps you to ensure that the user provides the necessary information before moving on to the next node, and helps you to control the flow of the conversation. The Edit Node panel for the Default node 'Ask for reservation info'. Its prompt asks for the date, time and number of guests one question at a time, and Condition Options is switched on with the condition 'You must get the date, time, and number of guests for this reservation'.

Global Nodes

A global node, outlined in yellow with a 'Global' tag, named 'Talk to Bland'. It tells the agent to let the user know they are being transferred to a Bland agent, and shows the number it transfers to. Global Nodes take precedence over the condition decisions made by the agent. You can treat a global node as a node, that every other node in the pathway has a pathway to, with the label as the ‘Global Pathway Label’. Using the Reservation Booking Example, if the user were to ask a question like ‘What are the opening hours of the restaurant’ when the agent is at the ‘Ask for reservation info’ node, the condition decision would not be met as the user did not provide the date, time, and number of guests for the reservation. However, the pathway label would be ‘user has a question about the restaurant’s hours or location’, which links to a Global Node. As Global Nodes take precedence over the condition decision, the agent would then move to the ‘Global Node’ named ‘Restaurant Questions’ and provide the user with the opening hours of the restaurant. After providing the user with the opening hours of the restaurant, the agent would then automatically return to the ‘Ask for reservation info’ node, and continue with the flow of the conversation. This helps you to handle edge cases where the user might ask a question that is not related to the current conversation, and allows you to provide the user with the information they need, before returning to the conversation. Tip: The variables {{lastUserMessage}} and {{prevNodePrompt}} can be used in the Global Node to provide the agent with context on what the user said, and steering the conversation back to its own original goal.
You are to answer any questions the user has, to the best of your knowledge. If you do not know the answer, simply say ‘I don’t have that information at that moment’. Do not make up any information/facts about the appointment.After you answer the question, you are to direct the conversation back to your initial goal, which was as follows:Previous Goal: {{prevNodePrompt}}If you deem the goal as achieved, you can simply ask the user ‘So, shall we proceed?’ . If the goal has not been achieved, you are to steer the conversation back to achieve your goal. If you deem the goal as achieved, simply confirm the result with the user. If the goal has not been achieved, you are to steer the conversation back to achieve your goal.
The Edit Node panel for a Knowledge Base node named 'Restaurant Questions'. Global Node is switched on with the pathway label 'user has a question about the restaurant's hours or location'. The prompt tells the agent to answer from the knowledge base, which lists opening hours and store locations.

Node Types

There are currently 6 different types of Nodes
  • Default
  • Webhook
  • Knowledge Base
  • End Call
  • Transfer Call
  • Wait for Response
You can select the type of node you want by clicking on the dropdown of Node Type.

Base/Default Node (Important!)

The default node provides the ability to generate a response to the user. This functionality is exposed to all other nodes as well. You can either:
  • Use the Prompt field to give instructions on what the agent should do at this point in the conversation. This is the recommended way to generate responses as it makes the conversation more human and natural.
  • Enable the ‘Static Text’ toggle to provide a fixed response, and the agent will always say the same thing at this point in the conversation.
The Edit Node panel for a Default node named 'Start'. Static Text is off, and the prompt tells the agent to greet the caller as Bland's customer support line. Condition is checked, with the condition 'Figure out what problem the user has. If the user wants to speak to a human, the condition is passed.' Global Node and the optional Decision Guide are off.

Optional Decision Guide

The optional decision guide is only to be used if your phone agent currently is not going down the correct pathway. We do not expect this to happen often, but still want to provide you the tools to handle these issues if they arise. It is a way to provide the phone agent with example scenarios of what the user might say, and what pathway the agent should take in response. You would put in examples of what the user might say in the User Input field, and then in the Pathway field, you would provide the pathway the agent should take in response.

Condition

The condition is a way to provide the agent with a condition that must be met in order for the agent to move on to the next node. If the condition is not met, the agent will stay on the same node and ensure the condition is met until the condition is fulfilled.

Global Nodes

Each node can be configured to be a Global Node. Global Nodes are nodes that are accessible by every other node in the Conversational Pathway. This means that it has an implicit pathway to every other node, and the label would be the ‘Global Label’. After entering a Global Node, the agent will execute the instructions inside the Global Node, and then automatically return to the node it was at before entering the Global Node, so it can continue with the flow of the conversation. In a Global Node, you can also forward the agent to another node, by toggling the ‘Enable Forwarding’, which will allow you to select the node you want to move the agent to. This is useful if you want to move the agent to a existing node for a certain scenario, which could happen at any point in the conversation. A global node, outlined in yellow with a 'Global' tag, named 'Talk to Bland'. It tells the agent to let the user know they are being transferred to a Bland agent, and shows the number it transfers to.

Agent speech for End Call and Cold Transfer tools

Bland End Call and Cold Transfer tools attached to a node can speak a final line before they act. In the node’s tool settings, the section appears as Before the call ends (End Call) or Before the transfer (Cold Transfer), with an Agent speech field and an AI-composed switch.
  • AI-composed off: the agent speaks the line verbatim. For example, Thanks for calling, goodbye.
  • AI-composed on: you write an instruction instead of a fixed line. The agent composes one line from the conversation before the call ends or transfers. For example, the instruction Thank the caller by name and say goodbye produces a closing line tailored to that call.
In AI-composed mode, you can also set an optional Fallback line. The agent speaks the fallback verbatim if composing fails. An AI-composed instruction cannot be empty: applying without one shows an inline error. To use a fixed line only, switch AI-composed off. On voice calls, the agent finishes speaking the line before the tool acts. The call ends or transfers only after the line plays in full, the same way the End Call and Transfer Call nodes behave. Tools with no agent speech configured act immediately. In chat sessions, these tools also act immediately. If you edit pathways through the API, the AI-composed setting maps to speech_mode: "prompt" and the instruction to speech_prompt on the node tool. The fallback line is the speech field. Set speech_mode to "static", or omit it, to speak speech verbatim.

Transfer Call Node

The transfer call node is used to transfer the call to another number when the node is reached, and the dialogue at this node is complete. As such, you may have the agent say any final words before the call is transferred. The Edit Node panel for a Transfer Call node named 'Transfer the call'. Static Text is on with the text 'Transferring the call now', and the Transfer Number field holds the phone number to transfer to.

End Call Node

The end call node will end the call when the node is reached, and the dialogue at this node is complete. As such, you may have the agent say any final words before the call is ended. The Edit Node panel for an End Call node named 'End'. Static Text is off, and the prompt reads 'Thank the user for their time and say goodbye'.

Knowledge Base Node

The knowledge base node is used to connect your agent to a knowledge base, to answer any questions the user has. Paste in any text in the ‘Knowledge Base’ field, and the agent will search through the knowledge base to answer the user. Coming soon - PDF Upload/Vector Database Integrations… The Edit Node panel for a Knowledge Base node named 'Dolphins QnA'. The prompt reads 'Answer the user's questions about dolphins', and the Knowledge Base field holds several paragraphs of facts about dolphins.

Wait for Response Node

The Wait for Response Node works the same way as the Default Node, except it is also equipped with the ability to wait if the user requires time to respond or needs to hold for a moment.

Webhook Node

The webhook node is used to execute webhooks at any point during the conversation, and send speech during/after the webhook. Webhook Information is all you need in order to execute a webhook, and works the same way as Dynamic Data. Refer to the Dynamic Data section for more information… Similar to how the dialogue is handled in all other nodes, you can control the dialogue sent before, and after the webhook is executed. Variables received from the webhook can be used in the dialogue as well, as shown in the example below. Settings for a webhook node named 'Bitcoin Price Webhook'. It sends a GET request to a CoinDesk price URL and stores the response field bpi.USD.rate as 'BTC Price USD'. While the webhook runs, the agent says 'Give me a sec'. Afterwards, the prompt tells the agent to give the user the current bitcoin price from that variable.

Global Prompt for all Nodes

The ‘Add Global Prompt to All Nodes’ feature is to assist in providing context/instructions to the agent for all nodes, without having to manually input the same prompt for each node. One Example of a Global Prompt could be to provide the agent with instructions on how to handle the call, the tone of voice to use, or answering any questions the user might have. The Add Global Prompt dialog. The prompt reads 'This is a phone call. Do not use exclamation marks.' and asks the agent to write 24-hour times in 12-hour format, for example 14:00 as 2 PM. Below are Clear, Cancel and Add buttons.

Testing the Pathway Agent

Test your pathway agent by clicking Test in the pathway toolbar. There are three testing modes: web-based chat (text or voice), sending a real call to a phone number, and per-node unit testing. The pathway editor for a 'Tech Support' pathway with the Testing panel open on its Chat tab, beside the Call and Unit tabs. In the test chat, a user describes a laptop that makes a whirring noise and the agent offers to transfer them to technical support. The canvas shows the pathway's nodes, from Initial Greeting through troubleshooting branches to End Call.

Test Configuration

Each testing mode shares a common set of configuration options:
  • Load configuration — Restore a previously saved test setup.
  • Start node — Choose which node the conversation begins at. Defaults to the start node. Useful for testing nodes deeper in the pathway without replaying the full conversation.
  • Version — Select which pathway version to test against (e.g., the current draft or a published version).
  • Request data — Add key-value pairs representing context the agent should know (e.g., a caller’s name or account ID). The agent sees both keys and values, and they’re accessible via {{variable_name}} syntax in your prompts.
  • Use Candidate Model — Test your pathway against a candidate model before promoting it.
  • Save configuration — Save your current setup as a named configuration for reuse.

Text Chat

The most common way to test. Type messages in the input field and the agent responds as it would on a live call. Each message displays a timestamp. As the conversation progresses, you can track which node the agent moves to next — when the route and loop condition steps resolve, the log shows the destination node for the following message.

Voice Chat

Switch to the Voice tab to test your agent with speech. Voice-specific configuration includes:
  • Voice — Select the voice the agent will use.
  • Language — Choose the conversation language (e.g., English via Babel).
  • Block interruptions — When enabled, prevents you from interrupting the agent while it’s speaking.
  • Pronunciation Guide — Add word-level pronunciation overrides for terms the agent may mispronounce (e.g., brand names, medical terms).

Send Call

Click Send call to trigger a real phone call using your pathway configuration. The call behaves identically to a production call, and logs appear in the testing panel in real time.

Branching

In any chat mode, you can branch a conversation from any user message to explore how the agent handles a different input at that point. To create a branch, click the edit icon on a user message, change the text, and submit it. The agent generates new responses based on the updated message, and the conversation continues from that point forward. The original branch is preserved — you can swap between branches using the arrow controls that appear on the branched message (e.g., 1/2). This is useful for quickly testing how the agent responds to variations of a user message without restarting the conversation from the beginning. Three numbered steps of branching a test chat. 1: the original chat, where the user wrote 'Hi, my laptop needs to be fixed.' 2: that message is edited to 'Hi, my laptop is having some major tech issues.', and several agent responses are generated, each with a score and a 'Branch from this response' button. 3: the chat continues from the edited message, with arrows and '2/2' to switch between branches.

Expanded Call Logs

Click Expand all logs to see detailed per-turn decision data for any test conversation. Each turn shows the following sections when relevant: Variable extraction — Displays the extraction type and results. When variables are successfully extracted, their names and values appear (e.g., party_size: 8, appointment_time: 9:30 AM). The full list of available variables from previous nodes is also shown, along with the node each variable originated from. Loop condition — Shows whether the loop condition was evaluated and its result. Includes the full loop condition prompt and a likelihood score (e.g., Likely 7/10). This is the only prompt shown directly in the expanded logs — node prompts and the global prompt are accessible from the node editor panel and the global prompt window respectively. When the condition is not yet met, the agent remains on the current node. Route — Displays which outgoing pathway the agent chose and the other available options it could have taken. Interruption — When a user interrupts the agent, the log shows the interruption event, including which node the agent returned to. Webhook — For nodes that trigger webhooks, the log shows the URL, HTTP response status, response time, and the full response payload.

Unit Testing

A unit test that replays the user message 'I have a peanut allergy.' from a past call, with the grading goal 'Acknowledge the allergy and ask if anyone else in their party has other dietary restrictions.' The result is a failed prompt test, and all five variants failed. One variant is open, showing the conversation and the reason it failed: the agent did not acknowledge the allergy or ask about other dietary restrictions. Unit testing lets you create reusable test cases for individual nodes using historical call data. This is useful for validating that prompt changes don’t break existing behavior. To set up a unit test:
  1. Select a node — Choose the node you want to test from the dropdown.
  2. Select a Call ID — Pick a historical call to use as conversation context.
  3. Select a user message — Choose a specific user message from that call to replay against the node.
  4. Replacement message (optional) — Override the original user message with custom text to test how the agent handles different inputs.
  5. LLM grading goal (optional) — Describe what the agent’s response should accomplish. This is used as the evaluation criteria for the test.
Simulated variations — Toggle this on to generate multiple variants (default: 5) of the user message with different communication styles. This stress-tests your prompt against a range of phrasings to ensure robustness. Click Run test to execute. Results are evaluated using a prompt-based test — an LLM evaluates whether the agent’s response satisfies the grading goal (or the node prompt if no custom goal is provided) and returns a Pass/Fail result along with a rationale. When simulated variations are enabled, each variant shows its own response, extracted variables, and individual test results. You can expand any variant to see the full agent response and the grading rationale. A summary badge (e.g., 1/1 failed) appears at the top of the test for quick pass/fail visibility.

Variables

Reference variables in your pathway prompts using double curly braces: {{variable_name}}.

Passing Variables into a Call

Pass variables into a call by including key-value pairs in the request_data field when sending a call. These become accessible in any node prompt using {{variable_name}} syntax.

Built-in Variables

The following variables are available at every node without any configuration:
  • {{lastUserMessage}} — The last response from the user.
  • {{prevNodePrompt}} — The prompt from the previous node.
  • {{now_utc}} — The current time in UTC.
  • {{from}} — The phone number the call is from.
  • {{to}} — The phone number the call is to.
  • {{call_id}} — The unique identifier for the call.
  • {{voice_id}} — The ID of the voice active on the call. This is most useful with voice pools, where the voice is selected at call time: pathway logic can branch on which voice is active (for example, to use voice-dependent names or prompts). The value is the same voice ID you added to the voice pool, so you can match against it directly. If you pass your own voice_id request variable, that value takes precedence.

Extracting Variables from the Conversation

At each node, you can extract variables from the conversation so far using the Extract Variables from Call Info section. For each variable, specify:
  • Name — The variable name you’ll reference later (e.g., party_size).
  • Type — string, integer, or boolean.
  • Description — What information the variable should capture. The more specific this is — including expected formats and examples — the more accurately the agent will extract the value.
Extracted variables become available in subsequent nodes using the same {{variable_name}} syntax. Latency note: Enabling variable extraction introduces slight latency, since the agent must extract variables from the conversation before generating dialogue for the next node. Webhook nodes: Variable extraction runs before the webhook executes, so you can reference extracted variables in the webhook’s request data. Variables returned in the webhook’s response_data are also available in the dialogue generated after the webhook completes.

Quick Start with Tutorial / Templates

To immediately start playing around with Conversational Pathways, you can use one of our templates. Visit the Conversational Pathways page on our Dev Portal, and duplicate the ‘Restaurant Reservation’ Template, and run through the agent to see how it works! We have also created a video walkthrough of that template to help you get started! Video Walkthrough/Tutorial Create a pathway now! Click here to get started! If you have any additional questions, reach out on our Discord and one of our engineers will help.
Docs for agents: llms.txt