React Integration
If you are building a modern Single Page Application (SPA) using React, Next.js, or Vite, you can dynamically inject the ZynfoAI agent widget script when your application mounts.Implementation Guide
Use a standarduseEffect hook in your main layout or root App component to load the AI agent asynchronously:
Remote Configuration
Just like the standard HTML embed, you do not pass configuration props directly to the widget in your React code. All appearance and behavioral settings are fetched automatically in real-time based on thedata-chatbot-id you provide.
