# Set Variables

Platform allows you to set variables, which can be used inside your chatbot to check a condition, form a message, or by another embedded function

```
ctx.setVar(variableName, variableType, variableValue)
e.g. ctx.setVar("@visitor_first_name", "Text", "Developer")
```

| Parameters    | Description                                                                                                                                                                                                                                                                                                                                                             |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| variableName  | <p>Name of a variable</p><p></p><p>Variable Name cannot has spaces, and must start with an alphabet</p><p></p><p>@VariableName : Save variable in visitor information (e.g. First Name, Email etc), which almost never changes for a visitor</p><p></p><p>#VariableName : Save variable in session, and will reset automatically when the visitor visits next time </p> |
| variableType  | <p>Allowed Types</p><ul><li>Text</li><li>Boolean</li><li>Date</li><li>Number</li><li>Decimal</li><li>Object</li></ul>                                                                                                                                                                                                                                                   |
| variableValue | Any value as per the variable type                                                                                                                                                                                                                                                                                                                                      |
