https://retellai.com/?utm_source=discord&utm_medium=seo logo
Set variable instead of Extract
# 📒・feature-requests
r
We have received an extract variables widget, which helps alot to streamline later function calls by defining the values seperately. Sometimes, there is nothing to extract though, but I still want to set a variable. For example: when someone goes from one node to another in a conversation flow (because they ask for a refund for example) I want to set the variable "call-intent" to "refund". I don't want to extract anything from what they said, I just want that single word. Sure, I can use gather to do this, or I can put it in my prompt. But if I later have to make a function call where I need to send call-intent as a set value from an enum list, there is a real chance for it to hallucinate and break this. Is there any better options to hard-assign dynamic variables in a way now? And is this otherwise something that would help others?
w
100% -- I currently have an endpoint (
/echo?parameter_name=<name>¶meter_value=<value>
) that I use to do this, which is such a hack ... would love to be able to do this via a simple node