A node's Tools tab lists the tools it can use. A conversation node can have several and decides when to call them; a function node runs its one tool as soon as it is reached. Tools in Global settings are available on every conversation node, and a node can add its own.
Configure a tool
- Press Add tool on a conversation node, or pick the Tool of a function node.
- Open the tool from its row. Its settings open in a window.
A tool's inputs, filler and extracted variables
- Parameters. By default the agent fills the tool's inputs from the conversation. Set parameter fixes an input instead: a Static value, or a value From variable. When variables with the same names as the inputs exist, a button offers to take them all at once (here Take patientId from memory).
- Filler. What is said while the tool runs: silence, a phrase or a generated one. See Node speech.
- Extract variables. Pick a field of the tool's answer and the variable to keep it in. Here
patient.patientIdof the patient lookup is kept aspatientId, which later nodes, tools and transitions read.
Press Done, then Save changes.
For example, the booking tool takes its patientId input From variable patientId, the one the lookup saved, so the agent cannot book for a patient it did not find.
Function nodes
Use a function node for an action at a fixed point of the flow, without leaving it to the agent. Set every input from a variable or a static value, and make sure each path into the node has set those variables. Then add transitions for the tool's result: a successful booking to confirmation, a failure to recovery.
Shared and node tools
Add a tool to one node when only that task needs it, and to Global settings when every node does. Removing a tool from a node does not remove it from Global settings. To see a call and its answer, use Debug.