Gain greater control over your AI agent and the conversational flow. Create a Pathway Now!
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.
{{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.
Example Global Node Prompt:
{{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.Node Type
.
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.User Input
field, and then in the Pathway
field, you would provide the pathway the agent should take in response.
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.
{{first_name}}
. You can pass variables into your call by passing in the key-value pairs in the request_data
field when sending a call.
Some examples of variables that you can access at each node:
{{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 callExtract Variables from Call Info
field. You would put in the name of the variable you want to extract, the type of the variable (integer, string, boolean), and the description for what information you want the variable to store. You can also provide specific formats you expect and examples in the description. The more descriptive it is, the better the agent will be at extracting the variable more accurately.
Do note that when enable variable extraction, and wanting to reference the variable in the subsequent nodes, it would introduce slight latency as the agent would have to extract the variable from the user’s response before generating the dialogue for the next node.
Within the webhook node, the variable extraction happens before the webhook is executed, so that you can reference the variables extracted from the user’s response in the webhook’s request data. The variables extracted from the webhook in response_data
can also be referenced in the dialogue generated after the webhook is executed, in the same manner.
For Example, the image below shows how the Webhook Node is set up to extract the date, time, and number of guests for the reservation, and how the extracted variables are referenced in the webhook’s request data.
Edit
button on the PATHWAY DECISION INFO
block.