Can i use dynamic variables within the yellow tran...
# support
a
Inside the "transitions" where you type the condition of the transition, can we use dynamic variables there?
@Vapi Support Bot
v
Yes, you can use dynamic variables in transition conditions (the "yellow transitions") in Vapi workflows, as long as those variables have been set earlier in the workflow (e.g., via Gather or API Request nodes). This allows you to branch your conversation logic based on user input or external data. Example approach: - If you have a variable called
user_type
gathered earlier, you can set a transition condition like:
Copy code
user_type == "premium"
However, the documentation does not provide an explicit code snippet for this, so be sure to test your workflow to confirm the exact syntax for your use case. Sources: - [Vapi Workflows Documentation](https://docs.vapi.ai/workflows) - [Vapi Gather Node Documentation](https://docs.vapi.ai/workflows/nodes/gather)
k
Yes, by wrapping them in {{ }} and applying logical conditions to control the flow based on extracted or set data..