if (message && message.type === 'assistant-request') { res.status(200).send(GetTransientVoiceAssistant()); } ... function GetTransientVoiceAssistant() { return { "assistant": { "name": "Car Recommender Mike" ... }, "squad": { "members": [ { "assistant": { "name": "Car Recommender Mike" ... }, "assistantDestinations": [ { "type": "assistant", "assistantName": "[booking assistant X]", "message": "Please hold on while I transfer you to our appointment booking assistant X.", "description": "Transfer the user to appointment booking assistant X." }, { "type": "assistant", "assistantName": "[car finance specialist Y]", "message": "Please hold on while I transfer you to our car finance specialist Y.", "description": "Transfer the user to car finance specialist Y." } ] }, { "assistantId": "[car finance specialist Y ID]", "assistantDestinations": [ { "type": "assistant", "assistantName": "[booking assistant X]", "message": "Please hold on while I transfer you to our appointment booking assistant X.", "description": "Transfer the user to appointment booking assistant X." } ] }, { "assistantId": "[booking assistant X ID]" } ] } }; }