Back to home
Live Demo

Try the Riah AI Widget

Click the chat button in the corner to start a conversation.

Script Embed

Add these lines to any HTML page

<script src="https://cdn.riahai.com/widget.js"></script>
<script>
  Riah.init({
    workspaceId: "your-workspace-id",
    primaryColor: "#6366f1",
    greeting: "Hi there! How can I help you?"
  })
</script>

React Component

Import and use the RiahWidget component

import { RiahWidget } from "@riah/react";

export default function App() {
  return (
    <div>
      {/* Your app content */};
      <RiahWidget
        workspaceId="your-workspace-id"
        primaryColor="#6366f1"
        greeting="Hi there!"
      />
    </div>
  );
}

Configuration Options

Customize the widget behavior and appearance

OptionTypeDefaultDescription
workspaceIdstringrequiredYour Riah AI workspace ID
primaryColorstring#6366f1Brand color for header and buttons
positionstringbottom-rightWidget position (bottom-right or bottom-left)
greetingstringHi there!...Initial greeting message
apiUrlstringauto-detectedCustom API endpoint URL

Note: This demo uses a placeholder workspace ID. Sign up to get your own workspace ID from the dashboard.