Skip to main content

Function tools

A function tool runs a jq program for logic that needs no API, such as checking a date against a holiday list or testing business hours. Click Function in the side panel.
  • Name and Description say what it does; Generate writes the program from the description.
  • Inputs are Static, Variable, JQ or (on-call) Dynamic. Input keys use letters, numbers and _. A dynamic input also takes a data type: string, number or boolean.
  • Program is jq, and the inputs are its input object (.).
  • Test function shows Input (.) and Output. View example loads Holiday check, Business hours or Format contact details.
A function tool has Share to workspace and Delete buttons.

Conditions

On pre-call and post-call, Condition adds a group of tools that runs only when its rule matches. A rule is “If” a field, an operator and a value; several rules join with And or Or, or you write a JQ expression instead. Put tools in the group by dragging them in, or click Attach tool and pick one; Create new tool builds a new API tool inside the group. A workspace tool listed as “Re-save this tool in the library to enable conditions” needs exactly that: open it in the library and click Save tool. For example, a post-call group with “If platform_analysis.callback_requested equals true” can create a follow-up task in your CRM.