How to use the 'TurboSyntax' component in wolkvox Studio
Table of Contents
Introduction
“TurboSyntax” is a wolkvox Studio component that allows you to generate code snippets with the help of artificial intelligence, based on an instruction (prompt) written in natural language. You can produce code in PHP, Python, or Node.js, edit it manually, ask the AI to review it, and have it ready for use within the flow (routing point or agent scripting).
This component is available for all routing point types (Voice, Chat, Interaction, and CRM + Webhook + Cron + AutoQAi) and also for Agent Scripting. Its purpose is to help you reduce development time by replacing, where applicable, classic components such as Functions (F(X)), Case, IF, Variable Computing, Multiple Computing, and Rest API.
Configuration
- Drag the component to the canvas.
- Double-left-click on the component on the canvas to open the configuration panel.

In the lower-right panel, you will find a dropdown menu to choose the language: PHP, Python, or Node.js.

- Click the button with the icon of a vertical stick with 3 “+” signs.
- This enables/opens the “Write the request:” field, where you will write the instruction for the AI.

- In “Write the request:” describe:
- Which input variable(s) you are going to use (for example, $txt_query).
- What you need to do with that information (separate, clean, format, validate, extract, convert).
- What output variables you expect to obtain.
- Prompt example: A name and a phone number are stored in the variable '$txt_query'. Separate each with a line break and save them into one variable for the full name and another variable for the phone number.
- Click the button with the horizontal oval circle icon (generation button).
- The AI will write the code in the top editor (the one showing line numbers).
- The result may include explanatory comments for easier reading.
- Edit the code if necessary.
- You can modify the code directly in the editor: add validations, improve rules, adjust variable names, or adapt the format.
- You can also paste your own code from scratch if you prefer to write it manually.
- Important note: wolkvox protects reserved system variables to prevent the component from overwriting critical information. Even so, it is good practice to use clear and specific names for your variables.
- Apply changes with the “Review, save and close” button:
- The “Review” button sends the current code to the AI so it can:
- Detect errors and apply automatic adjustments.
- This button serves two functions:
- Automatic code review/correction.
- Saving and applying the configuration.
- Once saved, the variables calculated/created by TurboSyntax become available for use in subsequent components (conditions, routing, integrations, notifications, etc.), depending on the type of routing point you are working on.
- The “Review” button sends the current code to the AI so it can:

You can use the undo and redo buttons when editing the code.
