1
Create your agent
Sign up at console.eka.care, create an agent, and customize it — theme, title, initial message, and allowed inputs are all stored with the agent.
New to the console? Follow the detailed setup guide to create your account and get set up step by step.
2
Copy your agent ID
Grab the
agentId from the agent you just created.3
Add the embed snippet
Paste the custom element where you want it and the script tag just before
</body>:4
Open your page
A floating launcher button appears. Clicking it lazy-loads the widget assets and opens the chat.
Only
agent-id is required. Everything else — theme, title, initial message — comes from the agent config you set in the console, so you usually don’t need any other attributes.Full page example
Install from npm
If you bundle your own assets, install the package instead of using the CDN:Use it in a framework
The custom element works anywhere HTML does. Inject the loader script and render the tag:How it works
1
Register
The script registers the
<eka-medassist-widget> custom element.2
Launcher
The element renders a floating button (or a full view if
display-mode="full").3
Lazy load
On first open, the widget’s JS and CSS are fetched — keeping your initial page light.
4
Isolation
The widget runs inside a Shadow DOM, so its styles never clash with your site.
Next steps
Customization & overrides
Every attribute you can set — theme, display mode, launcher styling, and more.
JavaScript API
Configure the widget programmatically with
EkaMedAssist.init().Troubleshooting
Widget not appearing
Widget not appearing
Confirm
agent-id is set, check the Network tab to verify the loader script loaded, and look in the console for errors.Assets return 404
Assets return 404
If you self-host assets via
data-widget-assets, ensure medassist-widget.js and medassist-widget.css are served at that path — or omit it to use the default CDN.
