To the chatbot_client_data_keys
table, add the keys you want to send to the chatbot. Example (PostgreSQL):
INSERT INTO chatbot_client_data_keys VALUES (nextval('chatbot_cl_data_key_id_seq'), 'phone');
Only keys specified in the
chatbot_client_data_keys
table will be sent to the chatbot. Also, the following predefined keys are supported:
Key | Value |
name | Client’s name |
phone | Client’s phone number |
email | Client’s email address |
locale | Client’s locale |
IP | Client’s IP address |
GEOLOCATION | Client’s geolocation |
user_id | Address of the client’s device |
You can also specify any user-defined key. In this case, the system will attempt to obtain its value from the client data that was passed when creating the client.