Integration examples

Below is a complete example of integration into an HTML page for both user data via a user id and user parameters.

Example with user-id

Smart Assistant receives the user ID that will be used to access the related user’s data through the API provided by the eCommerce.

<html>
    <head>
        ...
        <script src="https://sa-media.usizy.es/smart-assistant/launcher.js"></script>
        ...
    </head>
    <body>
        ...
        <smart-assistant
            api-key="dg9ZhWj4LGJDeEmahdfgDo"
            product-id="5566446"
            language="en"
            user-id="668443"
        >
        </smart-assistant>
        ...
    </body>
</html>

Example with user’s data

Smart Assistant receives the different user data directly via each corresponding parameter.

<html>
    <head>
        ...
        <script src="https://sa-media.usizy.es/smart-assistant/launcher.js"></script>
        ...
    </head>
    <body>
        ...
        <smart-assistant
            api-key="dg9ZhWj4LGJDeEmahdfgDo"
            user-id="668444"
            product-id="5566446"
            language="en"
            first-name="John"
            last-name="Smith"
            zip-code="04223"
        >
        </smart-assistant>
        ...
    </body>
</html>