Four steps and the assistant answers runners on your site. Details below for anyone who needs more.
Once confirmed, a chat button appears in the corner of your site. No access to the site code? Share the link or QR from the same tab.
Confirmation shows the race is yours. We check every connection by hand, nothing to change on your site. Until then the assistant answers only in the cabinet preview: the code can already be on your site, the button appears there after the confirmation.
Several races? Add each one in the cabinet: one assistant answers for all of them, with the same code. A new race joins it after our check.
Copy the code from the Install tab of the cabinet and paste it before the closing body tag. The id below is an example, the real one is in the cabinet.
<script src="https://endurance-analytics.com/agent.js" data-agent="ag_xxxx" async></script>A button appears in the corner of the page. On a phone the chat opens full screen.
| Attribute | Meaning |
|---|---|
| data-agent | Required. The assistant id from the cabinet, like ag_xxxx. |
| data-mode | Set to inline to show the chat as a block in the page instead of the corner button. |
| data-label | Tooltip and screen reader name of the round button. By default a word in the page language. |
| data-color | Button color as #rrggbb. By default trail blue. |
| data-theme | light or dark: the theme of the chat window. |
Put this script where the chat block should appear. The block is 560 px tall at first and then follows the height of the chat.
<script src="https://endurance-analytics.com/agent.js" data-agent="ag_xxxx" data-mode="inline" async></script><script src="https://endurance-analytics.com/agent.js" data-agent="ag_xxxx" async></script>Through Tag Manager use the corner button. The inline block needs the script to sit right where the block should appear.
Paste the same script into the site-wide code field, at the end of the body:
<script src="https://endurance-analytics.com/agent.js" data-agent="ag_xxxx" async></script>Open your site once with the code, then press Check installation in the Install tab: it shows when the widget was last seen on your site.
The chat also lives at its own address, no site needed. Put it in Instagram or print a QR for bib pickup. The link and the QR are in the Install tab of the cabinet.
https://endurance-analytics.com/ask/your-slugAdd ?race=event_slug/season to open the chat on one race.
https://endurance-analytics.com/ask/your-slug?race=lovcen-skyrace/2026In a mobile app open the full-screen chat by this link in a WebView. No script is needed.
https://endurance-analytics.com/agent/ag_xxxx?mode=appEnable JavaScript in the WebView. The language follows the device, or add ?lang=de.
The assistant already knows the course, results and race questions from our catalog. On the Answers tab add what is missing: bib pickup, parking, shuttles. Only visitors of your assistant see your answers, and only after “Publish”.
An assistant for one race does not need this. If your site has a calendar of many races, the assistant works out which race page the chat is open on and shows unclear pages on the Pages tab. To name the race explicitly, use the options below. The value is event_slug/season, for example lovcen-skyrace/2026.
Mark the page with data-ea-race so the assistant knows which race it is about. The value has the same format.
<div data-ea-race="lovcen-skyrace/2026"></div>Any element with data-ea-ask opens the chat on a race. The value is event_slug/season.
<button data-ea-ask="lovcen-skyrace/2026">Ask about this race</button>open() and close() show and hide the window. setContext tells the assistant the race when your site changes pages without a reload.
window.EA.open()
window.EA.close()
window.EA.setContext({ ref: 'lovcen-skyrace/2026' })If the page has SportsEvent markup whose url matches the page address, the assistant reads the name and the start date from it. Add it to every race page.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SportsEvent",
"name": "Lovćen SkyRace 2026",
"url": "https://example.com/races/lovcen-skyrace-2026",
"startDate": "2026-11-28"
}
</script>