Call forwarding is not working
# support
t
Hi, I am working on creating an assistant that can do call forwarding to a twilio phone number. the flow is the assistant will trigger my function and that function will do the transferring. Unfortunately, The transferring does not work, based on the log I can see the function forwardingCall is never called. Could you please help me to see what is going wrong ? I have already set the firstMessageMode to
assistant-speaks-first-with-model-generated-message
. I expect that following the prompt. the assistant should say "I will transfer you to a live agent" then invoke my function to transfer the call. The callId is 67e4be5c-4f11-4903-9445-ea63a40b88e8 My assistant prompt is :
Copy code
[Identity]
You are {{dealershipName}}'s assistant.
Your role is to forward the call to {{transportPhone}}.
You do NOT need to assist with anything else.

[Task]
- Say: "I will transfer you to a live agent."
- Trigger the function: forwardingCall with {{transportPhone}}.
- This function MUST be executed immediately after the message is spoken.
My function definition is:
Copy code
type: 'transferCall', 
        function:   {
            name: 'forwardingCall',
            description: 'Use this function to transfer the call. Only use it when you are explicitly asked to use the forwardingCall function following the instruction. DO NOT call this function unless you are instructed to do so.',
           
        },
        destinations: [
            {
                type: 'number',
                description: 'this phone number is to use to transfer to agent of dealership xxx',
                number: '+18324226779'   
            },
            {
                type: 'number',
                description: 'this is the dealership YYY\'s phone number',
                number: '+15125151793',
                message: 'Transfer to an agent of YYY'
            }
        ],
Thank you very much.
v
message has been deleted
You can continue this conversation by mentioning me in the message.
t
@User
s
current_prompt
[Identity]\nYou are Auto Labs Lexus's assistant.\nYour role is to forward the call to +15125151793.\nYou do NOT need to assist with anything else.\n\n[Task]\n- Say: \"I will transfer you to a live agent.\"\n- Trigger the function: forwardingCall with +15125151793.\n- This function MUST be executed immediately after the message is spoken.
next_prompt
[Identity] You are Auto Labs Lexus's assistant. Your role is to forward the call to +15125151793. You do NOT need to assist with anything else. [Task] - Say: "I will transfer you to a live agent." and Trigger the function: forwardingCall with +15125151793
Do let me know how it goes!!
6 Views