Variable Customizations

Custom Variables act as versatile containers within viaSocket, capable of holding various types of information essential for your workflows.


Custom Variables allow you to tailor your workflows precisely to your requirements. Gone are the days of one-size-fits-all automation – now, you can dive deep into the inner workings of your workflows and mold them to perfection.


Custom Variables allow users to create and initialize variables within their workflows using JavaScript. These variables can hold various types of data, such as text strings, numbers, or even complex objects. Once defined, these variables become accessible and usable across your entire workflow.

Step by step guide on how to use custom variables in viaSocket.

1. Creating and Initializing Variables

With viaSocket's user-friendly interface, you can create and initialize variables effortlessly using JavaScript.


Click on the variables option from the plugin window



You can define your variable by giving it a suitable name of your choice and initializing it with the required value. Click on the Create button to create the variable. 


In the Response block below you can see the output of the variable as well to check if your variable has been initialized properly.

2. Types of Variables

These variables are capable of holding any data type available in JS.


(i) Integer value




(ii) String type




(iii) JavaScript objects




(iv) Boolean




(v) Array



3. Dynamically Update Variables

You can also initialize the value of this custom variable with the chips that contain data obtained from the API calls above( trigger and action steps). Using chips you can dynamically change your variable's value for each workflow run. This dynamic flexibility ensures that your automation stays responsive and agile, no matter how complex your processes become.

4. Modify Data from chips

Variables in viaSocket allow you to run one-line codes. 


This allows you to update and modify your existing data in the chips that contain data obtained from the API calls earlier( trigger and action steps). This feature gives you the flexibility to customize your workflow with low-code rather than being dependent on limited features of no-code platforms like Zapier where you can only use data from the chip for mapping the applications to perform automations. You can not update or modify the data in chips on other platforms. 


📌 For exampleyou have a workflow where you update the “submission” field in Google Sheets by adding 7 days to the “assigned” date in your sheet. For this, you can simply initialize a new variable submission_Date  in workflow and add JS one line code to initialize it with “assigned” date + 7 days and then update the “submission” field in your sheet with variable submission_Date.

5. More customization with APIs, JS functions, and IF conditions

Variables extend the functionalities of other viaSocket features to offer you endless customization possibilities and freedom to make perfect workflows. With all the low-code features of viaSocket, you can improve your previously created rigid and standardized workflows and innovate new workflows to increase efficiencies.


📌 For exampleyour users submit forms in Typeform, and they submit their full name as you want to use their full name for creating invoices, and you also want to send them an email but you want to use only their first name in the emails, now in Zapier you can not edit this because the data stored in their chip can not be modified, but with viaSocket, you can add a JS code using AI to separate the first and the last name from the Full name and then store them in two different variables. Now you can easily use the new variable with the first name in your emails. 


Custom Variables are the key to unlocking the true potential of your automation workflows in viaSocket. By offering high customization and flexibility, they empower users to tailor their processes precisely to their unique needs. Say goodbye to cookie-cutter automation – with Custom Variables, the power is in your hands to create workflows that truly work for you.