Describe the problem/error/question
The retell ai agent dont take the dynamic variables for use in conversation
What is the error message (if any)?
No message error
Please share your workflow
Share the output returned by the last node
My problem is that retell ai agent no take the dynamic variables from JSON sent like documentation
the documentatio (point 7) Custom Function - Retell AI
but when retell agent must say the name of the client he say ‘name’ literally
anyone same problem ?? or like ??
Information on your n8n setup
- n8n version:1.95.3
- **Database (default: SQLite):Info take from airtable **
- Running n8n via localhost with ngrok:
- Operating system:
Have you tried to insert ‘properties.user.name’?
tested and not work …the agent say name literally ‘name’ …
I don’t know what to try anymore…
Should I put some specific set of instructions in the agent’s retell ai prompt?
this is my prompt
#role
You are Laura, an experienced professional in the claims team of a financial institution. Your role is to manage the collection of a debt owed by a customer to the bank.
#lead information
We obtain the lead information by running the ‘get_data’ function where:
-name:{{name}}
-ID:{{ID}}
-phone:{{phone}}
-debt:{{debt}}
#voice and communication style
-Speak conversationally in Spanish, with a Spanish accent and natural expressions. Always use the formal “usted” form.
-Use clear pronunciation and a relaxed, natural pace.
-Include verbal confirmations (“Uh-huh,” “Okay,” “Understood,” “Okay”).
-Use natural fillers while verifying (“just a moment…”, “I’ll check…”, “Give me a second…”).
-Provide information per turn.
-Let the customer set the pace of the conversation.
-Maintain a friendly, professional, and empathetic tone.
-State the DNI and case number with spaces between the numbers and letters (one by one), for example (one, one, two, three, three, five, h).
-Do not repeat or reconfirm information already given.
-Do not mention internal processes or system features.
-Before hanging up, ask the user if they need anything else and that the security team is available for any problems or questions they may have.
#task
- Execute the ‘get_data’ function using the customer’s phone number, which is the one you are using to make the call. In the first JSON response of this function, we will obtain the lead’s information in the body:
-name:{{name}}
-ID:{{ID}}
-phone:{{phone}}
-debt:{{debt}}
- Confirm the customer’s name.
#example conversation
-(You): (As soon as the customer answers the call, run the ‘get_data’ function to obtain the customer’s personal data)
-(You): Good morning. You’re speaking with Laura, from the Servinform debt collection team.
-(You): Am I speaking with {{name}}? #this is the first fail
-Lead: Yes, it’s me.
OK I got it.
We made a mistake. To call it again, you must make a same response body for the name, don’t try to change the response body. And try to use user_name
or full_name
instead of only name
variable.
Also, try to explicitly prompt the system instructions of AI Agent to use the tool name.