Documentation and specifications designed for AI assistants to help developers integrate VoiceCommit widgets seamlessly.
Get started in under 2 minutes with these copy-paste examples
Simple copy-paste integration
<!-- Replace YOUR_WIDGET_ID with your actual widget ID -->
<link rel="stylesheet" href="https://app.voicecommit.com/api/widget/YOUR_WIDGET_ID/widget.css">
<script src="https://app.voicecommit.com/api/widget/YOUR_WIDGET_ID/widget.js" data-widget-id="YOUR_WIDGET_ID"></script>React component with cleanup
import { useEffect } from 'react';
export default function VoiceCommitWidget({ widgetId }) {
useEffect(() => {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = `https://app.voicecommit.com/api/widget/${widgetId}/widget.css`;
document.head.appendChild(link);
const script = document.createElement('script');
script.src = `https://app.voicecommit.com/api/widget/${widgetId}/widget.js`;
script.setAttribute('data-widget-id', widgetId);
document.head.appendChild(script);
return () => {
document.head.removeChild(link);
document.head.removeChild(script);
};
}, [widgetId]);
return null;
}Ready-to-use examples for popular frameworks:
Structured for AI assistants to understand:
Includes everything for production deployment:
Create your widget and start collecting voice feedback from your users today.