# User Extra Info
We provide some other extra user info for you to know better about your users.
# API
You can pass some other user information such as app package name, device model to AIHelp through the userConfig
property.
<script src="https://cdn.aihelp.net/webchatv3/aihelp.js"></script>
<body>
<script>
(function () {
let initConfig = {
appKey: "your_app_key",
domain: "your_app_domain",
appId: "your_app_id",
supportMode: 'showConversation',
userConfig: {
applicationIdentifier: 'your_package_name',
applicationVersion: 'your_app_version',
applicationName: 'your_app_name',
totalMemory: 'user_device_total_memory',
availableMemory: 'user_device_available_memory',
deviceModel: 'user_device_model',
totalSpacePhone: 'user_device_total_storage_space',
freeSpacePhone: 'user_device_available_storage_space',
osVersion: 'user_device_os_version',
networkType: 'user_device_network_type',
countryCode: 'user_country_code',
carrier: 'user_current_operator',
}
};
AIHelpSupport.init(initConfig);
AIHelpSupport.show();
})();
</script>
</body>
# URL
Or, you could implement the same function by the URL scheme:
<script>
let appKey = "your_app_key";
let domain = "your_app_domain";
let appId = "your_app_id";
(function () {
let baseUrl = `https://${domain}/webchatv3/#/appKey/${appKey}/domain/${domain}/appId/${appId}`;
let params = `applicationIdentifier=${your_package_name}&applicationVersion=${your_app_version}&osVersion=${user_device_os_version}`;
let url = `${baseUrl}?${params}`;
window.open(url);
})();
</script>
# Definition
# userConfig API
- Type:
object
- Detail: Optional. Only works in API, to add more user information.
# applicationIdentifier
- Type:
string
- Detail: Optional. Application package name.
# applicationVersion
- Type:
string
- Detail: Optional. Application version.
# applicationName
- Type:
string
- Detail: Optional. Application name.
# totalMemory
- Type:
string
- Detail: Optional. Device total runtime memory, aka RAM.
# availableMemory
- Type:
string
- Detail: Optional. Device available runtime memory.
# deviceModel
- Type:
string
- Detail: Optional. Device model.
# totalSpacePhone
- Type:
string
- Detail: Optional. Device total storage space.
# freeSpacePhone
- Type:
string
- Detail: Optional. Device available storage space.
# osVersion
- Type:
string
- Detail: Optional. The operating system version.
# networkType
- Type:
string
- Detail: Optional. The network type, such as Wi-Fi or 5G.
# countryCode
- Type:
string
- Detail: Optional. Country code.
# carrier
- Type:
string
- Detail: Optional. The alphabetic name of current registered operator.
# additionalSupportFor
- Type:
CN | IN
- Detail: Optional. To provide domain support for India and Mainland China