Take Message
The Take a Message function allows you voice bot to record voicemail when specific staff members are unavailable. This ensures that important information is captured and relayed to the appropriate person for follow-up.
How To Configure Message Recording
Take messages are configured within the tools section of the voice bot. You simply define a new function and define as a description under what condition the message should be recorded For instance: Call this function when the caller wants to talk to a sales representative. in case there is currently no staff available in the sales department.
Choose as action Take message as shown below:

Programmatic Execution of a Recording Calls
Recording calls transfers can also be programmatically executed in any JS code snippet at any point of time by simply calling the startRecording()
function as show below:
function myFunction(params) {
// ... some code ...
startRecording();
// ... some code ...
}