Browse our comprehensive FAQ section to quickly find solutions, learn how to use ChatMaxima features, and get step-by-step guidance for setup, integrations, and support.
The Variable block allows you to store and manage data inside your chatbot's conversation. This is essential for remembering things a user has said or for tracking information you need to use later.
It makes your bot dynamic and personalized. You can save a user's name, their preferences, or information from an API and then use it in future messages, making the conversation feel tailored and intelligent.
This field is where you define a new variable. You need to give it a name so you can reference it and use it later in your bot's workflow.
The "Input" field is where you choose the type of data you want to store in your variable. The block provides three options for different types of data handling: store from text, process JSON, and process from string.
You select "store from text" in the "Input" field. Then, a "Value" field will appear where you can enter the specific text you want to save.
You can use it to store a fixed value like a product name, a confirmation message, or a standard reply that the bot can use at any time.
First, select "process JSON" in the "Input" field. Then, in the "Source" field, you'll paste the JSON data. You can then use the other fields to extract the exact value you need.
Value to Select: This is the key of the value you want to extract from the JSON. Value to Search: This is the specific value you are looking for within the JSON data. Search Key: This is the key where the value you're searching for is located.
If you have a JSON file with {"products": [{"id": 1, "name": "Shirt"}]}, and you want to get the name of the product with an ID of 1, you would set:
Value to Search: "1"
Search Key: "id"
Value to Select: "name"
When you receive a JSON response from an API call, you can use the "process JSON" function to automatically pull out a specific data point you need, such as a customer's email or an order number.
Select "process from string" in the "Input" field. Then, you'll provide the text you want to modify in the "Enter Input String" field, and the new text in the "Enter Replace String" field.
Enter Input String: This is the original text you are working with. It's the string that will be searched for matching content. Enter Replace String: This is the text that will be used to replace any content that is found.
You could use it to standardize user input. For example, if you want to replace every instance of the word "customer" with "client" in a long text message.
After you have configured your variable and its input, you must click submit to save the block and add it to your chatbot's flow.
Yes. Once you define a variable, it is available to be used anywhere later in the conversation flow, which is the main purpose of this block.
It's a best practice to use clear, descriptive names with no spaces (e.g., customer_name or order_id) to make them easy to find and use later.
Yes. You can use another Variable block later in the flow with the same variable name to update its value.
You can find the Variable block by navigating to Dashboard → Quick Access. Then, under ChatMaxima Studio, click on Create Chatbot. The Variable block will be available in the sequence section of the builder.
You can find the video tutorial at: https://chatmaxima.com/video-tutorials/creating-a-sequence-variable-node-in-chatmaxima/
It provides a user-friendly interface to perform common data management tasks—like parsing JSON or finding and replacing text—without having to write a single line of code.