Genuin will provide you with the established community under the subdomain URL - website.begenuin.com which you can manage under your brand control center login.
Before implementing the multi-embed setup, ensure you have:
Valid Genuin API credentials
Unique embed IDs for each widget instance
Access to the Genuin SDK
The multi-embed approach requires separate containers for each widget instance. Each container
must have unique identifiers and proper data attributes.
Note:
Ensure each container has a unique id attribute
The multi-embed approach also works for single embeds, so you can use it for both cases if you prefer a unified setup.
Copy
<!-- Containers for embedding the Genuin community widget with Multi Embeds --><!-- First Container --><div data-embed-id="Your Embed Id" data-api-key="Your Api Key" id="gen-sdk-1" class="gen-sdk-class" style="width: 100%; height: 100vh"></div><!-- Second Container --><div data-embed-id="Your Embed Id" data-api-key="Your Api Key" id="gen-sdk-2" class="gen-sdk-class" style="width: 100%; height: 100vh"></div><!-- SDK JavaScript module --><script type="module" src="https://media.begenuin.com/sdk/gen_sdk.min.js"></script><!-- Use Any of the below initialization methods with Multi Embeds --><script> // Use This initialization methods if you are using frontend library/framework e.g. React. window.genuin.init({}); // Alternative manual initialization with Multi Embeds for SDK callback window.onGenuinReady = (genuin) => { genuin.initialize({}); };</script>
Only include the parameters necessary to retrieve a contextual feed.
Copy
<!-- Example of multiple embeds with contextual feeds.Use your own embed_id and api_key, and ensure each embed_id is unique. Be careful to assign a unique id to each HTML element, as shown below. --><!-- Containers for embedding the Genuin community widget with Multi Embeds Empowering Contextual Feeds --><!-- First Container --><div data-embed-id="Your Embed Id" data-api-key="Your Api Key" data-page-context="e.g AI, LLM, Machine Learning, MLOPS, Robotics" data-lat="latitude of location" data-long="longitude of location" id="unique identifier" class="gen-sdk-class" style="width: 100%; height: 100vh"></div><!-- Second Container --><div data-embed-id="Your Embed Id" data-api-key="Your Api Key" data-page-context="e.g AI, LLM, Machine Learning, MLOPS, Robotics" data-lat="latitude of location" data-long="longitude of location" id="unique identifier" class="gen-sdk-class" style="width: 100%; height: 100vh"></div><!-- SDK JavaScript module --><script type="module" src="https://media.begenuin.com/sdk/gen_sdk.min.js"></script><!-- Use Any of the below initialization methods with Multi Embeds --><script> // Use This initialization methods if you are using frontend library/framework e.g. React. window.genuin.init({}); // Alternative manual initialization with Multi Embeds for SDK callback window.onGenuinReady = (genuin) => { genuin.initialize({}); };</script>
Before implementing the multi-embed setup, ensure you have:
Valid Genuin API credentials
Unique embed IDs for each widget instance
Access to the Genuin SDK
The multi-embed approach requires separate containers for each widget instance. Each container
must have unique identifiers and proper data attributes.
Note:
Ensure each container has a unique id attribute
The multi-embed approach also works for single embeds, so you can use it for both cases if you prefer a unified setup.
Before implementing the multi-embed setup, ensure you have:
Valid Genuin API credentials
Unique embed IDs for each widget instance
Access to the Genuin SDK
The multi-embed approach requires separate containers for each widget instance. Each container
must have unique identifiers and proper data attributes.
Note:
Ensure each container has a unique id attribute
The multi-embed approach also works for single embeds, so you can use it for both cases if you prefer a unified setup.
Before implementing the multi-embed setup, ensure you have:
Valid Genuin API credentials
Unique embed IDs for each widget instance
Access to the Genuin SDK
The multi-embed approach requires separate containers for each widget instance. Each container
must have unique identifiers and proper data attributes.
Note:
Ensure each container has a unique id attribute
The multi-embed approach also works for single embeds, so you can use it for both cases if you prefer a unified setup.
To apply your application’s custom font styles to the Genuin Web SDK, add the following style block inside the head tag:
Note: Please ensure that your custom font is correctly loaded on the page. If the specified font is not available, the SDK will automatically fall back to the default system font.
The SDK provides a mechanism to optionally override the default authentication behavior by exposing a genuinAuth callback on the global window object.
This is particularly useful when you want full control over how your application handles login or other auth-related actions — such as redirecting to a custom login page or integrating with an existing auth provider.
Copy
window.genuinAuth = (data) => { // You can trigger your own login mechanism // Option 1: Use a custom redirect function redirectToLogin(); // Option 2: Directly set the login URL // window.location.href = `URL`;};
Unique API key which will be used to authenticate the embed
token
Your SSO Token which will be used for authenticate
page_context
The content or context of your webpage, used to render relevant embed feeds. This can include comma-separated keywords or search parameters (e.g., “AI”, “tech news”, etc.).
lat
Latitude of Location which will be used to retrieve the feed based on Location
long
Longitude of location which will be used to retrieve the feed based on Location