Configuration & user context
Providing user context
At times your website or app might already know who the user is — for example, the user is logged in. You can provide this information to the Freeday widget, so the digital employee gets more context and is able to provide better answers.
Please contact us to discuss your needs and we can help you leverage this feature fully.
<script type="module" async>
// ...same setup as the standard embed...
const userMetadata = { email: 'john.doe@example.com', userId: 123, someOtherProperty: 'someValue' };
freedayWidget.bootstrap({ ...freedayConfiguration, metadata: userMetadata });
</script>
Enable fullscreen
It is possible to force open the widget in a pre-opened, fullscreen mode. Use cases for this can be, for example, embedding the widget in your app, or deeplinking clients straight into the chat.
freedayWidget.bootstrap({ ...freedayConfiguration, fullscreen: true });