KODA.AI Docs

KODA.AI Docs

  • Web JS SDK

›Config

  • Quick Start
  • Config

    • User Profile
    • Locales
    • Advanced Configuration
  • Browser Compatibility
  • SDK Methods
  • Analytics
  • CSS Properties

User Profile

SDK allows You to update default user properties. This values will be saved in user profile and available in bot structure (e.g. {{api_access_key}}) If You don't pass properties in the user_profile property. first_name, last_name and profile_pic values are used in the Inbox.

The Id is generated only when a user first-time visit website. To identify users SDK uses Web Storage API.

Example

<script>
    window.initKBWebSDK = function (SDK) {
        const bot = SDK.initKBChatbot({
            ...
            "user_profile": {
                "first_name": "Frank",
                "locale" : "en_US",
                "gender": "male",
                "api_access_key": "api123"
            }
        });
    }
</script>

Example object

FieldRequiredTypeDefaultDesc
idNostring (uuid-v4)
first_nameNostring
last_nameNostring
profile_picNostring
localeNostringen_USBased on this property widget load translations.
{custom_key}Nostring
← Quick StartLocales →
  • Example
  • Example object
Copyright © 2025 KODA sp. z o.o . Questions? Sent message to developers@koda.ai