How to Access and Utilize userData in Botpress Web...
# đź“–tutorials
[YouTube Video](â–ľ

) In this tutorial, I'll show you how to access and utilize userData in the Botpress web chat. We'll create a new bot and learn how to retrieve the user's data, such as language preference, using the Get User Data card in Botpress. I'll demonstrate how to display this data in the chat window and how to use it in an execute code card to set the translator agent's language based on the user's preference. By the end of this video, you'll understand how to leverage the userData to personalize the user experience in your Botpress web chat. [YouTube Video](â–ľ

HTML used:
Copy code
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src=""></script>
        "composerPlaceholder": "Chat with bot",
        "botConversationDescription": "This chatbot was built surprisingly fast with Botpress",
        "botId": "BOT ID",
        "hostUrl": "",
        "messagingUrl": "",
        "clientId": "CLIENT ID",
        "webhookId": "WEBHOOK ID",
        "lazySocket": true,
        "themeName": "prism",
        "frontendVersion": "v1",
        "showPoweredBy": true,
        "theme": "prism",
        "themeColor": "#2563eb",
        "enableConversationDeletion": true,
        "userData": {
            "language": "da"