This is a test page for the embeddable Procurement AI chat widget. The chat button should appear in the bottom-right corner of your screen.
The widget is configured using the window.ProcurementChatConfig object:
apiUrl: Your FastAPI backend URL (currently: localhost:8080)theme: 'light' or 'dark' (currently: light)position: Widget position (currently: bottom-right)Add this code before the closing </body> tag:
<script>
window.ProcurementChatConfig = {
apiUrl: 'https://pax-chat-2279755632.us-central1.run.app',
googleProjectId: 'your-gcp-project-id',
theme: 'light',
position: 'bottom-right'
};
</script>
<script
src="https://storage.googleapis.com/your-bucket/widget/procurement-chat-widget.js"
async
defer>
</script>
Local Testing:
python -m app.maincd widget && npm run buildnpm run devDeployment:
npm run buildnpm run deploy