• KB Home
  • API
  • edna Chat Center API for Bot Connect
  • Customize ClientData in Webhook Content

Customize ClientData in Webhook Content

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:

KeyValue
nameClient’s name
phoneClient’s phone number
emailClient’s email address
localeClient’s locale
IPClient’s IP address
GEOLOCATIONClient’s geolocation
user_idAddress 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.

In this article