afrah_85175
08/19/2025, 9:24 AMAI Evy
08/19/2025, 9:24 AMAI Evy
08/19/2025, 9:24 AM{{isBookAppointmentEnabledForVoice}} == true
2. A prompt condition: "If the customer is indicating that they want to book an appointment/service call/reservation etc"
However, since equation conditions are evaluated first and from top to bottom , if your equation condition evaluates to true, the agent will transition before evaluating the prompt condition. This means you cannot achieve the AND logic you're looking for with the current transition condition system.
You might need to restructure your conversation flow to handle this scenario, perhaps by using the equation condition to route to an intermediate node that then uses the prompt condition for the final transition.AI Evy
08/19/2025, 9:24 AMAI Evy
08/19/2025, 9:24 AMafrah_85175
08/19/2025, 1:24 PMAI Evy
08/19/2025, 1:24 PMAI Evy
08/19/2025, 1:24 PM{{isBookappointmentEnabledForVoice}} cannot be used with equation syntax (== True) directly within prompts [(1) ]() . According to the documentation, equation conditions are specifically designed for transition conditions, not for use within node instructions or prompts .
In your prompt, you're trying to use equation syntax within the instruction text itself, but this won't work as expected. Dynamic variables in prompts are meant to be simple substitutions, not conditional logic .
For your use case, you have a few options:
1. **Use transition conditions instead**: Move this logic to equation-based transition conditions that route to different nodes based on the variable value
2. **Simplify the prompt logic**: Instead of using equation syntax, write the conditional logic in natural language that the LLM can interpret, such as:
If booking appointments is enabled for voice calls, and no appointment has been booked yet in this conversation, you can follow up with: "{{ask_to_book_service_message}}"
3. **Use separate nodes**: Create different conversation nodes for when {{isBookappointmentEnabledForVoice}} is true vs false, and use equation-based transition conditions to route between them
The equation syntax like {{isBookappointmentEnabledForVoice}} == True is specifically for transition conditions between nodes, not for conditional logic within the prompt text itself .AI Evy
08/19/2025, 1:24 PMAI Evy
08/19/2025, 1:24 PMafrah_85175
08/19/2025, 1:26 PMAI Evy
08/19/2025, 1:26 PMAI Evy
08/19/2025, 1:26 PMAI Evy
08/19/2025, 1:26 PM# Objective:
Answer the customer's question by following the guidelines mentioned below.
# Instructions
1. Use the context in ## Related Knowledge Base Contexts, answer the customer question.
2. Generate an answer to the point.
3. Finish by following the instructions in ## Follow up action section.
## Follow up action
If appointment booking is enabled for voice calls and no appointment has been booked in this conversation yet, follow up with: "{{ask_to_book_service_message}}"
Otherwise, randomly choose one of these suggestions:
- "Anything else I can answer for you?"
- "Do you have any other questions?"
- "Let me know if there's something else you want to know about"
- "Is there anything else you'd like to know?"
- "{{default_followup_message}}"
# General Conversation Guidelines:
1. Maintain a cordial, professional phone‑call tone.
2. Speak in first person as the owner or team member.
3. Keep replies informal, less than 35 words.
4. Only share names, stats, numbers, prices or sensitive data if in the knowledge base.
5. Politically, religiously or sexually sensitive topics: politely decline.
6. Stay on‑topic within the industry in which the business operates.
8. Never discuss HIPAA‑sensitive information.
This approach lets the LLM interpret the conditional logic naturally rather than trying to use equation syntax within the prompt text .AI Evy
08/19/2025, 1:26 PMAI Evy
08/19/2025, 1:26 PMafrah_85175
08/20/2025, 4:18 AMAI Evy
08/20/2025, 4:18 AMAI Evy
08/20/2025, 4:18 AMmulti for multilingual support [(1) ]() [(2) ]() . The documentation indicates that selecting multi for multilingual support currently supports Spanish and English .
To enable multilingual support, set the language parameter to "multi" when creating or updating your agent :
javascript
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: '11labs-Adrian',
language: "multi"
}) ;AI Evy
08/20/2025, 4:18 AMlanguage parameter is set to "multi" [(1) ]() [(2) ]()
3. Check that your prompt instructions don't explicitly force English responses
The available sources don't provide detailed troubleshooting steps for this specific issue, so you may need additional support for more specific configuration guidance.AI Evy
08/20/2025, 4:18 AMAI Evy
08/20/2025, 4:18 AM