Open Science Assistant

A chat widget for HED, BIDS, and other open science tools.

Try it out

Click the chat button in the bottom-right corner to start a conversation.

Ask questions about:

Features

Health Status Shows real-time backend connectivity
Markdown Support Tables, code blocks, lists, links
Resizable Drag top-left corner to resize
Configurable Customize title, messages, colors
Chat History Persists across page reloads
Bot Protection Optional Turnstile integration

Basic Integration

Add this to your website:

<script src="https://osa-demo.pages.dev/osa-chat-widget.js"></script>

Custom Configuration

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>

Configuration Options

API Endpoints

The widget connects to:

Backend: https://osa-worker.shirazi-10f.workers.dev