typical-coral
typical-coral2y ago

elligal entity in set step

Hi everyone, I have been trying to pass a prompt to gemini using their api so i tried to assign the prompt to a variable using the set step the problem is that the prompt contains two variables that are resulting to illegal entity does any one know how i can get through this
6 Replies
Tico | Voiceflow Assistant
To address the issue of illegal entities when using variables in a Set AI step, it's important to ensure that the variables you're trying to pass are correctly formatted and that they do not conflict with the system's understanding or processing capabilities. Here are some key points to consider: - Ensure that the variables are correctly captured or set before being used in the prompt. This might involve using a Capture step to securely gather and store user input in variables. - When configuring your prompt in the Set AI step, you can include variables from your project to make the prompt dynamic. However, be cautious with the syntax to avoid any illegal entity errors. - Remember, the Set AI Step is an experimental feature and might not always work as expected for complex use cases involving multiple variables. It's designed to set variables in real-time based on the provided prompt but has limitations in handling intricate variable manipulations. - Testing your prompt using the Preview button or in the Test Tool can help identify issues with variable handling before deploying your assistant. If you're still encountering issues, reviewing the documentation on configuring prompts and testing generated variables might provide further insights.
typical-coral
typical-coralOP2y ago
am not using the set AI step am using the set step to set a variable to a prompt
frail-apricot
frail-apricot2y ago
Can you share a screenshot of what your doing, I dont understand
W. Williams (SFT)
what Mike said 👆 would be very helpful so we can get a better idea of what you are doing.
typical-coral
typical-coralOP2y ago
I want to save this prompt in a variable using the set step which contains two variables but i keep getting error of unexpected string or a correction from voiceflow which when i apply it keeps resulting to more errors
No description
W. Williams (SFT)
@combato Use a Javascript step instead and use litterals.

Did you find this page helpful?