What are variables in ChatPlace
Variables are a powerful tool in the ChatPlace service. They act as special "cells" where you can store client responses or selections and then use them in automations, or to pass data to a CRM system or send notifications via Telegram.
They can contain values such as client responses, user information from their profile, or data from a leaderboard.
How do I create a variable?
Important note:
Variables cannot be deleted. You can create an unlimited number of variables, but it's not recommended to create unnecessary ones without a clear purpose.
To create a new variable, you need to:
Use any action that works with variables, such as Collect client data or Set a variable
Enter the name of the variable
If the variable doesn’t already exist, the system will suggest creating it
Click the "Create" button
Done! The variable has been created and is ready to be used.
How to use variables:
Using variables to store client responses:
More about how client data collection works, you can find here.
You can use variables to display values in messages to the client. To do this, select the variable from the list or enter it manually in the text field:
To use a saved variable in the text, place it between double curly braces {{ }}. If the variable is named "name", add {{ and a space at the beginning, then a space and }} at the end. It should look like this: {{ name }}.
3. Using variables to pass values in a Telegram notification:
4. Using variables to pass values to CRM services:
More about transferring data to CRM, you can find here.
5. Check client responses saved in variables:
6. With the help of variables, you can set up a neural network in automation: the neural network reads the client's question saved in one variable and saves its answer in another, so it can be displayed later:
How to set up a neural network in automation.
7. You can assign variables to clients and change their values to track the client's actions at different stages:
How to assign variable values to clients.
8. Set up a randomizer and generate random numbers:
Variables are a very flexible and universal tool.
Where to check variable values
You can view the values of variables assigned to a client in their profile, under the sections Chats or Clients.
Reserved variables
ChatPlace has system-reserved variables whose names cannot be reused. When one of these variables is selected, the system will always use the value pre-assigned to it internally, not any value entered by the user.
Important! The values of reserved variables cannot be changed using the "Set a variable" action or checked using the "Variable value" condition.
The values of these variables are pulled directly from the client's profile, leaderboard, or client card.
List of reserved variables:
First Name: {{ firstName }}
Last Name: {{ lastName }}
Full Name: {{ fullName }}
Username: {{ username }}
Has subscription (yes/no): {{ hasSubscription }}
Followers count: {{ followersCount }}
Chat Link: {{ chatLink }}
Phone: {{ phone }}
Email: {{ email }}
Note: {{ note }}
Client registration date: {{ createdAt }}
Story reactions in game: {{ gameStoryReactions }}
Story mentions in game: {{ gameStoryMentions }}
Comments in game: {{ gameComments }}
Comments in live stream: {{ gameLiveComments }}
Total game points: {{ gameTotalPoints }}
Game rank: {{ gamePlace }}
Total game participants: {{ gameTotalParticipants }}
Referral code: {{ referralCode }}
Referral count: {{ referralsCount }}
You might also find useful:
Tags: how to use them in ChatPlace