🤖 Procurement Chat Widget

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.

🎯 Features

⚙️ Configuration

The widget is configured using the window.ProcurementChatConfig object:

🚀 Quick Actions

📝 How to Embed on Your Website

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>

🔧 Development Notes

Local Testing:

  1. Start your FastAPI backend: python -m app.main
  2. Build the widget: cd widget && npm run build
  3. Serve this page: npm run dev
  4. Click the chat button in the bottom-right corner

Deployment:

  1. Build: npm run build
  2. Deploy to Cloud Storage: npm run deploy
  3. Update customer websites with the new widget URL