A chat widget for HED, BIDS, and other open science tools.
Click the chat button in the bottom-right corner to start a conversation.
Ask questions about:
Add this to your website:
<script src="https://osa-demo.pages.dev/osa-chat-widget.js"></script>
Customize the widget appearance and behavior:
<script src="https://osa-demo.pages.dev/osa-chat-widget.js"></script>
<script>
OSAChatWidget.setConfig({
// Branding
title: 'BIDS Assistant',
placeholder: 'Ask about BIDS...',
initialMessage: 'Hi! I can help with BIDS questions.',
showExperimentalBadge: true,
// Suggested questions
suggestedQuestions: [
'What is BIDS?',
'How do I organize my data?',
'Explain BIDS validation errors.'
],
// Footer link
repoUrl: 'https://github.com/OpenScience-Collective/osa',
repoName: 'Open Science Assistant',
// Optional: Turnstile for bot protection
turnstileSiteKey: 'YOUR_SITE_KEY'
});
</script>
title - Widget header title (default: "HED Assistant")placeholder - Input placeholder textinitialMessage - First greeting message from the assistantsuggestedQuestions - Array of clickable suggestion buttonsshowExperimentalBadge - Show/hide "Experimental" badgerepoUrl - URL for the "Powered by" footer linkrepoName - Name shown in footer linkturnstileSiteKey - Cloudflare Turnstile site key (optional)apiEndpoint - Backend API URL (default: OSA worker)storageKey - localStorage key for chat historyThe widget connects to:
POST /hed/ask - Single questionPOST /hed/chat - Multi-turn conversationGET /health - Backend status checkBackend: https://osa-worker.shirazi-10f.workers.dev