How to access custom variables in blocks?
# support
g
I am injecting custom variables like first_name, email etc. while initiating the call. But, not able to access it in blocks. I tried - global.variable_name and input.variable_name.
v
@gladiator It sounds like you're trying to use custom variables within your voice application. To access these variables, the correct method often depends on the specific platform or API you're using. Generally, variables are accessed using a syntax provided by the platform. If you're using VAPI, you might need to use a specific syntax or function to access these variables. Typically, variables passed during the initiation of a call can be accessed using a context object or a similar mechanism provided by the API. For example, if you're trying to access a variable named
first_name
, you might need to use a syntax like
{{first_name}}
or a function that retrieves the value of a variable by its name. If you're still having trouble accessing the variables, could you please provide more details about how you're setting these variables and the specific platform or API documentation you're following? This will help me give you a more accurate solution. If the issue persists, you may need to contact support for more detailed assistance.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
4 Views